Menu

help with an import error

2009-07-08
2012-09-19
  • patrick zhao

    patrick zhao - 2009-07-08

    I've just installed MySQL-python-1.2.3c1. When I tried to import MySQLdb
    I encouned the following error messge:

    import MySQLdb
    File "build/bdist.linux-i686/egg/MySQLdb/init.py", line 19, in <module>
    File "build/bdist.linux-i686/egg/_mysql.py", line 7, in <module>
    File "build/bdist.linux-i686/egg/_mysql.py", line 6, in bootstrap
    ImportError: /usr/lib/mysql/libmysqlclient_r.so.14: undefined symbol: uncompress

     
    • Andy Dustman

      Andy Dustman - 2009-07-08

      Read README: You need zlib development libraries.

       
    • patrick zhao

      patrick zhao - 2009-07-08

      My python version is 2.5, MYSQL is 4.1

       
  • George Jansen

    George Jansen - 2009-10-09

    A bit late in the day to add to this, but maybe worth adding to the README:
    one can have the zlib development libraries and still be stuck. I found that
    the libs_r line of /usr/lib/mysql/mysql_config did not have the -lz flag;
    once I added that and recompiled, all was well.

     

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.