-
Notifications
You must be signed in to change notification settings - Fork 694
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ModuleNotFoundError: No module named 'encodings' when the virtualenv path is different from the project home #2341
Comments
I got the same issue, I had to rollback to Uwsgi 2.0.18 |
I have the same issue with: Python 3.10.12 I have no workaround currently. Exactly the same crash. Only on one of a few uwsgi sites I am migrating to this server. |
If python can't find the One way to overcome this, if you're situation warrants it, includes the following.
Or, a more over the top approach:
The current Ref #2525 |
Environment:
I'm getting a ModuleNotFoundError: No module named 'encodings' error when the virtualenv path is different from the project home eg.
virtualenv: /home/venvs/py39
project home: /opt/local/apps/myproject
However, the error does not appear when the project home is in the virtual env ie.
virtualenv: /home/venvs/py39
project home: /home/venvs/py39/apps/myproject
The failing configuration:
The error message:
Working configuration ie. when project home is a directory inside the venv
The above conf is successful ans this message is part of the logs:
When the error appears, the project path is not added to the python path ie. the setup process doesn't get to this point or fails at this point or something else.
The text was updated successfully, but these errors were encountered: