Friday, April 1, 2011

Error: No module named mysql.base when trying to sync.db

I posted the same question on stackoverflow here:
http://stackoverflow.com/questions/5509755/problem-with-django-syncdb-on-amazon-ec2

Reproduced

Hi all, I'm trying to deploy my project on my EC2 instance. When I run
python manage.py validate I get this error Error: No module named
mysql.base .

I have already installed MySQL-python using yum install MySQL-python.
I can import MySQLdb successfully from the Python interpreter.

I can't seem to figure out what's wrong?

I am using Django 1.3 and Python 2.6 and MySQLdb 1.2.3c1

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment