Home Download Buy Blog Forum Support

Python terminal raw_input / input gives EOFError

Python terminal raw_input / input gives EOFError

Postby jd110 on Sat Jan 29, 2011 5:49 am

whether I run "build"(F7) or I use the built-in Python interpreter, I get a traceback when I try to receive text input from the console:

Traceback (most recent call last):
File "<string>", line 1, in <module>
File "./main.py", line 74, in main
numplayers = raw_input("One player or two?[1,2]")
EOFError: EOF when reading a line
jd110
 
Posts: 1
Joined: Sat Jan 29, 2011 5:44 am

Re: Python terminal raw_input / input gives EOFError

Postby kobzar on Mon Apr 23, 2012 5:59 am

Yes. I have this trouble to.
Please Fix this - and your Editor whill be the BEST !!!

this bug not only in raw_input method, all of input data have this error.
May be some body have a plugin to run scrit in terminal to fix this?
kobzar
 
Posts: 19
Joined: Mon Apr 23, 2012 5:53 am

Re: Python terminal raw_input / input gives EOFError

Postby wbond on Mon Apr 23, 2012 6:43 am

Python is not attached to any sort of stdin when running inside of Sublime. If you need to accept user input, you can use show_input_panel() from the API.
wbond
 
Posts: 528
Joined: Mon Feb 28, 2011 5:33 am

Re: Python terminal raw_input / input gives EOFError

Postby kobzar on Mon Apr 23, 2012 6:55 am

sorry, are you can told me how i can use it in example ?
kobzar
 
Posts: 19
Joined: Mon Apr 23, 2012 5:53 am


Return to Technical Support

Who is online

Users browsing this forum: willy1234x1 and 20 guests