Sublime Forum

OSX SL, Python 2.7.2

#1

Learning Python from the beginning, first language I’ve tried. I wanted something more robust than the CL, so I’m checking out Sublime.

Trying a simple example from a tutorial:

spam = 5 % 2 print spam

I get the following pop up error.
Error trying to parse settings: Expected value in ~/Library/Application Support/Sublime Text 2/Packages/User/Python.sublime-settings:1:1

Very new to all of this, sorry.

0 Likes

#2

I guess it was the theme I was using? When I switched from that to the default, everything seems to work as it should.

0 Likes

#3

I have a simple script, why am I getting a EOF error in Sublime, but when I run in via the command line with python file.py it works perfectly?

0 Likes

#4

Do you try to read input from the command line? Sublime does not support value input.

Look here: https://forum.sublimetext.com/t/python-using-input/4502/1

0 Likes

#5

[quote=“mulos”]Do you try to read input from the command line? Sublime does not support value input.

Look here: https://forum.sublimetext.com/t/python-using-input/4502/1[/quote]

Yes I was trying to read input:

Code is here: cl.ly/text/0z1h2C2O0n3y

All the fixes in that thread seem to be for Windows. Any for OSX?

Edit: I guess worst case use Sublime to code and keep a terminal window open to test?

0 Likes