Zope3 mit MySQL

2 messages Options
Embed this post
Permalink
Adrian Rochau

Zope3 mit MySQL

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
Zope3 mit MySQL

Hallo!

Ich versuche gerade Zope3 mit MySQL (beides auf Windows) zu verbinden, doch es klappt einfach nicht.
Ich habe schon einige Zeit mit googeln und Mailinglisten lesen verbracht, aber leider nichts gefunden...

Zuerst habe ich mysqldba (http://www.zope.org/Products/Zope3-Packages/mysqldbda/view) mit "python install.py install" fehlerfrei installiert.

Dann kopierte ich die mysqldb-configuration.zcml in den package-includes -Ordner (So ist es in der Anleitung beschrieben).

Wenn ich dann Zope starten will, kommt folgende Meldung:

D:\Programme\Server\zopetest\bin>runzope
------
2006-11-30T15:30:21 WARNING root Developer mode is enabled: this is a security risk and should NOT be enabled on production servers. Developer mode can be turned off in etc/zope.conf

D:\Programme\Python24\Lib\site-packages\mysqldbda\adapter.py:19: DeprecationWarning: zope.app.rdb has moved to zope.rdb. Import of zope.app.rdb will become unsupported in Zope 3.5

  from zope.app.rdb import ZopeDatabaseAdapter, parseDSN
D:\Programme\Python24\Lib\site-packages\mysqldbda\configure.zcml:6: DeprecationWarning: The 'content' alias for the 'class' directive has been deprecated and will be removed in Zope 3.5.

  <content class=".adapter.MySQLdbAdapter">
D:\Programme\Python24\Lib\site-packages\zope\configuration\config.py:184: DeprecationWarning: zope.app.rdb.interfaces has moved to zope.rdb.interfaces. Import of zope.app.rdb.interfaces will become unsupported in Zope 3.5

  mod = __import__(mname, *_import_chickens)
Traceback (most recent call last):
  File "D:\Programme\Server\zopetest\bin\runzope", line 48, in ?
    run()
  File "D:\Programme\Server\zopetest\bin\runzope", line 44, in run
    main(["-C", CONFIG_FILE] + sys.argv[1:])

[--snip--]

  File "D:\Programme\Python24\Lib\site-packages\zope\configuration\
config.py", line 1383, in toargs
    args[str(name)] = field.fromUnicode(s)
  File "D:\Programme\Python24\Lib\site-packages\zope\app\publisher\browser\ fields.py", line 107, in fromUnicode
    raise zope.schema.ValidationError(v)
zope.configuration.xmlconfig.ZopeXMLConfigurationError: File "D:\Programme\Server\zopetest\etc\site.zcml", line 7.2-7.55

    ZopeXMLConfigurationError: File "D:\Programme\Server\zopetest\etc\
package-includes\mysqldbda-configure.zcml", line 1.0-1.31
    ZopeXMLConfigurationError: File "D:\Programme\Python24\Lib\site-packages\mysqldbda\configure.zcml", line 38.2-44.8
    ConfigurationError: ('Invalid value for', 'menu', "ImportError: Couldn't import add_connection, No module named add_connection")

D:\Programme\Server\zopetest\bin>

In der configure.zcml steht in den Zeilen 38-44 folgendes:

  <browser:menuItem
      menu="add_connection"
      for="zope.app.container.interfaces.IAdding"
      title="MySQL DA"
      description="A MySQL Database Adapter"
      action="AddMySQLdbDA"
      />

Kennt jemand von euch den Fehler zufällig bzw. weiß, was ich machen muss, damit das läuft? Funktioniert das eigentlich unter Windows? Finde die Doku auch nicht gerade gut...

Danke!

Adrian




_______________________________________________
zope mailing list
[hidden email]
https://mail.dzug.org/mailman/listinfo/zope
Adrian Rochau

RE: Zope3 mit MySQL

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
RE: [dzug-zope] Zope3 mit MySQL

Hallo noch mal!

Habe es jetzt anders gemacht und werde jetzt wahrscheinlich mit ADOdb auf die Daten zugreifen. Falls ihr trotzdem eine Idee habt wieso es nicht funktioniert hat bin ich trotzdem dankbar, aber es ist nicht mehr so wichtig;)

