executable - Python shebang execution permission denied -


this question has answer here:

i have simple script called blah.py looks this:

#!/space/jazz/1/users/gwarner/anaconda/bin python print 'here' 

my which python returns /space/jazz/1/users/gwarner/anaconda/bin/python , ls -l blah.py returns -rwxrwxr-x 1 gwarner gwarner 64 jul 13 14:16 blah.py. username gwarner. however, when try execute script directory lives in using ./blah.py ./blah.py: permission denied. runs correctly when execute using python blah.py. going on?

i think have space in shebang line... try this:

#!/space/jazz/1/users/gwarner/anaconda/bin/python 

Comments

Popular posts from this blog

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

javascript - Using jquery append to add option values into a select element not working -

javascript - Restarting Supervisor and effect on FlaskSocketIO -