5

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

1 Answer 1

3

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.

Sign up to request clarification or add additional context in comments.

1 Comment

Hi JB, can you please have a look at stackoverflow.com/questions/16272542/… I am getting the same error but not sure how to resolve it. Can you tell what exactly you did in your case

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.