MySQL-python installation - wrong architecture - MacOS

yesterday I've installed new version of python 2.7.5 via installer on MacOS and unfortunately MySQL broke down. I got following error when starting development server:

raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e) django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: dlopen(/Volumes/Home/.python-eggs/MySQL_python-1.2.3-py2.7-macosx-10.6-intel.egg-tmp/, 2): no suitable image found. Did find: /Volumes/Home/.python-eggs/MySQL_python-1.2.3-py2.7-macosx-10.6-intel.egg-tmp/ mach-o, but wrong architecture

OS: Mac OS 10.7.3

Uname -a Darwin Rafals-MacBook-Pro.local 11.3.0 Darwin Kernel Version 11.3.0: Thu Jan 12 18:47:41 PST 2012; root:xnu-1699.24.23~1/RELEASE_X86_64 x86_64

Python 2.7.5

Do you have any idea how to solve this issue?


I think you'll need to update your MySQLdb module.

If you have setuptools installed you should be able to do with with the command:

easy_install MySQL-python

If you don't have setup tools you can install it first:

Need Your Help

How do I use strlen() on a formatted string?

c string ncurses strlen formatted

I'd like to write a wrapper function for the mvwprint/mvwchgat ncurses functions which prints the message in the specified window and then changes its attributes.