django consultantmichael trosen

mysqldb and python on osx

View Comments Tagged
django mysqldb osx python
In Journal - Welcome!

What do you do if you get the following error with loading the mysqldb driver in python:
Error loading MySQLdb module: dlopen(/Users/mrtrosen/work/virtualenvs/BuzzVote/lib/python2.6/site-packages/_mysql.so, 2): Library not loaded: libmysqlclient.18.dylib

I set the following in my bash_profile:
export DYLD_LIBRARY_PATH=/usr/local/mysql/lib/

and that fixed the issue

Comments

blog comments powered by Disqus