I have a simple program, I used pygame to import sound but it is still a CLI program. Whenever I compile it into an exe it gives me an EOFError when I try to run it, It looks like this
Traceback (most recent call last):
File "PlanetaryDistanceFromSun.pyw", line 57, in <module>
File "PlanetaryDistanceFromSun.pyw", line 31, in main
File "PlanetaryDistanceFromSun.pyw", line 44, in Planet
EOFError: EOF when reading a line
Here is the piece of code in question: raw_input("How far is %s from the sun? " % planet)
I did a fair amount of searching on the internet and found a few things that said I need a console argument, but I don't understand what that is.
Have a look at this py2exe example from the pygame website:
It also contains the solution to your problem:
The relevant part is this (IIRC):
where you have to change
windows
toconsole
.Also, this thread on the pygame-user mailing list describes the same issue: