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 manage.py runserver 8000
Traceback (most recent call last):
File "manage.py", line 14, in <module>
execute_manager(settings)
File "/Users/me/python/virtualenv/bmfvca6/lib/python2.6/site-packages/django/core/management/__init__.py", line 438, in execute_manager
utility.execute()
...
File "/Users/me/python/virtualenv/bmfvca6/lib/python2.6/site-packages/django/db/backends/mysql/base.py", 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 manage.py runserver 8000
Validating models...
0 errors found
Django version 1.3, using settings 'momo.settings'
Development server is running at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
why pycharm is ignoring my module?
thanks in advance for help,
gerard
Please sign in to leave a comment.
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
gerard