Sublime Forum

No output when building Python

#1

Hi!

When I build python in Sublime (Build 3083, Windows 7) I don’t get any output.

If I try running a Hello World:

print('Hello World!')

I sometimes get:

[Finished in 0.1s]

But usually I get:

[Finished in 0.1s with exit code 1] [shell_cmd: python -u "C:\Users\stefane\Desktop\test.py"] [dir: C:\Users\stefane\Desktop] [path: C:\TwinCAT\Common64;C:\TwinCAT\Common32;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\WinAVR-20100110\bin;C:\WinAVR-20100110\utils\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;%USERPROFILE%\.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\MOTOMAN\MotoSimEG-VRC 5.20\NT_VC11_64_DLL\code\bin;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\MOTOMAN\MotoSimEG-VRC 2015\NT_VC11_64_DLL\code\bin;C:\Program Files (x86)\QuickTime\QTSystem\;]

If I try running the same file in the command line it works as it should.

I have noticed that the PATH above don’t contain any python, the one above however is not the same one as the one in my windows system, that one looks like this:

C:\Python 3.5\Scripts\;C:\Python 3.5\;C:\Python27\;C:\Python27\Scripts;C:\TwinCAT\Common64;C:\TwinCAT\Common32;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\WinAVR-20100110\bin;C:\WinAVR-20100110\utils\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;%USERPROFILE%\.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\MOTOMAN\MotoSimEG-VRC 5.20\NT_VC11_64_DLL\code\bin;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\MOTOMAN\MotoSimEG-VRC 2015\NT_VC11_64_DLL\code\bin;C:\Program Files (x86)\QuickTime\QTSystem\

What’s wrong and how can I fix it?

//Stefan

0 Likes