Xazker2017-11-19 10:38:17
Xazker, 2017-11-19 10:38:17

After converting py to exe, the program stopped running, why?

Compiled without errors. Here is the setup

from cx_Freeze import setup, Executable
    name = "wxSampleApp",
    version = "0.1",
    description = "An example wxPython script",
    executables = [Executable("First.py")]

When I try to run the program, it displays
File "C:\Users\dimooon\AppData\Local\Programs\Python\Python35\lib\encodings\__init__.py", line 31, in
ImportError: No module named 'codecs'

Tried updating pip install encodings. Does not help(

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Andrey Dugin, 2017-11-19

The last line says what is missing - the codecs module. Read carefully.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question