I installed python 2.5 and used the win package for installing MySQLdb
Everything works as expected using python directly (Windows command shell)
but using IDLE gives the import error below.
It seems that when using IDLE the _mysql package can not be found although the path is the same as non-IDLE
python and help('modules') shows _mysql is an available.
Everything works using python 2.4 (with IDLE and without mySQLdb is loaded with out error).
below is the IDLE screen capture
Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
import MySQLdb
File "C:\Python25\lib\site-packages\MySQLdb__init__.py", line 19, in <module>
import _mysql
ImportError: DLL load failed: The specified procedure could not be found.
>>>
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I installed python 2.5 and used the win package for installing MySQLdb
Everything works as expected using python directly (Windows command shell)
but using IDLE gives the import error below.
It seems that when using IDLE the _mysql package can not be found although the path is the same as non-IDLE
python and help('modules') shows _mysql is an available.
Everything works using python 2.4 (with IDLE and without mySQLdb is loaded with out error).
below is the IDLE screen capture
Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
IDLE 1.2
>>> import MySQLdb
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
import MySQLdb
File "C:\Python25\lib\site-packages\MySQLdb__init__.py", line 19, in <module>
import _mysql
ImportError: DLL load failed: The specified procedure could not be found.
>>>
The Windows packages for MySQLdb with Python 2.5 don't exist yet, or at least, I do not have any available for download.
I found a Python 2.5 package for 1.2.2b2 using Google at http://blog.zabiello.com/files/MySQL-python.exe-1.2.2b2.win32-py2.5.exe and for me it works fine.
There is now a Python egg for Win32 in the downloads section as of a few minutes ago.