0

I am trying to convert a very basic code to exe.


I am using Python 3.6, and I installed cx_Freeze 5.1 using the pip command. It installed correctly. I made the setup.py file, and put it and the code in the Python directory.

When I ran the command "python xyz.py build" it started the build process, and completed it without any error. When I tried to run the executable file of my code, I get an error.

Fatal Python error: Py-Initialize: unable to load the file system codec. Traceback......line 31 in ImportError: No Module named "codecs"

LenglBoy
  • 1,451
  • 1
  • 10
  • 24
  • so seems like there is a module missing. maybe have a look on [this post](https://stackoverflow.com/questions/42961944/cx-freeze-no-module-named-codecs) - if it´s the same problem or solved give feedback. – LenglBoy Nov 15 '17 at 13:46
  • What kind of OperatingSystem have you used? Paths/names can be changed on Windows/linux or not supported. Check the module-path and give feedback. – LenglBoy Nov 15 '17 at 13:49
  • I am using Windows 8. I tried reinstalling Python, but it doesn't work. What do you mean by module-path? – Khizar Khan Nov 15 '17 at 13:57
  • reinstall `cx_Freeze 5.1`(maybe python too) and get this one `cx_Freeze-6.0b1-cp36-cp36m-win32.whl` and new python version. This seems to be working for some others. – LenglBoy Nov 15 '17 at 14:10
  • There was a report-ticket for this issue and it got fiexed. just update everything. – LenglBoy Nov 15 '17 at 14:11

0 Answers0