Menu

cannot import name Warning

Help
Homer
2006-06-06
2012-09-19
  • Homer

    Homer - 2006-06-06

    Hello,

    I installed MySQLdb on a server running Mac OS X 10.4 Server with the built-in Python that come with the system.

    When I run my software, I have this error. This error doesn't occur on my system (Mac OS X 10.4 client).

    Traceback (most recent call last):
    File "vacations.py", line 572, in mysql_connect
    sql = MySQLdb.connect(host=mysql_server, user=mysql_login, passwd=mysql_pass, db=mysql_base)
    File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/MySQLdb/init.py", line 74, in Connect
    from connections import Connection
    File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/MySQLdb/connections.py", line 9, in ?
    import cursors
    File "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/MySQLdb/cursors.py", line 10, in ?
    from _mysql_exceptions import Warning, Error, InterfaceError, DataError, \ ImportError: cannot import name Warning

    What's my problem ?

    Thanks.

     
    • Homer

      Homer - 2006-06-13

      Are you using OS X server or client ?

      I developped and tested my app on 10.4 client without any problems. But when it was the time to install it on the server, this was an another story :(.

       
    • Homer

      Homer - 2006-06-13

      Good news, it's working :)

      I removed all thing relative to mysql or MySQLdb in
      /System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/ and I installed the lib again.

       
    • Homer

      Homer - 2006-06-12

      nobody ? :/

       
    • Oliver Bock

      Oliver Bock - 2006-06-13

      I'm using MySQLdb on OS X 10.4 (latest update) and I don't get this problem, but probably my MySQLdb version differs from yours since I installed it about one year ago. I'm using v1.2.0.

      Oliver

       

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.