Reputation: 23955
I have configured uWSGI with NGIX and django.
Uwsgi fails with message:
Fatal Python error: Py_Initialize: Unable to get the locale encoding
ImportError: No module named encodings
Upvotes: 5
Views: 6434
Reputation: 23955
Found problem. I have installed uwsgi plugins both for python and python3. Python3 plugin was used, while default interpreter for my system was python 2.6.
When I uninstalled uwsgi python3 plugin problem dissapeared. You can also specify what plugin to use for speciffic application by setting the plugins
option.
Upvotes: 3