GAE ImportError: dynamic module does not define init function (init_mysql)
NickName:Avinash Raj Ask DateTime:2017-03-02T02:40:27

GAE ImportError: dynamic module does not define init function (init_mysql)

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

More about “GAE ImportError: dynamic module does not define init function (init_mysql)” related questions

GAE ImportError: dynamic module does not define init function (init_mysql)

My staging GAE app throws the below err, File "/base/data/home/apps/foo156801/worker:20170301t222555.399535951340506041/lib/MySQLdb/__init__.py", line 19, in &lt;module&gt; import _mysql ImportErr...

Show Detail

Google AppEngine ImportError: dynamic module does not define init function (init_mysql)

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~dw...

Show Detail

"Import Error: dynamic module does not define init function (init_mysql)" importing MySQLdb on OS X

I installed the mysqldb for python on mac os x, but it gives me the following error: Traceback (most recent call last): File "&lt;stdin&gt;", line 1, in &lt;module&gt; File "build/bdist.macosx...

Show Detail

ImportError: dynamic module does not define init function Naming is correct

While trying to build python bindings with C, I have the following #if PY_VERSION_HEX &gt;= 0x03000000 #define MOD_ERROR NULL #define MOD_INIT(name) PyObject* PyInit_##name(void) #define MOD_RETUR...

Show Detail

ImportError: dynamic module does not define init function (initlibpyuno)

I have installed Eclipse IDE with Python, I'm trying to setup an environment for writing some python scripts to automate Libre Office, I have made a script with just one line of code for now ("import

Show Detail

Pylibmc: ImportError: dynamic module does not define init function (init_pylibmc)

&gt;&gt;&gt; import pylibmc Traceback (most recent call last): File "&lt;stdin&gt;", line 1, in &lt;module&gt; File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packa

Show Detail

ImportError dynamic module does not define init function (boost.python)

Thank you for see this topic. I tried to use boost.python but now this error happens. ImportError: dynamic module does not define init function (initlatticepy) I checked some questions in we...

Show Detail

What is the init function of a dynamic module in python?

I am getting the same error of these other two questions: ImportError: dynamic module does not define init function, but it does and Cython compiled C extension: ImportError: dynamic module does ...

Show Detail

ImportError: dynamic module does not define init function (initfizzbuzz)

I tried to compile fizzbuzz.c, in order to import it by python. For building fizzbuzz.c,I used python setup.py build_ext -i. After building it, I tried to import fizzbuzz.c but the error below occ...

Show Detail

ImportError: dynamic module does not define init function (initfizzbuzz)

I tried to compile fizzbuzz.c, in order to import it by python. For building fizzbuzz.c,I used python setup.py build_ext -i. After building it, I tried to import fizzbuzz.c but the error below occ...

Show Detail