Sublime Forum

Newbie help to the playing with python

#1

Hello again.

I have installed Sublime text 2 today, and I’m trying to play around with some small python scripts, however it seems that it can’t read my python file.
When I’m trying to “build” the python script I get the feedback as you see in the attached files. Do you guys have any tips, or some place I should look?

btw. how do you in the console give input from several lines, each time it says something like unexpected EOF, if i tike somthing like “if x:”
Where I then would input something in the next line.

Thanks in advance.

Regards Stefan




0 Likes

#2

It looks like python.exe isn’t in your path - does it run if you type ‘python’ in a command prompt?

0 Likes

#3

Hey.

Thanks for the reply, it was the solution. I’m looking forward to follow the development of version 2.

0 Likes

#4

I am having the same issue with Sublime 2 (everything works fine with the 1.4 version). In my case, when I type 'python" in the command line everything works fine. When I run a python script using Sublime 2 (I am developing some plots using matplotlib), however, I do not get the output. When I check the task manager I see that python.exe is running on the background but, as I said before, I cannot see the resulting plot. I do not have this problem with 1.4. It might be just a stupid thing that I am missing but I cannot figure it out. Thanks!

0 Likes

#5

It sounds like Python itself is being run fine. You can verify this by sprinkling in a few print statements.

0 Likes

#6

I have a similar problem.

Running this code prints to the output panel as expected.

print ('Hello.world')

Running code which opens a Qt window works fine in 1.4 but not in ST2. Nothing opens, no process exists, as far as I see.

0 Likes