简体   繁体   English

下载Chrome时,gclient同步失败

[英]gclient sync failed when downloading chromium

I'm doing gclient sync in linux and windows and in both I'm getting the same error after around 15 min. 我正在Linux和Windows中进行gclient同步,在15分钟后,我都遇到了相同的错误。

Traceback (most recent call last):
  File "/home/jgd/dev/depot_tools/gclient.py", line 2295, in <module>
    sys.exit(main(sys.argv[1:]))
  File "/home/jgd/dev/depot_tools/gclient.py", line 2281, in main
    return dispatcher.execute(OptionParser(), argv)
  File "/home/jgd/dev/depot_tools/subcommand.py", line 252, in execute
    return command(parser, args[1:])
  File "/home/jgd/dev/depot_tools/gclient.py", line 2030, in CMDsync
    ret = client.RunOnDeps('update', args)
  File "/home/jgd/dev/depot_tools/gclient.py", line 1340, in RunOnDeps
    work_queue.flush(revision_overrides, command, args, options=self._options)
  File "/home/jgd/dev/depot_tools/gclient_utils.py", line 1047, in run
    self.item.run(*self.args, **self.kwargs)
  File "/home/jgd/dev/depot_tools/gclient.py", line 766, in run
    self.ParseDepsFile()
  File "/home/jgd/dev/depot_tools/gclient.py", line 562, in ParseDepsFile
    gclient_eval.Check(deps_content, filepath, global_scope, local_scope)
  File "/home/jgd/dev/depot_tools/gclient_eval.py", line 240, in Check
    result_scope = _gclient_exec(content, global_scope, filename=path)
  File "/home/jgd/dev/depot_tools/gclient_eval.py", line 185, in _gclient_exec
    _visit_in_module(stmt)
  File "/home/jgd/dev/depot_tools/gclient_eval.py", line 169, in _visit_in_module
    value = _gclient_eval(node.value, global_scope, filename=filename)
  File "/home/jgd/dev/depot_tools/gclient_eval.py", line 146, in _gclient_eval
    return _convert(node_or_string)
  File "/home/jgd/dev/depot_tools/gclient_eval.py", line 145, in _convert
    getattr(node, 'lineno', '<unknown>')))
ValueError: unexpected AST node: <_ast.Num object at 0x1cf5d10> Num(n=1) (file '/home/jgd/dev/jgd/webrtc/src/chromium/src/buildtools/DEPS', line 1)
Error: Command '/usr/bin/python -u src/sync_chromium.py --target-revision 316b880c55452eb694a27ba4d1aa9e74ec9ef342' returned non-zero exit status 1 in /home/jgd/dev/jgd/webrtc

Both are fresh installed and I have no idea about what is happening, it is the first time that this occurs to me. 两者都是全新安装的,我不知道发生了什么,这是我第一次遇到这种情况。 Know anyone how to solve it? 知道有人怎么解决吗?

EDIT: The DEPS file that appears in error trace is the following: 编辑:错误跟踪中出现的DEPS文件如下:

recursion = 1
use_relative_paths = True

vars = {
  "git_url": "https://chromium.googlesource.com",

  "clang_format_rev": "0ed791d1387a3c9146ea6c453c646f3c0fc97784",   # r282136
  "libcxx_revision": "b1ece9c037d879843b0b0f5a2802e1e9d443b75a",    # r256621
  "libcxxabi_revision": "0edb61e2e581758fc4cd4cd09fc588b3fc91a653", # r256323
}

deps = {
  "clang_format/script":
      Var("git_url") + "/chromium/llvm-project/cfe/tools/clang-format.git@" +
      Var("clang_format_rev"),
  "third_party/libc++/trunk":
      Var("git_url") + "/chromium/llvm-project/libcxx.git" + "@" +
      Var("libcxx_revision"),
  "third_party/libc++abi/trunk":
      Var("git_url") + "/chromium/llvm-project/libcxxabi.git" + "@" +
      Var("libcxxabi_revision"),
}

AFAIK this is auto-generated. AFAIK这是自动生成的。

sync_chromium.py was removed back in December, replaced by a more efficient and far smaller download package. sync_chromium.py于12月被删除,取而代之的是更高效,更小得多的下载程序包。 I suggest you follow the instructions at https://webrtc.org/native-code/development and get a newer checkout. 我建议您按照https://webrtc.org/native-code/development上的说明进行操作,并获得更新的结帐服务。 It should be less likely to have download problems. 它应该不太可能出现下载问题。

The issue here is the version of Python used. 这里的问题是所使用的Python版本。 As you can see in command error prompt, the version that I have used is not 2.7+ as recomended in chromium website. 正如您在命令错误提示中看到的那样,我使用的版本不是chrome网站推荐的2.7+。 Doing the change from Python to Python2.7 solve the issue. 从Python更改为Python2.7解决了该问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Chromium构建gclient runhooks错误号13 - Chromium build gclient runhooks error number 13 由于teamcity的命令行导致fetch / gclient同步失败 - fetch/gclient sync fails as teamcity's command line OSError:[Errno 2]没有这样的文件或目录:&#39;/ home / parallels / chromium / _gclient_src_kz4Qr8&#39; - OSError: [Errno 2] No such file or directory: '/home/parallels/chromium/_gclient_src_kz4Qr8' 下载xlrd python软件包时出现“解压缩失败”错误 - 'decompression failed' error when downloading xlrd python package 失败-在Selenium无头Chrome中下载时出现下载错误 - Failed - Download Error when downloading in Selenium headless Chrome 即使使用了铬,抓取 JS 也失败了 - scraping JS failed even after using chromium 消息:错误:轮询更改失败:在通过 Selenium 和 FirefoxProfile 下载文件时尝试获取资源时出现网络错误 - Message: Error: Polling for changes failed: NetworkError when attempting to fetch resource while downloading file through Selenium and FirefoxProfile 使用python下载jpg时出现错误,导致:[SSL:CERTIFICATE_VERIFY_FAILED] - Error when downloading jpg using python result in: [SSL: CERTIFICATE_VERIFY_FAILED] 以root身份运行时Chromium Webdriver错误 - Chromium webdriver error when running as root 循环下载多个音频文件失败(python) - downloading multiple audio files in a loop failed (python)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM