-4

What's wrong in my application?

Fatal Python error: Py_Initialize: unable to load the file system codec
  Traceback (most recent call last):
  File "C:\ ~~~~~ \ Python36\lib\encodings\__init__.py", line 31, in <module>
  ModuleNotFoundError: No module named 'codecs'
jwpfox
  • 5,124
  • 11
  • 45
  • 42

1 Answers1

0

Update your cx_Freeze version to 5.1.1 or the latest version by running:

pip install cx_Freeze --upgrade 

and your error should fix.

This problem was fixed in the latest version as described on the cx_Freeze GitHub page: https://github.com/anthony-tuininga/cx_Freeze/issues/325

Xantium
  • 11,201
  • 10
  • 62
  • 89