Operating system - Ubuntu Server 14.04 on Azure VM
Tried with different versions of python (3.4.3, 3.6.0), apache and mod_wsgi.
Installed MS Native ODBC driver using instructions from here https://gist.github.com/joecampo/6f777a659b8132b9d6fe1c3589df394c , while pyodbc was installed using pip.
To debug the wsgi_module I have set up the django application to run in embedded mode and:
gdb /usr/local/apache2/bin/httpd
run -X
When I access any function which imports pyodbc, the wsgi fails with the following error:
Program received signal SIGSEGV, Segmentation fault.
import_types () at src/pyodbcmodule.cpp:223
223 src/pyodbcmodule.cpp: No such file or directory.
Importing module works fine when I run the django app from the command line:
python3 manage.py runserver
Is there a workaround?