Problems installing MySQLdb on Windows [newbie]
Alex Meier
superdoehli_nospam at gmx.at
Tue Dec 28 17:03:41 EST 2004
hi, all!
this is my first contact with python, I installed python 2.4 (on Win2k)
and unzipped the MySQLdb package "MySQL-Python 1.0.0 for win32" into
Lib/site-packages.
However, when I try to import the MySQLdb package, I am faced with the
error message "DLL load failed", in more detail:
>>> import MySQLdb
Traceback (most recent call last):
File "<pyshell#9>", line 1, in -toplevel-
import MySQLdb
File "C:\Programme\Python24\lib\site-packages\MySQLdb\__init__.py",
line 27, in -toplevel-
import _mysql
ImportError: DLL load failed: Das angegebene Modul wurde nicht gefunden.
The directory structure is (only the relevant parts):
C:\Programme\Python24
|
+-- Lib
|
+-- site-packages
|
+-- _mysql.pyd
+-- _mysql_exceptions.py
+-- CompatMysqldb.py
+-- MySQLdb
|
+-- __init__.py
+-- connections.py
+-- ...
One thing strikes me: in sys.path, the path to "site-packages" contains
the dir "lib" (lowercase!) whereas in the file system it would be
written "Lib" (mixed case). Could this pose a problem?
This is the path:
>>> sys.path
['C:\\Programme\\Python24\\Lib\\idlelib', 'C:\\WINNT\\system32
\\python24.zip', 'C:\\Programme\\Python24', 'C:\\Programme\\Python24
\\DLLs', 'C:\\Programme\\Python24\\lib', 'C:\\Programme\\Python24\\lib
\\plat-win', 'C:\\Programme\\Python24\\lib\\lib-tk', 'C:\\Programme
\\Python24\\lib\\site-packages']
Any hints for me?
TIA
Alex
--
remove underscore+nospam if you want to mail me
More information about the Python-list
mailing list