Hi everyone,
Thank you for taking the time to look at my question.
I’m setting up a django project that I got from a code repository, and in trying to run ./manage.py syncdb I get the following error:
django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: this is MySQLdb version (1, 2, 3, 'final', 0), but _mysql is version (1, 2, 2, 'final', 0).
I get the same error when running import MySQLdb at the python command line interpreter. Does anyone have any ideas? I’ve spent hours searching for similar posts, but no solutions seem to help me.
I’d appreciate any suggestions!
__________ Information from ESET NOD32 Antivirus, version of virus signature
database 6397 (20110821) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
Seems you mysqldb (the Python DB-API 2.0 compatible library to access
MySQL databases) installation is borked.
mysqldb is composed of two layers:
_mysql is a low level one, a more or less thin wrapper over the C mysql client
libraries.
On top of that there is mysldb itself, that uses the services of _mysql
and implemets the DB-API specification.
You seem to have a a corrupt copy because both pieces are released together,
and when a correct installation has been performed, they are built and installed
together with matching version IDs.
You might find better answers in a mailing list or IRC channel
devoted to mysqldb. This isn't a Django -related or -specific issue.
Regards,
--
Ramiro Morales
Hold on, i would say this is a django-related question (albeit not related to a problem within django). OP - try removing and reinstalling mysqldb on your python install and/or env.
Hi All,
Thanks for taking the time to respond to my question.
Cal: I did try uninstalling and re-installing.
Kejun: Yes, it's installed.