Bis dann!

Adrian

-----Original Message-----
From: Adrian Rochau
Sent: Thursday, November 30, 2006 3:55 PM
To: '[hidden email]'
Subject: [dzug-zope] Zope3 mit MySQL

Hallo!
Ich versuche gerade Zope3 mit MySQL (beides auf Windows) zu verbinden, doch es klappt einfach nicht.
Ich habe schon einige Zeit mit googeln und Mailinglisten lesen verbracht, aber leider nichts gefunden...
Zuerst habe ich mysqldba (http://www.zope.org/Products/Zope3-Packages/mysqldbda/view) mit "python install.py install" fehlerfrei installiert.

Dann kopierte ich die mysqldb-configuration.zcml in den package-includes -Ordner (So ist es in der Anleitung beschrieben).

Wenn ich dann Zope starten will, kommt folgende Meldung:
D:\Programme\Server\zopetest\bin>runzope
------
2006-11-30T15:30:21 WARNING root Developer mode is enabled: this is a security risk and should NOT be enabled on production servers. Developer mode can be turned off in etc/zope.conf

D:\Programme\Python24\Lib\site-packages\mysqldbda\adapter.py:19: DeprecationWarning: zope.app.rdb has moved to zope.rdb. Import of zope.app.rdb will become unsupported in Zope 3.5

  from zope.app.rdb import ZopeDatabaseAdapter, parseDSN
D:\Programme\Python24\Lib\site-packages\mysqldbda\configure.zcml:6: DeprecationWarning: The 'content' alias for the 'class' directive has been deprecated and will be removed in Zope 3.5.

  <content class=".adapter.MySQLdbAdapter">
D:\Programme\Python24\Lib\site-packages\zope\configuration\config.py:184: DeprecationWarning: zope.app.rdb.interfaces has moved to zope.rdb.interfaces. Import of zope.app.rdb.interfaces will become unsupported in Zope 3.5

  mod = __import__(mname, *_import_chickens)
Traceback (most recent call last):
  File "D:\Programme\Server\zopetest\bin\runzope", line 48, in ?
    run()
  File "D:\Programme\Server\zopetest\bin\runzope", line 44, in run
    main(["-C", CONFIG_FILE] + sys.argv[1:])
[--snip--]
  File "D:\Programme\Python24\Lib\site-packages\zope\configuration\
config.py", line 1383, in toargs
    args[str(name)] = field.fromUnicode(s)
  File "D:\Programme\Python24\Lib\site-packages\zope\app\publisher\browser\ fields.py", line 107, in fromUnicode
    raise zope.schema.ValidationError(v)
zope.configuration.xmlconfig.ZopeXMLConfigurationError: File "D:\Programme\Server\zopetest\etc\site.zcml", line 7.2-7.55

    ZopeXMLConfigurationError: File "D:\Programme\Server\zopetest\etc\
package-includes\mysqldbda-configure.zcml", line 1.0-1.31
    ZopeXMLConfigurationError: File "D:\Programme\Python24\Lib\site-packages\mysqldbda\configure.zcml", line 38.2-44.8
    ConfigurationError: ('Invalid value for', 'menu', "ImportError: Couldn't import add_connection, No module named add_connection")

D:\Programme\Server\zopetest\bin>
In der configure.zcml steht in den Zeilen 38-44 folgendes:
  <browser:menuItem
      menu="add_connection"
      for="zope.app.container.interfaces.IAdding"
      title="MySQL DA"
      description="A MySQL Database Adapter"
      action="AddMySQLdbDA"
      />
Kennt jemand von euch den Fehler zufällig bzw. weiß, was ich machen muss, damit das läuft? Funktioniert das eigentlich unter Windows? Finde die Doku auch nicht gerade gut...

Danke!
Adrian




_______________________________________________
zope mailing list
[hidden email]
https://mail.dzug.org/mailman/listinfo/zope