468,257 Members | 1,429 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,257 developers. It's quick & easy.

IDLE & MySQLdb import error

I installed python 2.5 and used the win package for installing MySQLdb. (Iam running Windows XP)
Everything works as expected using python directly (Windows command shell) but using IDLE gives the import error below.
Same error with PythonWin as my IDE and everything works using python 2.4-- with IDLE and without, mySQLdb is loaded with out error.
Below is the IDLEscreen 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.
************************************************** **************
Personal firewall software may warn about the connection IDLE
makes to its subprocess using this computer's internal loopback
interface. This connection is not visible on any external
interface and no data is sent to or received from the Internet.
************************************************** **************

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.
>>>
It seems that when using IDLE the _mysql package cannot be found although the path is the same as non-IDLE
python and help('modules') shows _mysql is an available.

Is this an IDLE or MySQLdb bug or some incorrect settign on my side

__________________________________________________ __________________________________
Looking for earth-friendly autos?
Browse Top Cars by "Green Rating" at Yahoo! Autos'Green Center.
http://autos.yahoo.com/green_center/
Mar 4 '07 #1
0 1827

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Dave Harrison | last post: by
4 posts views Thread by Perflubron | last post: by
2 posts views Thread by ws Wang | last post: by
11 posts views Thread by Fred | last post: by
2 posts views Thread by hiroc13 | last post: by
1 post views Thread by Sjoerd | last post: by
1 post views Thread by mastro.francesco | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by kermitthefrogpy | last post: by
reply views Thread by zattat | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.