3

I'm trying to run python code with the atom-runner for atom, but it returns an EOF error. I did what other answers to similar questions said to do, and put raw_input() instead of input(), but it still returns and EOF error.

Here is my code:

tempf = int(raw_input("What is the temperature in fahrenheit?  "))
tempc = (tempf - 32) * 5 / 9
print("The temperature in celsius is", tempc, "degrees.")

Here is the error:

What is the temperature in fahrenheit?  
Traceback (most recent call last):
File "C:\Documents\Programming\Python\f2c.py", line 1, in <module>
    tempf = int(raw_input("What is the temperature in fahrenheit?  "))
EOFError: EOF when reading a line
3
  • 1
    STDIN is not supported: github.com/lsegal/atom-runner/issues/98 Commented Apr 26, 2016 at 19:44
  • 2
    Instead of atom-runner, you can use some terminal packages or script. Commented Apr 27, 2016 at 5:22
  • I don't use atom-runner, however, your code runs fine. If you use Python 2.X then use raw_input for input, for Python 3.X use input. Commented Apr 29, 2016 at 12:38

1 Answer 1

1

Drawing together the answers from the comments, as it stands atom-runner does not support STDIN, the linked issue was responded to with:

Thanks! If someone wanted to put together a pull request to support this it would probably be accepted (if it looked good and didn't break anything, that is).

However, as quite rightly pointed out you can probably acheive what you are looking for by using the script package.

Sign up to request clarification or add additional context in comments.

1 Comment

The Github link is dead. The Github repo was archived. :(

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.