我试图使用“appcelerator”(用于iphone/android的跨平台开发工具)编译一个项目。只是评估一下。它似乎运行了一些python脚本来完成构建,但无法使其正常工作(在那里的帮助论坛上也找不到任何地方)。似乎是权限错误,但我想不通。我想在这里试试,以防这是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
我已将“run.py”和“builder.py”的权限设置为777。“subprocess.py”文件也是777。我还是得到了拒绝许可的错误。有什么明显的我遗漏了吗?我是os 10.6上的管理员用户。
谢谢
问题不在您提到的任何python文件中,而在应该由
subprocess.Popen
语句执行的任何命令中。要解决该问题,可以尝试使用^{} 调试该问题,或者只编辑
run.py
并添加:就在
subprocess.Popen
找出没有足够权限的命令之前。相关问题 更多 >
编程相关推荐