Error loading MySQLdb module: No module named MySQLdb
I am trying to install Dashboard following this guide http://wiki.openstack.org/OpenStackDashboard (http://wiki.openstack.org/OpenStackDa...) . When I sync database, I had this error:
tools/with_venv.sh openstack-dashboard/manage.py syncdb
File "/home/user1/horizon/.venv/local/lib/python2.7/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
I use Ubuntu server 11.10 amd64 and I installed "python-mysqldb". When I test in Python interpreter, it's ok.
import MySQLdb
I also tried to install by: ~/horizon# easy_install MySQL-python but it only returns that:
Searching for mysql-python Best match: MySQL-python 1.2.3 MySQL-python 1.2.3 is already the active version in easy-install.pth
Using /usr/lib/pymodules/python2.7 Processing dependencies for mysql-python Finished processing dependencies for mysql-python
What's wrong in this case? Thank you!