Sublime Forum

Python terminal raw_input / input gives EOFError

#1

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 “”, line 1, in
File “./main.py”, line 74, in main
numplayers = raw_input(“One player or two?[1,2]”)
EOFError: EOF when reading a line

0 Likes

#2

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?

0 Likes

#3

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.

0 Likes

#4

sorry, are you can told me how i can use it in example ?

0 Likes