<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi All<br>
<br>
I'm trying to import the MySQLdb for python. I downloaded the
proper setuptools egg (ver2.7) for a Mac with OSX10.6<br>
<br>
I then downloaded the MySQL-python-1.2.3 and ran the following
commands<br>
<br>
<small><small><font face="Courier New, Courier, monospace">python
setup.py build<br>
sudo python setup.py install</font></small></small><br>
<br>
Then to test that the module was properly loaded I used the
interactive python prompt ad ran the following command:<br>
<br>
<small><small><font face="Courier New, Courier, monospace">import
MySQLdb</font></small></small><br>
<br>
The error message read:<br>
<br>
<small><small><small><font face="Courier">Traceback (most recent
call last):<br>
File "<stdin>", line 1, in <module><br>
File "MySQLdb/__init__.py", line 19, in <module><br>
import _mysql<br>
File "build/bdist.macosx-10.6-intel/egg/_mysql.py", line
7, in <module><br>
File "build/bdist.macosx-10.6-intel/egg/_mysql.py", line
6, in __bootstrap__<br>
ImportError:
dlopen(/Users/dally/.python-eggs/MySQL_python-1.2.3-py2.7-macosx-10.6-intel.egg-tmp/_mysql.so,
2): Library not loaded: libmysqlclient.18.dylib<br>
Referenced from:
/Users/dally/.python-eggs/MySQL_python-1.2.3-py2.7-macosx-10.6-intel.egg-tmp/_mysql.so<br>
Reason: image not found<br>
</font></small></small></small><br>
Does anyone have any ideas on how to fix this problem? Any help
will be greatly appreciated!<br>
<br>
Dilara<br>
<br>
</body>
</html>