[Zope] "ImportError: _mysql: init failed"

Peter Bengtsson mail@peterbe.com
Sat, 06 Oct 2001 14:34:01 +0200


I took the latest win32 MySQL binary from
http://www.zope.org/Members/isalsberg/Binaries/Useful_binary_collection
...extracted the .pyd file into <python2.1 home>/Lib/_mysql.py
And if you can't compile stuff yourself, you don't need to download 
MySQLDB-python, am I right?
It says "Zope 2.4 Py21" which I have.

For DA I used the 2.0.7 version.
Which gives this error

2001-10-06T12:07:01 ERROR(200) Zope Could not import Products.ZMySQLDA
Traceback (innermost last):
   File C:\Program\zope240\lib\python\OFS\Application.py, line 556, in 
import_pro
duct
   File C:\Program\zope240\lib\python\Products\ZMySQLDA\__init__.py, line 
91, in
?
   File C:\Program\zope240\lib\python\Products\ZMySQLDA\DA.py, line 91, in ?
   File C:\Program\zope240\lib\python\Products\ZMySQLDA\db.py, line 89, in ?
ImportError: _mysql: init failed


The same error I get when doing this:
 >>> import _mysql

For MySQL version I have "3.22.34-shareware-debug"
Is this the reason?



Peter