Hi,

I was having the same error with Python 3.3 as mentioned on this list
a few days ago:
"ImportError: No module named 'encodings'"

so I investigated a bit and found out that this was caused by new
Python 3.3 virtual environments. Setting PYTHONHOME (or
Py_SetPythonHome) doesn't seem to be working with them.

The only working solution I've found so far for this was hacking
python_plugin.c and changing name in Py_SetProgramName from simple
"uWSGI" to a full path to the virtual environment. That seems to do
the trick to initialize them correctly using pyvenv.cfg file.

Branislav
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to