Skip to content Skip to sidebar Skip to footer

Import Conflict When Running Flask App With Apache Mod_wsgi On Windows

I am permit you to ask you about a problem that I have with hosting flask application with your portage of mod_wsgi on windows I have two flask application and only one can be aliv

Solution 1:

I had a similar issue in a project. In my case, I had to add WSGIApplicationGroup %{GLOBAL} inside the .conf file of my site.

This is the documentation where I found the information: https://modwsgi.readthedocs.io/en/develop/user-guides/checking-your-installation.html#sub-interpreter-being-used

Solution 2:

I had a discussion on the mod_wsgi mailing list and I had the same response The explanation is numpy doesn't work in Python sub interpreters as the C extension modules are not implement properly to allow that, thus for mod_wsgi you can only use numpy in the main interpreter context, forced by the 'WSGIApplicationGroup %{GLOBAL}' directive

This is linked with the subject https://github.com/numpy/numpy/issues/3961

Solution 3:

Try putting this in your WSGI configuration file:

single-interpreter = true

Solution 4:

This works for me

i add WSGIApplicationGroup %{GLOBAL} in apache config file which is available in site-enabled folder.

Post a Comment for "Import Conflict When Running Flask App With Apache Mod_wsgi On Windows"