设置WebRTC本机开发环境时出错

2024-06-10 19:55:58 发布

您现在位置:Python中文网/ 问答频道 /正文

当在Ubuntu中设置webRTC本机开发环境时,我在执行fetch webrtc(按照http://www.webrtc.org/native-code/development的指示)时出现以下错误

> Error: Command '/usr/bin/python src/webrtc/build/gyp_webrtc
> -Dextra_gyp_flag=0' returned non-zero exit status 1 in /home/anoop/Documents/webrtcrepo Traceback (most recent call last):  
> File "/home/anoop/depot_tools/fetch.py", line 342, in <module>
>     sys.exit(main())   File "/home/anoop/depot_tools/fetch.py", line 337, in main
>     return run(options, spec, root)   File "/home/anoop/depot_tools/fetch.py", line 331, in run
>     return checkout.init()   File "/home/anoop/depot_tools/fetch.py", line 142, in init
>     self.run_gclient(*sync_cmd)   File "/home/anoop/depot_tools/fetch.py", line 76, in run_gclient
>     return self.run(cmd_prefix + cmd, **kwargs)   File "/home/anoop/depot_tools/fetch.py", line 66, in run
>     return subprocess.check_output(cmd, **kwargs)   File "/usr/lib/python2.7/subprocess.py", line 573, in check_output
>     raise CalledProcessError(retcode, cmd, output=output) subprocess.CalledProcessError: Command '('gclient', 'sync',
> '--with_branch_heads')' returned non-zero exit status 2

请帮我解决这个问题。在

更新

在直接运行gclient sync之后,我得到以下错误

^{pr2}$

一。在


Tags: runinpycmdhomeoutputreturnline