On 21/01/20 14:59, Manuele Pesenti wrote:
Thank you Tim,

I tried but restarting apache and accessing the instance the browser takes a long time to respond and I get this error in log:

ImportError: No module named site

Could it be related to this https://stackoverflow.com/a/41006418/1039510 ?


> When using a Python virtual environment with mod_wsgi, it is very important that it has been created using the same Python installation that mod_wsgi was originally compiled for. It is not possible to use a Python virtual environment to force mod_wsgi to use a different Python version, or even a different Python installation.
>
> You cannot for example force mod_wsgi to use a Python virtual environment created using Python 3.5 when mod_wsgi was originally compiled for Python 2.7. This is because the Python library for the Python installation it was originally compiled against is linked directly into the mod_wsgi module.
>
> So most likely what is happening is that mod_wsgi is compiled for Python 2.6. You cannot in this case force it to use a Python virtual environment created from Python 2.7. When you do this, you will get the error you see about site module being missing.

So I guess I have to try using the second web2py (R-2.18 under python3 virtualenv) instance through mod_proxy... right?

Cheers

    Manuele

--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/e22744f7-e25b-3991-1040-dfb937802d2d%40gmail.com.

Reply via email to