mysql - MySQLdb for Python - incompatible library version error? -


i am, many others, trying mysqldb python run on mac snow leopard (10.6.x) , i've been able install 64-bit mysql dmg recommended various blogs/forum posts, , i've been able install setuptools , mysqldb using the

archflags='-arch 86_64' python2.7 setup.py clean archflags='-arch 86_64' python2.7 setup.py build sudo archflags='-arch 86_64' python2.7 setup.py install 

as can see above have upgraded python 2.7 , seems fine; except when try import mysqldb python shell.

>>> import mysqldb traceback (most recent call last):   file "<stdin>", line 1, in <module>   file "build/bdist.macosx-10.6-universal/egg/mysqldb/__init__.py", line 19, in <module>   file "build/bdist.macosx-10.6-universal/egg/_mysql.py", line 7, in <module>   file "build/bdist.macosx-10.6-universal/egg/_mysql.py", line 6, in __bootstrap__ importerror: dlopen(/users/ad/.python-eggs/mysql_python-1.2.3c1-py2.6-macosx-10.6-universal.egg-tmp/_mysql.so, 2): library not loaded: /usr/local/mysql/lib/libmysqlclient.16.dylib   referenced from: /users/ad/.python-eggs/mysql_python-1.2.3c1-py2.6-macosx-10.6-universal.egg-tmp/_mysql.so   reason: incompatible library version: _mysql.so requires version 17.0.0 or later, libmysqlclient.16.dylib provides version 16.0.0 

i did search , found libmysqlclient.16.dylib not libmysqlclient.17.dylib

what causing problem, how resolve it, , though did search libmysqlclient.17.dylib there seems nothing it; exist?

thanks

you built module against mysql 5.5.x, client libraries 5.1.x available on system. either install updated libraries, or build against older version.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -