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.
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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.