IDLE & MySQLdb import error

I installed python 2.5 and used the win package for installing MySQLdb.  (I=
 am running Windows XP)=0AEverything works as expected using python directl=
y (Windows command shell) but using IDLE gives the import error below.=0ASa=
me error with PythonWin as my IDE and everything works using python 2.4-- w=
ith IDLE and without, mySQLdb is loaded with out error.=0ABelow is the IDLE=
 screen capture=0A=0APython 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1=
310 32 bit (Intel)] on win32=0AType "copyright", "credits" or "license()" f=
or more information.=0A    ************************************************=
****************=0A    Personal firewall software may warn about the connec=
tion IDLE=0A    makes to its subprocess using this computer's internal loop=
back=0A    interface.  This connection is not visible on any external=0A   =
 interface and no data is sent to or received from the Internet.=0A    ****=
************************************************************=0A    =0AIDLE =
1.2      =0A>>> import MySQLdb=0ATraceback (most recent call last):=0A  Fil=
e "<pyshell#1>", line 1, in <module>=0A    import MySQLdb=0A  File "C:\Pyth=
on25\lib\site-packages\MySQLdb\__init__.py", line 19, in <module>=0A    imp=
ort _mysql=0AImportError: DLL load failed: The specified procedure could no=
t be found.=0A>>>=0A=0AIt seems that when using IDLE the _mysql package can=
 not be found although the path is the same as non-IDLE =0Apython and help(=
'modules') shows _mysql is an available.=0A=0AIs this an IDLE or MySQLdb bu=
g or some incorrect settign on my side=0A=0A=0A =0A________________________=
____________________________________________________________=0ALooking for =
earth-friendly autos? =0ABrowse Top Cars by "Green Rating" at Yahoo! Autos'=
 Green Center.=0Ahttp://autos.yahoo.com/green_center/
3/4/2007 2:26:42 PM
comp.lang.python 77058 articles. 4 followers. Post Follow

0 Replies

Similar Articles

[PageSpeed] 19