KAMIKAZE_ Guru
Joined: 09 Oct 2003 Posts: 309 Location: Riga, Latvia
|
Posted: Fri Dec 06, 2013 2:04 pm Post subject: uWSGI emperor mode with different Python version vassals |
|
|
hello.
I have Python 2.7 and 3.3 versions installed on my Gentoo server. Active profile is for 2.7. I've pip-installed uwsgi package for both versions (eselect set + pip install).
Also I have two virtualenvs for both versions (two different projects actually). Is it possible to run uwsgi in emperor mode so that vassals would run without errors like:
3.3 virtualenv doesn't launch uwsgi when 2.7 is an active profile:
Code: | Python version: 2.7.6 (default, Dec 2 2013, 11:34:27) [GCC 4.7.3]
Set PythonHome to /home/market/projects/market/.venv
ImportError: No module named site |
2.7 virtualenv doesn't launch uwsgi when 3.3 is an active profile:
Code: | Python version: 3.3.3 (default, Nov 22 2013, 01:11:50) [GCC 4.7.3]
Set PythonHome to /home/rates/projects/rates_bixority_com/.venv
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ImportError: No module named 'encodings' |
_________________ -=[powered by Gentoo]=- |
|