Menu

import MySQLdb error with python 2.5 and IDLE

Help
mdb
2007-03-04
2012-09-19
  • mdb

    mdb - 2007-03-04

    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.

    ****************************************************************
    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.
    >>>

     
    • Andy Dustman

      Andy Dustman - 2007-03-04

      The Windows packages for MySQLdb with Python 2.5 don't exist yet, or at least, I do not have any available for download.

       
      • Markus Gritsch

        Markus Gritsch - 2007-03-05

        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.

         
        • Andy Dustman

          Andy Dustman - 2007-03-05

          There is now a Python egg for Win32 in the downloads section as of a few minutes ago.

           

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.