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
Copyright Notice:Content Author:「Avinash Raj」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/42539476/gae-importerror-dynamic-module-does-not-define-init-function-init-mysql