Sublime Forum

Build system python permission denied

#1

Hi,
I have several versions of Python, so I made a custom build system based on
http://docs.sublimetext.info/en/latest/file_processing/build_systems.html

My custom build is this:

{ "cmd": "/Library/Frameworks/Python.framework/Versions/3.4/bin", "-u", "$file"], "file_regex": "^ ]*File \"(...*?)\", line ([0-9]*)", "selector": "source.python" }

my sample file is this:

#!/Library/Frameworks/Python.framework/Versions/3.4/bin print("hello world")

and the build error is this:

[Errno 13] Permission denied [cmd: ['/Library/Frameworks/Python.framework/Versions/3.4/bin', '-u', '/Users/tim/Documents/Tim/Tim_App_Support/peter_modules/hello.py']] [dir: /Users/tim/Documents/Tim/Tim_App_Support/peter_modules] [path: /usr/bin:/bin:/usr/sbin:/sbin] [Finished]

I am expecting the sublime build results to return “hello world”.

What am I doing wrong?

Tim

0 Likes

#2

I’m pretty sure your /Library/Frameworks/Python.framework/Versions/3.4/bin path does not point to an executable.

0 Likes

#3

Of course!!!

I can’t believe i missed it.

Thanks so much. You saved a lot of frustration.

Tim

0 Likes