I built/installed MySQL-python successfully; set DYLD_LIBRARY_PATH="/usr/local/mysql/lib:$DYLD_LIBRARY_PATH"
in .bash_profile
(OS X Lion). When I execute python from the command line and import MySQLdb, everything is fine.
But when I try to import MySQLdb in IDLE, I get the following:
ImportError:
dlopen(/Users/mstath/.python-eggs/MySQL_python-1.2.3-py2.7-macosx-10.6-intel.egg-tmp/_mysql.so,
2): Library not loaded: libmysqlclient.18.dylib Referenced from:
/Users/mstath/.python-eggs/MySQL_python-1.2.3-py2.7-macosx-10.6-intel.egg-tmp/_mysql.so
Reason: image not found
I would like to know if there is something I could configure for IDLE to be able to look in /usr/local/mysql/lib/
to find libmysqlclient.
Installed Python/IDLE through python.org installer; no package managers.