Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ImportError: No module named **** Error in google app engine

I am developing my application in google app engine now i am using Google Cloud SQL. It runs at localhost perfectly,, But when i am deploying my application to server it gives me following error.

ImportError: No module named MySQLdb

Later i have copied MySQLdb package to application directory. Now it is giving me error

ImportError: No module named _mysql.

What i am doing wrong here , Any guideline ?

like image 827
Nishant Nawarkhede Avatar asked Feb 19 '13 10:02

Nishant Nawarkhede


1 Answers

MySQLdb might be missing in your app.yaml. This library should be there so that Google App Engine loads it for your instance. Hope this will help.

libraries:
- name: MySQLdb
  version: "latest"
like image 133
Ahsan.Amin Avatar answered Oct 17 '22 16:10

Ahsan.Amin