I tried to install a MySQL-python-1.2.2 with my python2.5 on my FreeBSD box. But I got the following error
>>> import MySQLdb
/home/ming/lib/python2.5/site-packages/MySQL_python-1.2.2-py2.5-freebsd-4.11-i386.egg/_mysql.py:3: UserWarning: Module _mysql was already imported from /home/ming/lib/python2.5/site-packages/MySQL_python-1.2.2-py2.5-freebsd-4.11-i386.egg/_mysql.pyc, but /home/ming/downloads/MySQL-python-1.2.2 is being added to sys.path
import sys, pkg_resources, imp
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "MySQLdb/init.py", line 19, in <module>
import _mysql
File "build/bdist.freebsd-4.11-i386/egg/_mysql.py", line 7, in <module>
File "build/bdist.freebsd-4.11-i386/egg/_mysql.py", line 6, in bootstrap
ImportError: /usr/local/lib/liblthread.so.2: Undefined symbol "_sched_yield"
Please, anybody tells me what to do with this error? Thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I tried to install a MySQL-python-1.2.2 with my python2.5 on my FreeBSD box. But I got the following error
>>> import MySQLdb
/home/ming/lib/python2.5/site-packages/MySQL_python-1.2.2-py2.5-freebsd-4.11-i386.egg/_mysql.py:3: UserWarning: Module _mysql was already imported from /home/ming/lib/python2.5/site-packages/MySQL_python-1.2.2-py2.5-freebsd-4.11-i386.egg/_mysql.pyc, but /home/ming/downloads/MySQL-python-1.2.2 is being added to sys.path
import sys, pkg_resources, imp
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "MySQLdb/init.py", line 19, in <module>
import _mysql
File "build/bdist.freebsd-4.11-i386/egg/_mysql.py", line 7, in <module>
File "build/bdist.freebsd-4.11-i386/egg/_mysql.py", line 6, in bootstrap
ImportError: /usr/local/lib/liblthread.so.2: Undefined symbol "_sched_yield"
Please, anybody tells me what to do with this error? Thanks!