[Zope] ERROR Zope Could not import Products.ZMySQLDA

Jeremiah Foster jeremiah.foster at theclickstore.se
Wed Jun 14 10:17:48 EDT 2006


Hello, 

I am trying to get Zope to connect to a MySQL database. I am having
trouble tracking down why it will not connect. The error message on the
web page produces only six hits in Google;

http://www.google.com/search?q=The+database+connection
+MySQL_database_connection+cannot+be
+found.&start=0&ie=utf-8&oe=utf-8&client=firefox&rls=org.mozilla:en-US:unofficial

Here is the Zope debugging error message from zopectl fg;
(Complete debugging information is below.)

ImportError: cannot import name ImmutableSet

Does anyone have any recommendations on how I can solve this?

Thanks very much,

Jeremiah


Complete debugging output: 
--------------------------------
/usr/local/www/zopeserver/bin/runzope -X debug-mode=on
2006-06-14 16:14:53 INFO ZServer HTTP server started at Wed Jun 14
16:14:53 2006
        Hostname: 0.0.0.0
        Port: 8080
2006-06-14 16:14:53 INFO Zope Set effective user to "zope"
2006-06-14 16:14:53 INFO DocFinderTab Applied patch version 0.5.2.
2006-06-14 16:14:53 INFO IngeniWeb
NOTICE   global_symbols.py:22:Wed Jun 14 16:14:53 2006:
'Starting /usr/local/www/zopeserver/Products/GroupUserFolder at 4 debug
level'

/usr/local/www/Zope28/lib/python/OFS/Application.py:695:
DeprecationWarning: Non-ASCII character '\xe1' in
file /usr/local/www/zopeserver/Products/Localizer/__init__.py on line 1,
but no encoding declared; see http://www.python.org/peps/pep-0263.html
for details
  product=__import__(pname, global_dict, global_dict, silly)
/usr/local/www/zopeserver/Products/Localizer/__init__.py:161:
SyntaxWarning: argument named None
  def evaluateText(self, expr, None=None):
/usr/local/www/zopeserver/Products/Localizer/__init__.py:97:
DeprecationWarning: Non-ASCII character '\xe1' in
file /usr/local/www/zopeserver/Products/Localizer/Accept.py on line 2,
but no encoding declared; see http://www.python.org/peps/pep-0263.html
for details
  from Accept import AcceptCharset, AcceptLanguage
/usr/local/www/zopeserver/Products/Localizer/__init__.py:285:
DeprecationWarning: Non-ASCII character '\xe1' in
file /usr/local/www/zopeserver/Products/Localizer/Localizer.py on line
2, but no encoding declared; see
http://www.python.org/peps/pep-0263.html for details
  import Localizer, LocalContent, MessageCatalog, LocalFolder
/usr/local/www/zopeserver/Products/Localizer/Localizer.py:35:
DeprecationWarning: Non-ASCII character '\xe1' in
file /usr/local/www/zopeserver/Products/Localizer/LocalFiles.py on line
2, but no encoding declared; see
http://www.python.org/peps/pep-0263.html for details
  from LocalFiles import LocalDTMLFile
/usr/local/www/zopeserver/Products/Localizer/LocalFiles.py:34:
DeprecationWarning: Non-ASCII character '\xe1' in
file /usr/local/www/zopeserver/Products/Localizer/Utils.py on line 2,
but no encoding declared; see http://www.python.org/peps/pep-0263.html
for details
  from Utils import lang_negotiator
/usr/local/www/zopeserver/Products/Localizer/Localizer.py:36:
DeprecationWarning: Non-ASCII character '\xe1' in
file /usr/local/www/zopeserver/Products/Localizer/MessageCatalog.py on
line 2, but no encoding declared; see
http://www.python.org/peps/pep-0263.html for details
  from MessageCatalog import MessageCatalog
/usr/local/www/zopeserver/Products/Localizer/MessageCatalog.py:39:
DeprecationWarning: Non-ASCII character '\xe9' in
file /usr/local/www/zopeserver/Products/Localizer/zgettext.py on line 4,
but no encoding declared; see http://www.python.org/peps/pep-0263.html
for details
  from zgettext import parse_po_file
/usr/local/www/zopeserver/Products/Localizer/MessageCatalog.py:41:
DeprecationWarning: Non-ASCII character '\xe1' in
file /usr/local/www/zopeserver/Products/Localizer/LanguageManager.py on
line 2, but no encoding declared; see
http://www.python.org/peps/pep-0263.html for details
  from LanguageManager import LanguageManager
/usr/local/www/zopeserver/Products/Localizer/LanguageManager.py:33:
DeprecationWarning: Non-ASCII character '\xe1' in
file /usr/local/www/zopeserver/Products/Localizer/Gettext.py on line 2,
but no encoding declared; see http://www.python.org/peps/pep-0263.html
for details
  from Gettext import dummy as N_
