Home Download Buy Blog Forum Support

Python Build Error

Python Build Error

Postby trautlein on Sat Feb 23, 2013 1:01 am

I am unable to get a Python system to build on a friends computer which runs Windows XP SP3 using Sublime Text 2. We reinstalled Python 2.7.3 and also Sublime Text 2 and still are having trouble with this. Our "Python.sublime-build" file says:

Code: Select all
{
    "cmd": ["C:\\Python27\\python.exe", "-u", "$(FULL_CURRENT_PATH)"],
    "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
    "selector": "source.python"
}


When we try to build simple Python programs, such as:

Code: Select all
2 * 2


Sublime Text will not build the system, and will instead spit out:

Code: Select all
C:\Python27\python.exe: can't find '__main__' module in ''
[Finished in 0.1s with exit code 1]


It would be wonderful if I could get some help with this. Thank you so much whoever assists me with this!
trautlein
 
Posts: 2
Joined: Sat Feb 23, 2013 12:58 am

Re: Python Build Error

Postby trautlein on Sat Feb 23, 2013 6:03 pm

Code: Select all
{
    "cmd": ["C:\\Python27\\python.exe", "-u", "$file"],
    "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
    "selector": "source.python"
}


This is what my new code for the Python build file looks like, yet it still does not work.
trautlein
 
Posts: 2
Joined: Sat Feb 23, 2013 12:58 am


Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot] and 12 guests