Forums

No module named 'encodings'

2023-04-19 11:41:36 Fatal Python error: 2023-04-19 11:41:36 initfsencoding 2023-04-19 11:41:36 : 2023-04-19 11:41:36 Unable to get the locale encoding 2023-04-19 11:41:36 2023-04-19 11:41:36 ModuleNotFoundError 2023-04-19 11:41:36 : 2023-04-19 11:41:36 No module named 'encodings' 2023-04-19 11:41:36 2023-04-19 11:41:36 2023-04-19 11:41:36 Current thread 0x 2023-04-19 11:41:36 00007f549f76f780 2023-04-19 11:41:36 (most recent call first): 2023-04-19 11:41:36 !!! uWSGI process 1 got Segmentation Fault !!

Hello,

I'm trying to update the system image. I have changed from earlgrey to haggis. Then I've created a new virtual environment. I reloaded the webapp. And when I try to open the page it gives me a 502. I've checked the log files and got the above error.

I'm not sure how to solve this, I've checked the old env, and there is no module 'encondings'.

I was on google and got an hint that it might be a wrong path to the env, but it seems to be correct. I've just changed the path in the web tab. and still get that error.

Please, need help. Thanks

I would expect to see that error if you had changed your system image and were still using the virtualenv from the old system image.