Hi I am permit you to ask you about a problem that I have with hosting flask application with the portage of mod_wsgi on windows
I have two flask application and only one can be alive a the same times due to conflict in import ie : If a request application 1 I have a response Then if I request application 2 I have internal server error with error in log ... Then if I restart apache and I request application 2 I have a response but if I request application 1 I have the same internal server error If I comments some import like numpy both application can be alive at the same time Any help would be appreciated if you have any idea or link or answer to about this problem? My installation is describe below Thanks by advance for tour times and your works Alexandre LOG of the error mod_wsgi (pid=4936): Failed to exec Python script file 'D:/exec/Apache24/htdocs/wsgi/api_test_2.wsgi'. mod_wsgi (pid=4936): Exception occurred processing WSGI script 'D:/exec/Apache24/htdocs/wsgi/api_test_2.wsgi'. Traceback (most recent call last):\r File "D:/exec/Apache24/htdocs/wsgi/api_test_2.wsgi", line 3, in <module>\r from api_test_2 import app as application\r File "D:/exec/wsgi_api/api_test_2\\api_test_2.py", line 2, in <module>\r import numpy\r File "c:\\python\\python36\\lib\\site-packages\\numpy\\__init__.py", line 142, in <module>\r from . import core\r File "c:\\python\\python36\\lib\\site-packages\\numpy\\core\\__init__.py", line 16, in <module>\r from . import multiarray\r File "c:\\python\\python36\\lib\\site-packages\\numpy\\core\\multiarray.py", line 12, in <module>\r from . import overrides\r File "c:\\python\\python36\\lib\\site-packages\\numpy\\core\\overrides.py", line 46, in <module>\r """)\r RuntimeError: implement_array_function method already has a docstring\r #--------------------------------- # file : D:/exec/wsgi_api/api_test_1/api_test_1.py #--------------------------------- from flask import Flask, jsonify,render_template, request, make_response import numpy app = Flask(__name__) @app.route('/') def home(): resp = make_response("hello from 1", 200) resp.headers['Content-Type'] = 'charset=utf-8' return resp #--------------------------------- #--------------------------------- # file : D:/exec/wsgi_api/api_test_2/api_test_2.py #--------------------------------- from flask import Flask, jsonify,render_template, request, make_response import numpy app = Flask(__name__) @app.route('/') def home(): resp = make_response("hello from 2", 200) resp.headers['Content-Type'] = 'charset=utf-8' return resp if __name__ == '__main__': app.run(host='127.0.0.1', port=36000) #--------------------------------- I have this two wsgi file in appache httpdocs #--------------------------------- # file : D:/exec/Apache24/htdocs/wsgi/api_test_1.wsgi #--------------------------------- import sys sys.path.append('D:/exec/wsgi_api/api_test_1/') from api_test_1 import app as application #--------------------------------- #--------------------------------- # file : D:/exec/Apache24/htdocs/wsgi/api_test_2.wsgi #--------------------------------- import sys sys.path.append('D:/exec/wsgi_api/api_test_1/') from api_test_1 import app as application #--------------------------------- #--------------------------------- In D:/exec/Apache24/conf/httpd.conf i add the line #--------------------------------- WSGIScriptAlias /api_test_1 "D:/exec/Apache24/htdocs/wsgi/api_test_1.wsgi" WSGIScriptAlias /api_test_2 "D:/exec/Apache24/htdocs/wsgi/api_test_2.wsgi" #--------------------------------- -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To unsubscribe from this group and stop receiving emails from it, send an email to modwsgi+unsubscr...@googlegroups.com. To post to this group, send email to modwsgi@googlegroups.com. Visit this group at https://groups.google.com/group/modwsgi. For more options, visit https://groups.google.com/d/optout.