mod_wsgi and python3

asked 2014-01-12 08:25:27 -0500

FreedomKnight gravatar image

updated 2014-09-28 17:10:08 -0500

mether gravatar image

Is fedora default mod_wsgi support python3?
How should I configure it?
All is work when i build virtualenv for python2.
but when i build a virtualenv for python3 and let WSGIPythonHome point to this venv, it always wrong.

error_log:

ImportError: No module named site

How should i do??

edit retag flag offensive close merge delete

Comments

From this https://groups.google.com/forum/#!topic/modwsgi/4aPdIUmT5Hg it looks like WSGIPythonHome is not enough - you need to add PYTHONPATH=venv to /etc/sysconfig/httpd and then systemctl reload httpd.service

marcindulak gravatar imagemarcindulak ( 2014-01-16 07:08:17 -0500 )edit

I post same question on stackoverflow, and it seems to use python3 to recompile it. [http://stackoverflow.com/questions/21075924/install-mod-wsgi-for-python-3-in-fedora-20]

FreedomKnight gravatar imageFreedomKnight ( 2014-01-16 13:51:12 -0500 )edit

@FreedomKnight starting with F20, there is python3-mod_wsgi package, you can use that (although I'm quite sure it conflicts with the python2 version).

bkabrda gravatar imagebkabrda ( 2014-11-06 05:35:22 -0500 )edit