Wednesday, 26 December 2018

Django on AWS Elastic Beanstalk - No module named MySQLdb Error

I have been using AWS Elastic Beanstalk to run this web app for a while with no issues on Amazon's Linux version Python 2.7 running on 64bit Amazon Linux/2.0.1.

When I tried to "upgrade" to the latest Amazon Linux version: Python 2.7 version, Linux/2.7.7 or any version after 2.0.1, I get this error:

ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb.

Did you install mysqlclient or MySQL-python?

I do have both installed and included in my requirements.txt file

MySQL-python==1.2.5
mysqlclient==1.3.14

I tried reinstalling them both and removing them one or the other from the requirements but still no luck.

Any ideas?

What has changed beyond 2.0.1 since everything is working correctly running version 2.0.1 and it is not working on any newer EB version?



from Django on AWS Elastic Beanstalk - No module named MySQLdb Error

No comments:

Post a Comment