Can't execute python scripts, is permission allowed?
I am trying to compile a project using "appcelerator" (crossplatform dev for iphone / android). I just appreciate it. It seems that some python scripts are doing the build, but can't get it to work (and don't make it to help forums anywhere). It looks like a permissions error, but I can't figure it out. I guess I would try here if this is a familiar thing in python:
Exception occured while building project:
Traceback (most recent call last):
File "/Library/Application Support/Titanium/mobilesdk/osx/1.8.2/android/builder.py", line 2089, in <module>
s.build_and_run(True, avd_id, device_args=device_args)
File "/Library/Application Support/Titanium/mobilesdk/osx/1.8.2/android/builder.py", line 1934, in build_and_run
run_result = run.run(dex_args, warning_regex=r'warning: ')
File "/Library/Application Support/Titanium/mobilesdk/osx/1.8.2/android/run.py", line 36, in run
process = subprocess.Popen(args, stderr=subprocess.PIPE, stdout=subprocess.PIPE)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py", line 595, in __init__
errread, errwrite)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py", line 1106, in _execute_child
raise child_exception
OSError: [Errno 13] Permission denied
I have set the permissions for "run.py" and "builder.py" to 777. The file "subprocess.py" is also 777. I am still getting permission denied. Is there something obvious I'm missing here? I am an administrator, on os 10.6.
thank
source to share
The problem is not with any of the python files you mention, but with any command that must be executed by a statement subprocess.Popen
.
To fix the problem, you can try pdb
to debug the problem or just edit run.py
and add:
print args
before subprocess.Popen
to figure out which command that has insufficient permissions.
source to share