Possible Duplicate:
Python import MySQLdb error - Mac 10.6
I've tried everything I can find online. I've installed mysql using the dmg and I've tried installing the mysql-python (which I think worked). But I still get the error when I run in the python interpreter "import MySQLdb":
>>> 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/matthew/.python-eggs/MySQL_python-1.2.3-py2.6-macosx-10.6-universal.egg-tmp/_mysql.so, 2): Library not loaded: libmysqlclient.18.dylib
Referenced from: /Users/matthew/.python-eggs/MySQL_python-1.2.3-py2.6-macosx-10.6-universal.egg-tmp/_mysql.so
Reason: image not found
I can't figure out the problem. Ideas on how to track this down?
arch -i386 python2.6 -c "import MySQLdb"
... and also try: code.activestate.com/pypm/mysql-python