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