I can build and install MySQLdb under cygwin but can't import with python.
Here is the traceback:
>>> import MySQLdb
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "MySQLdb/__init__.py", line 27, in ?
import _mysql
ImportError: dlopen: Win32 error 126
In winerror.h I can find
#define ERROR_MOD_NOT_FOUND 126L
but I don't see how to interpret it: _mysql.dll is in /usr/lib/python2.3/site-packages, together with the MySQLdb directory.
Any idea ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
cygwin 1.5.7-1
python 2.3.3
mysql 4.0.18
I can build and install MySQLdb under cygwin but can't import with python.
Here is the traceback:
>>> import MySQLdb
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "MySQLdb/__init__.py", line 27, in ?
import _mysql
ImportError: dlopen: Win32 error 126
In winerror.h I can find
#define ERROR_MOD_NOT_FOUND 126L
but I don't see how to interpret it: _mysql.dll is in /usr/lib/python2.3/site-packages, together with the MySQLdb directory.
Any idea ?
and the MySQLdb version I used is 0.9.3b3 checked out from the CVS