My staging GAE app throws the below err,
File "/base/data/home/apps/foo156801/worker:20170301t222555.399535951340506041/lib/MySQLdb/__init__.py", line 19, in <module>
import _mysql
ImportError: dynamic module does not define init function (init_mysql)
which was exactly same as this. According to the answer given on that link, I have changed my app.yaml MysqlDb version and the local mysqldb version to points to a same version. But no luck. Still I got the above error.
app.yaml
libraries:
- name: jinja2
version: latest
- name: MySQLdb
version: "1.2.5"
requirements.txt
Flask-API==0.6.9
MySQL-python==1.2.5
libfolder. ie,pip install -r requirements.txt -t libNo module named MySQLdb. And if I remove the builtin entry and the mysqldb package still exists on my lib folder then it shows the above error./api/users/listendpoint on my default module which gets all the users from the database.. It works just fine../send-emailin worker.py . In this handler I added a query to search in one of my tables . This causes error.