[Zope-DB] Error about install ZMySQLDA-2.0.8

Benny HUI benny.hui at monsterfirst.com
Thu Jul 14 20:08:18 EDT 2005


Hi all

I have using Zope 2.7.4, and I want to use MySQL in zope, and install
ZMySQLDA-2.0.8, but after I install I got the follow error on starting
my zope:

 2005-07-15T07:50:41 ERROR(200) Zope Could not import Products.ZMySQLDA
Traceback (most recent call last):
  File "/home/system/zope/myzope/lib/python/OFS/Application.py", line
673, in import_product
    product=__import__(pname, global_dict, global_dict, silly)
  File
"/home/system/zope/myzope/lib/python/Products/ZMySQLDA/__init__.py",
line 91, in ?
    import DA
  File "/home/system/zope/myzope/lib/python/Products/ZMySQLDA/DA.py",
line 92, in ?
    from db import DB
  File "/home/system/zope/myzope/lib/python/Products/ZMySQLDA/db.py",
line 89, in ?
    import _mysql
ImportError: No module named _mysql
Traceback (most recent call last):
  File "/home/system/zope/myzope/lib/python/Zope/Startup/run.py", line
50, in ?
    run()
  File "/home/system/zope/myzope/lib/python/Zope/Startup/run.py", line
19, in run
    start_zope(opts.configroot)
  File "/home/system/zope/myzope/lib/python/Zope/Startup/__init__.py",
line 51, in start_zope
    starter.startZope()
  File "/home/system/zope/myzope/lib/python/Zope/Startup/__init__.py",
line 230, in startZope
    Zope.startup()
  File "/home/system/zope/myzope/lib/python/Zope/__init__.py", line 47,
in startup
    _startup()
  File "/home/system/zope/myzope/lib/python/Zope/App/startup.py", line
45, in startup
    OFS.Application.import_products()
  File "/home/system/zope/myzope/lib/python/OFS/Application.py", line
650, in import_products
    import_product(product_dir, product_name, raise_exc=debug_mode)
  File "/home/system/zope/myzope/lib/python/OFS/Application.py", line
673, in import_product
    product=__import__(pname, global_dict, global_dict, silly)
  File
"/home/system/zope/myzope/lib/python/Products/ZMySQLDA/__init__.py",
line 91, in ?
    import DA
  File "/home/system/zope/myzope/lib/python/Products/ZMySQLDA/DA.py",
line 92, in ?
    from db import DB
  File "/home/system/zope/myzope/lib/python/Products/ZMySQLDA/db.py",
line 89, in ?
    import _mysql
ImportError: No module named _mysql


How can I fix this error.


Ben




More information about the Zope-DB mailing list