PyCharm 1.5: No module named MySQLdb

hello all,

i got this error when running my project, having these lines in the console:

/Users/me/python/virtualenv/bmfvca6/bin/python runserver 8000
Traceback (most recent call last):
  File "", line 14, in <module>
  File "/Users/me/python/virtualenv/bmfvca6/lib/python2.6/site-packages/django/core/management/", line 438, in execute_manager

  File "/Users/me/python/virtualenv/bmfvca6/lib/python2.6/site-packages/django/db/backends/mysql/", line 14, in <module>
    raise ImproperlyConfigured("Error loading MySQLdb module: %s" % e)
django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb

Process finished with exit code 1

but executing the same command in the terminal (i'm on macosx) works:

$/Users/me/python/virtualenv/bmfvca6/bin/python runserver 8000
Validating models...

0 errors found
Django version 1.3, using settings 'momo.settings'
Development server is running at
Quit the server with CONTROL-C.

why pycharm is ignoring my module?

thanks in advance for help,


1 comment
Comment actions Permalink

ok, i found where to to the change. In Preferences, Python Interpreter, i added the path containing the path to mysqldb module.

sorry for the noise



Please sign in to leave a comment.