[BioPython] Error for installation of MySALdb on Mac OS X
Y Tu
ytu888 at hotmail.com
Mon Oct 15 17:18:42 UTC 2007
What I said: "MySQL_python_1.2.2, not MySQLdb" means to uninstall MySQL_python not the mysql client/server installed with the mpkg.
I just deleted the MYSQL....fat.egg file and downloaded the MySAL-python-1.2.2.tar. I repeated the installation process. However, when I run import MySQLdb, I got the same error message. Is there any other things I should take a look? Thank you very much.
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: Mon, 15 Oct 2007 12:30:21 -0400
> To: ytu888 at hotmail.com
>
> Hi,
>
> > 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?
>
> I'm not sure, exactly.
>
> Last time I checked, the only thing you needed to use mysql from
> python was:
>
> (a) A working mysql install (the client/server)
> (b) The mysqldb package from: http://sourceforge.net/projects/mysql-
> python
>
> I'm assuming (a) is installed correctly since you are using the .mpkg
> from mysql.org, so I'd just try to fix (b).
>
> You try do so by doing the following:
>
> (1) Remove your original attempt at installing the python mysqldb
> library. From the looks of your error messages, it seems to be
> installed here:
>
> Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-
> packages/MySQL_python-1.2.2-py2.5-macosx-10.3-fat.egg/
>
> (2) remove the build directory in your mysqldb directory (the one you
> are installing from) by cd-ing into your mysqldb download, and
> removing the build directory you find there.
>
> (3) reinstall mysqldb by doing the usual `pythong setup.py build` and
> `sudo python setup.py install` dance
>
> For the record, I'm not sure what you are talking about when you are
> distinguishing between "MySQL_python_1.2.2, not MySQLdb"
>
> are you trying to install two python libraries to access mysql?
>
> -steve
>
_________________________________________________________________
Boo! Scare away worms, viruses and so much more! Try Windows Live OneCare!
http://onecare.live.com/standard/en-us/purchase/trial.aspx?s_cid=wl_hotmailnews
More information about the Biopython
mailing list