> On 30 Nov 2018, at 2:48 pm, Hemant Chaudhary <[email protected]> > wrote: > > Hi, > > I am building Wsgi from source code with python2.7.12 version using apxs of > apache. The mod_wsgi generated is working fine but If I am building wsgi from > soirce code with python3.6.2 then generated mod_wsgi is not serving the > request. > > So my doubt is whether wsgi has any change related to python 3
Should work fine for Python 2.7 and 3.6. What is the Apache configuration you are using for mod_wsgi? Are you using daemon mode as is recommended? Are you forcing the use of the main interpreter context by setting the application group, as is also recommended, and can avoid a problem like you are seeing, caused by third party Python modules that will not work in sub interpreters? Graham > Thanks > Hemant > > On Nov 30, 2018 4:55 AM, "Graham Dumpleton" <[email protected] > <mailto:[email protected]>> wrote: > > >> On 30 Nov 2018, at 2:50 am, Hemant Chaudhary <[email protected] >> <mailto:[email protected]>> wrote: >> >> Hi All, >> >> I am using mod_wsgi (4.5.14) version. This is working fine with >> apache-2.4.29(worker mpm) if I build mod_wsgi with pyhton 2.7 version. >> But if I am building same mod_wsgi with python-3.6.6 version, then during >> serving the request from wsgi module, my process gets killed. >> >> Is there any issue with python dependency of wsgi(4.5.14) with python2 or >> python3 ?? > > What do you mean by "if I build mod_wsgi with pyhton 2.7"? > > I find this statement confusing given that mod_wsgi 4.5.14 is quite old and > if you were building from source code you shouldn't be using that version. > > This makes me think you aren't actually building mod_wsgi from source code > but you simply mean you are trying to configure existing Apache/mod_wsgi to > use different Python installation via a virtual environment. > > In short, mod_wsgi must be built from source code for the specific Python > version you want to use. You can use mod_wsgi compiled for Python 2.7 with a > Python virtual environment created using Python 3.6. > > If you are building from mod_wsgi source code, you need to uninstall any > system package for mod_wsgi and manually configure Apache to use the mod_wsgi > you built from source code. > > These days it is easier to use 'pip install' method to build mod_wsgi from > source code: > > https://pypi.org/project/mod_wsgi/ <https://pypi.org/project/mod_wsgi/> > > Can you please explain better what you are doing, what commands you are using > to install mod_wsgi, how you are configuring Apache for mod_wsgi etc. > > Graham > > > -- > 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 [email protected] > <mailto:[email protected]>. > To post to this group, send email to [email protected] > <mailto:[email protected]>. > Visit this group at https://groups.google.com/group/modwsgi > <https://groups.google.com/group/modwsgi>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. > > > -- > 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 [email protected] > <mailto:[email protected]>. > To post to this group, send email to [email protected] > <mailto:[email protected]>. > Visit this group at https://groups.google.com/group/modwsgi > <https://groups.google.com/group/modwsgi>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/modwsgi. For more options, visit https://groups.google.com/d/optout.
