After creating an exe from a script with py2exe
raw_input()
is causing an EOFError.
How can I avoid this?
File "test.py", line 143, in main
raw_input("\nPress ENTER to continue ")
EOFError: EOF when reading a line
After creating an exe from a script with py2exe
raw_input()
is causing an EOFError.
How can I avoid this?
File "test.py", line 143, in main
raw_input("\nPress ENTER to continue ")
EOFError: EOF when reading a line
what's wrong? what do you type on the keyboard?
edit (reported comment up here):
My guess is that you used py2exe with the "windows" argument, meaning that no console is opened - without a console there is no stdin for raw_input to use. You can instead use the "console" argument in your setup.py, and your exe will open a console window allowing raw_input to work