Menu

Re: Error importing MySQLdb on Solaris 8/9

Help
2006-08-20
2012-09-19
  • Scott Hopkins

    Scott Hopkins - 2006-08-20

    All, thanks in advance for the help, but I'm getting an error when importing MySQLdb that I haven't been able to find on any forums, or determine the cause of. Any assistance would be appreciated.

    example script

    !/usr/local/bin/python2.4

    import sys
    sys.path.append('/home/hops01/src/python/2.4/lib/python')
    import MySQLdb
    sys.exit

    Error Message

    hops01$ /home/hops01/bin/mysql_test.py
    Traceback (most recent call last):
    File "/home/hops01/bin/mysql_test.py", line 6, in ?
    import MySQLdb
    File "/home/hops01/src/python/2.4/lib/python/MySQLdb/init.py", line 19, in ?
    import _mysql
    ImportError: ld.so.1: /home/hops01/bin/mysql_test.py: fatal: relocation error: file /home/hops01/src/python/2.4/lib/python/_mysql.so: symbol mysql_errno: referenced symbol not found

     
    • Andy Dustman

      Andy Dustman - 2006-08-21

      Apparently something went wrong with your build. Remove the build directory and try again and examine the output carefully for errors. Either that or your MySQL libraries may not be on the default path.

       

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.