我收到以下錯誤。我實際上可以從下面給出的buid根目錄看到「build/envsetup.sh」,但我不斷收到此錯誤。即使文件存在也沒有文件錯誤
以下行有什麼問題嗎?
makecommand=Popen(['source build/envsetup.sh'],stderr=PIPE)"
BUILD_ROOT_DIR /本地的/ mnt /工作區/ AU
Traceback (most recent call last):
File "test.py", line 266, in <module>
main()
File "test.py", line 263, in main
cherrypick(base_change,SCRIPT_ROOT)
File "test.py", line 204, in cherrypick
makebuild(change)
File "test.py", line 97, in makebuild
makecommand=Popen(['source build/envsetup.sh'],stderr=PIPE)
File "/usr/lib/python2.6/subprocess.py", line 633, in __init__
errread, errwrite)
File "/usr/lib/python2.6/subprocess.py", line 1139, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
您已將此問題標記爲「python-2.7」,而上面的堆棧跟蹤顯示「python2.6」 - 這是可疑的。這是一個SCons腳本嗎? – Johnsyweb
您確定您當前的工作目錄包含「build」目錄嗎? – jdi
@Johnsyweb - oops sorry..its 2.6.5..its python script .. – user1934146