Menu

_mysql.py?

Help
2009-04-09
2012-09-19
  • Skip Montanaro

    Skip Montanaro - 2009-04-09

    I installed MySQLdb 1.2.2 on a Solaris 10 system today. When I tried importing
    MySQLdb I got a warning message:

    /home/titan/skipm/local/lib/python2.4/site-packages/MySQL_python-1.2.2-py2.4-solaris-2.10-i86pc.egg/_mysql.py:3: UserWarning: Module _mysql was already imported from /home/titan/skipm/local/lib/python2.4/site-packages/MySQL_python-1.2.2-py2.4-solaris-2.10-i86pc.egg/_mysql.pyc, but /home/tuba/skipm/src/MySQL-python-1.2.2 is being added to sys.path
    

    Looking in the egg it installed I see _mysql.py[c] files:

    % unzip -t /home/titan/skipm/local/lib/python2.4/site-packages/MySQL_python-1.2.2-py2.4-solaris-2.10-i86pc.egg Archive:  /home/titan/skipm/local/lib/python2.4/site-packages/MySQL_python-1.2.2-py2.4-solaris-2.10-i86pc.egg
    testing: _mysql.so                OK
    testing: _mysql_exceptions.py     OK
    testing: _mysql_exceptions.pyc    OK
    testing: _mysql.py                OK
    testing: _mysql.pyc               OK
    testing: MySQLdb/__init__.py      OK
    testing: MySQLdb/converters.py    OK
    testing: MySQLdb/connections.py   OK
    ...
    

    There is no _mysql.py file in the distribution. Where is that coming
    from? Is it possible to install MySQLdb without a zip archive?

    Thanks,

    Skip Montanaro

     
    • Kyle VanderBeek

      Kyle VanderBeek - 2009-05-27

      I don't know how you ended up with _mysql.py and _mysql.pyc . There should only be the _mysql.so (native code) library, thus your conflict. How did you build this?

       

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.