Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
uWSGI emperor mode with different Python version vassals
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
KAMIKAZE_
Guru
Guru


Joined: 09 Oct 2003
Posts: 309
Location: Riga, Latvia

PostPosted: Fri Dec 06, 2013 2:04 pm    Post subject: uWSGI emperor mode with different Python version vassals Reply with quote

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]=-
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum