Forums

Fatal Python error: Py_Initialize: Unable to get the locale encoding

When i change system image to the latest one, i saw the following error in server log

how should i fix it?

2021-10-05 19:27:43 Fatal Python error: Py_Initialize: Unable to get the locale encoding
2021-10-05 19:27:43 ModuleNotFoundError
2021-10-05 19:27:43 : 
2021-10-05 19:27:43 No module named 'encodings'

If you're using virtual environment for your web app you probably need to re-create the venv.