hi,
I tried many times to run django with virtualenv on OpenLightSpeed, but I didn't succeed and I couldn't find a solution on the Internet.
Of course, if I don't use virtualenv and install the packages on the main python system, the problem will be solved, but I need to use virtualenvs.
Everything works fine until I use the following lines :
I have tested all the following lines in different order :
And many other ways ...
I get this error in stderr.log:
"Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'"
Note :
(( virtualenv has no problem and works properly in the cli ))
OS : Pop!_OS 20.04 LTS (ubuntu 20.04)
Python : 3.8
OpenLiteSpeed : 1.6.13
wsgi-lsapi : 1.6
I tried many times to run django with virtualenv on OpenLightSpeed, but I didn't succeed and I couldn't find a solution on the Internet.
Of course, if I don't use virtualenv and install the packages on the main python system, the problem will be solved, but I need to use virtualenvs.
Everything works fine until I use the following lines :
PYTHONHOME=/usr/local/lsws/Example/venv/
LS_PYTHONBIN=/usr/local/lsws/Example/venv/bin/python
I have tested all the following lines in different order :
PYTHONHOME=/usr/local/lsws/Example/venv/
----------------------------------------------------------------------------------------------------LS_PYTHONBIN=/usr/local/lsws/Example/venv/bin/python3.8
PYTHONHOME=/usr/local/lsws/Example/venv/
----------------------------------------------------------------------------------------------------PYTHONHOME=/usr/local/lsws/Example/html/venv
PYTHONPATH=/usr/local/lsws/Example/html/venv/lib/python3.8/site-packages
LS_PYTHONBIN=/usr/local/lsws/Example/html/venv/bin/python3.8
----------------------------------------------------------------------------------------------------And many other ways ...
I get this error in stderr.log:
"Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'"
Note :
(( virtualenv has no problem and works properly in the cli ))
OS : Pop!_OS 20.04 LTS (ubuntu 20.04)
Python : 3.8
OpenLiteSpeed : 1.6.13
wsgi-lsapi : 1.6