I had a problem setting up a virtual environment and mod_wsgi configuration.
I have this in my apache configuration:
WSGIDaemonProcess myapp python-path=/mnt/myapp/current:/mnt/env/lib/python3.4/site-packages
which clearly states that I am using python3.4.
But if I'm in my virtual environment, if I do the following, I get information that the version of Python is 3.4.3:
(env)root@Python:/mnt/env/bin
Python 3.4.3 (default, Oct 14 2015, 20:28:29)
But if I list all the files in the folder bin, I see that it is installed python3.4.
lrwxrwxrwx 1 root root 9 Mar 24 10:50 python -> python3.4
lrwxrwxrwx 1 root root 9 Mar 24 10:50 python3 -> python3.4
-rwxr-xr-x 1 root root 3709944 Mar 24 10:50 python3.4
In my apache log I get this warning:
[Fri Jul 08 10:32:52.394080 2016] [:warn] [pid 29613] mod_wsgi: Compiled for Python/3.4.0.
[Fri Jul 08 10:32:52.394119 2016] [:warn] [pid 29613] mod_wsgi: Runtime using Python/3.4.3.
And this is also from my apache log:
Fri Jul 08 10:53:01.266961 2016] [:error] [pid 29619] Traceback (most recent call last):
[Fri Jul 08 10:53:01.267014 2016] [:error] [pid 29619] File "/usr/lib/python3.4/threading.py", line 1288, in _shutdown
[Fri Jul 08 10:53:01.268311 2016] [:error] [pid 29619] assert tlock is not None
[Fri Jul 08 10:53:01.268356 2016] [:error] [pid 29619] AssertionError:
[Fri Jul 08 10:53:01.259885 2016] [:error] [pid 29621] Exception ignored in: <module 'threading' from '/usr/lib/python3.4/threading.py'>
I am not sure if the last log message is related to the previous one, but I assume it is.
Can anyone suggest how I can install the python version 3.4.3in my virtual environment? After that, I would change the configuration mod_wsgi.
Thank!