/usr/local/www/zopeserver/Products/Localizer/__init__.py:285:
DeprecationWarning: Non-ASCII character '\xe1' in
file /usr/local/www/zopeserver/Products/Localizer/LocalContent.py on
line 2, but no encoding declared; see
http://www.python.org/peps/pep-0263.html for details
  import Localizer, LocalContent, MessageCatalog, LocalFolder
/usr/local/www/zopeserver/Products/Localizer/LocalContent.py:33:
DeprecationWarning: Non-ASCII character '\xe1' in
file /usr/local/www/zopeserver/Products/Localizer/LocalPropertyManager.py on line 2, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
  from LocalPropertyManager import LocalPropertyManager, LocalProperty
/usr/local/www/zopeserver/Products/Localizer/LocalPropertyManager.py:36:
DeprecationWarning: Non-ASCII character '\xe1' in
file /usr/local/www/zopeserver/Products/Localizer/LocalAttributes.py on
line 2, but no encoding declared; see
http://www.python.org/peps/pep-0263.html for details
  from LocalAttributes import LocalAttribute, LocalAttributesBase
/usr/local/www/zopeserver/Products/Localizer/__init__.py:285:
DeprecationWarning: Non-ASCII character '\xe1' in
file /usr/local/www/zopeserver/Products/Localizer/LocalFolder.py on line
2, but no encoding declared; see
http://www.python.org/peps/pep-0263.html for details
  import Localizer, LocalContent, MessageCatalog, LocalFolder
/usr/local/www/zopeserver/Products/Localizer/__init__.py:288:
DeprecationWarning: Non-ASCII character '\xe1' in
file /usr/local/www/zopeserver/Products/Localizer/GettextTag.py on line
2, but no encoding declared; see
http://www.python.org/peps/pep-0263.html for details
  from GettextTag import GettextTag
2006-06-14 16:14:53 INFO QuickLinks Patch manage_main to work with
QuickLinks
2006-06-14 16:14:54 ERROR Zope Could not import Products.ZMySQLDA
Traceback (most recent call last):
  File "/usr/local/www/Zope28/lib/python/OFS/Application.py", line 695,
in import_product
    product=__import__(pname, global_dict, global_dict, silly)
  File "/usr/local/www/zopeserver/Products/ZMySQLDA/__init__.py", line
91, in ?
    import DA
  File "/usr/local/www/zopeserver/Products/ZMySQLDA/DA.py", line 92,
in ?
    from db import DB
  File "/usr/local/www/zopeserver/Products/ZMySQLDA/db.py", line 99,
in ?
    from MySQLdb.converters import conversions
  File "/usr/local/lib/python2.3/site-packages/MySQLdb/__init__.py",
line 34, in ?
    from sets import ImmutableSet
ImportError: cannot import name ImmutableSet
Traceback (most recent call last):
  File "/usr/local/www/Zope28/lib/python/Zope2/Startup/run.py", line 56,
in ?
    run()
  File "/usr/local/www/Zope28/lib/python/Zope2/Startup/run.py", line 21,
in run
    starter.prepare()
  File "/usr/local/www/Zope28/lib/python/Zope2/Startup/__init__.py",
line 98, in prepare
    self.startZope()
  File "/usr/local/www/Zope28/lib/python/Zope2/Startup/__init__.py",
line 257, in startZope
    Zope2.startup()
  File "/usr/local/www/Zope28/lib/python/Zope2/__init__.py", line 47, in
startup
    _startup()
  File "/usr/local/www/Zope28/lib/python/Zope2/App/startup.py", line 44,
in startup
    OFS.Application.import_products()
  File "/usr/local/www/Zope28/lib/python/OFS/Application.py", line 672,
in import_products
    import_product(product_dir, product_name, raise_exc=debug_mode)
  File "/usr/local/www/Zope28/lib/python/OFS/Application.py", line 695,
in import_product
    product=__import__(pname, global_dict, global_dict, silly)
  File "/usr/local/www/zopeserver/Products/ZMySQLDA/__init__.py", line
91, in ?
    import DA
  File "/usr/local/www/zopeserver/Products/ZMySQLDA/DA.py", line 92,
in ?
    from db import DB
  File "/usr/local/www/zopeserver/Products/ZMySQLDA/db.py", line 99,
in ?
    from MySQLdb.converters import conversions
  File "/usr/local/lib/python2.3/site-packages/MySQLdb/__init__.py",
line 34, in ?
    from sets import ImmutableSet
ImportError: cannot import name ImmutableSet





More information about the Zope mailing list