Sublime Forum

EOFError using Python on MAC

#1

Hi. I get this exact error every time I use the “input” command:

#code:

print(“Hello”)
x=(input(“Write any number:”))
print(x)

#error:

Hello
Write any number:Traceback (most recent call last):
File “/Users/stineakredalen/Desktop/python.py”, line 2, in
x=(input(“Write any number:”))
EOFError: EOF when reading a line
[Finished in 0.0s with exit code 1]
[cmd: [’/Library/Frameworks/Python.framework/Versions/Current/bin/python’, ‘-u’, ‘/Users/stineakredalen/Desktop/python.py’]]
[dir: /Users/stineakredalen/Desktop]
[path: /usr/bin:/bin:/usr/sbin:/sbin]

I have added the Packages/User/Python_new.sublime-build file that was suggested in a nother topic, and chosen the Build System New_Python.
But again, I can do everything else but the input-command. I also tried raw_input.

Please help. I want this figured out before purchasing the license. (I’m on the trail)

0 Likes

#2

Yep, same problem here. To be clear, using IDLE on Mac OS X Mavericks with Python v. 3.3.3.

0 Likes

#3

Same error here on Linux:

Sublime Text 3 Build 3059 and Python 3.4.0

It works when I start it from the shell but not in sublime Text.

0 Likes