[BioPython] Error for installation of MySALdb on Mac OS X

Y Tu ytu888 at hotmail.com
Mon Oct 15 16:19:47 UTC 2007


Hi Steve,

Thank you for your email. I was away for a week. 
What do you mean "fresh" python prompt?
I installed MySQL by using MYSQL-5.0.45-osx10.4-i686.dmg downloaded online. 
I guess you want me to reinstall MySQL_python_1.2.2, not MySQLdb, am I right?

Once again, thank you very much for your help..

> CC: biopython at lists.open-bio.org
> From: lists.steve at arachnedesign.net
> Subject: Re: [BioPython]  Error for installation of  MySALdb on Mac OS X
> Date: Wed, 3 Oct 2007 10:47:41 -0400
> To: ytu888 at hotmail.com
> 
> > Steve, thank you very much. It fixed the problem and I got through  
> > the build and install step. But when I tested inside the python for  
> > the installation I got following error. Please help me about it.  
> > Thanks.
> >
> > >>> import MySQLdb
> > /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ 
> > site-packages/MySQL_python-1.2.2-py2.5-macosx-10.3-fat.egg/ 
> > _mysql.py:3: UserWarning: Module _mysql was already imported from / 
> > Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site- 
> > packages/MySQL_python-1.2.2-py2.5-macosx-10.3-fat.egg/_mysql.pyc,  
> > but /Applications/Python_Bio/MySQL-python-1.2.2 is being added to  
> > sys.path
> >   import sys, pkg_resources, imp
> > Traceback (most recent call last):
> >   File "<stdin>", line 1, in <module>
> >   File "MySQLdb/__init__.py", line 19, in <module>
> >     import _mysql
> >   File "build/bdist.macosx-10.3-fat/egg/_mysql.py", line 7, in  
> > <module>
> >   File "build/bdist.macosx-10.3-fat/egg/_mysql.py", line 6, in  
> > __bootstrap__
> > ImportError: dlopen(/Users/lizhexu/.python-eggs/MySQL_python-1.2.2- 
> > py2.5-macosx-10.3-fat.egg-tmp/_mysql.so, 2): Library not loaded: / 
> > usr/local/mysql/lib/mysql/libmysqlclient_r.15.dylib
> >   Referenced from: /Users/lizhexu/.python-eggs/MySQL_python-1.2.2- 
> > py2.5-macosx-10.3-fat.egg-tmp/_mysql.so
> >   Reason: image not found
> 
> 
> Sorry, don't know exactly what's happening here. Is this from a  
> "fresh" python prompt?
> 
> How did you install MySQLdb, did you use easy_install? If so, try to  
> install from the sourceforge download.
> 
> Try to remove it, remove the "build" directory from your mysqldb  
> download and redo the whole
> python setup.py build / python setup.py install process
> 
> To remove it, nuke this:
> /Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site- 
> packages/MySQL_python-1.2.2-py2.5-macosx-10.3-fat.egg
> 
> And try to reinstall?
> 
> Perhaps someone who knows what the problem is here can give you a  
> better idea on what to do.
> 
> -steve

_________________________________________________________________
Windows Live Hotmail and Microsoft Office Outlook – together at last.  Get it now.
http://office.microsoft.com/en-us/outlook/HA102225181033.aspx?pid=CL100626971033



More information about the Biopython mailing list