MySQL Forums
Forum List  »  Connector/Python

Re: Problems in building 1.2.2 on Mac OS 10.5
Posted by: Ches Martin
Date: July 20, 2008 11:40PM

For those finding this thread from Google as I did, I resolved this in my case after heeding the advice of the author of the MySQLdb lib:

http://mysql-python.blogspot.com/2008/03/i-am-not-dead.html

In short, make sure your MySQL installation is 32-bit if you're using a 32-bit Python installation (like stock OS X). So to summarize, a working setup for me on Leopard:

* Install pkg version of MySQL, x86 and NOT x86_64
* Download 1.22 tarball of mysql-python
* Comment out uint lines from _mysql.c as suggested in this thread (lines 37-39).
* Install as an egg with `easy_install ./MySQL-python-1.22`

'import MySQLdb' is now happy in a Python console with no errors or warnings. Hope this is helpful to others!

Options: ReplyQuote


Subject
Written By
Posted
Re: Problems in building 1.2.2 on Mac OS 10.5
July 20, 2008 11:40PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.