I have been struggling with this for days. Installing / uninstalling / starting over.
I am attempting to get python working with the mysql with MAMP and have followed many tutorials but it seems that I constantly get to this point where I am testing the import MySQLdb module.
Below is the error I receive. Any advice on how to continue?
>>> import MySQLdb
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/MySQL_python-1.2.4b4-py2.7-macosx-10.5-intel.egg/MySQLdb/__init__.py", line 19, in <module>
import _mysql
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/MySQL_python-1.2.4b4-py2.7-macosx-10.5-intel.egg/_mysql.so, 2): Library not loaded: libmysqlclient.16.dylib
Referenced from: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/MySQL_python-1.2.4b4-py2.7-macosx-10.5-intel.egg/_mysql.so
Reason: image not found