I Installed MySQL-python-1.2.3 on my Mac OSX 10.7 and I worked fine. But when
I try to run: python manage.py runserver
I get the error: django.core.exceptions.ImproperlyConfigured: Error loading
MySQLdb module: dlopen(/Users/torsten/.python-
eggs/MySQL_python-1.2.3-py2.7-macosx-10.7-intel.egg-tmp/_mysql.so, 2): no
suitable image found. Did find:
/Users/torsten/.python-eggs/MySQL_python-1.2.3-py2.7-macosx-10.7-intel.egg-
tmp/_mysql.so: mach-o, but wrong architecture
Can anybody help here ?
Thanks Torsten
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi
I Installed MySQL-python-1.2.3 on my Mac OSX 10.7 and I worked fine. But when
I try to run: python manage.py runserver
I get the error: django.core.exceptions.ImproperlyConfigured: Error loading
MySQLdb module: dlopen(/Users/torsten/.python-
eggs/MySQL_python-1.2.3-py2.7-macosx-10.7-intel.egg-tmp/_mysql.so, 2): no
suitable image found. Did find:
/Users/torsten/.python-eggs/MySQL_python-1.2.3-py2.7-macosx-10.7-intel.egg-
tmp/_mysql.so: mach-o, but wrong architecture
Can anybody help here ?
Thanks Torsten
Hi,
Justa a temporary solution.
I am using environment similar to yours and it seems that in this
circumstances Python is running in 64 bit mode by default.
When I do 'export VERSIONER_PYTHON_PREFER_32_BIT=yes' it is working.
There are other ways to force Python to run in 32 bit mode, just have a look
at 'man python'.
However maybe more appropriate solution would be simply to install 64 version
of driver?
Thanks,
Lukasz