I am getting this error when I deployed my python app with Flask on Google AppEngine. I will be grateful if someone help me.
ps: My local server works like a charm
File "/base/data/home/apps/s~dwnup-997/1.385507214687998146/lib/sqlalchemy/dialects/mysql/mysqldb.py", line 92, in dbapi
return __import__('MySQLdb')
File "/base/data/home/apps/s~dwnup-997/1.385507214687998146/lib/MySQLdb/__init__.py", line 19, in <module>
import _mysql
ImportError: dynamic module does not define init function (init_mysql)
Thanks doru and Tim Hoffman,
The problem was the MySQLDb that not was at app.yaml, I deployed and shows other error.
I will open other question.
The fix is:
app.yaml
requirements.txt