【问题标题】:Error with fetching chromium with fetch command使用 fetch 命令获取 chromium 时出错
【发布时间】:2023-02-06 13:31:48
【问题描述】:

当我尝试使用命令获取铬时,它给了我一大堆错误,最后说“FileNotFoundError:[WinError 2] 系统找不到指定的文件”

发生错误后(输出如下),我尝试将 DEPOT_TOOLS_WIN_TOOLCHAIN 添加到系统环境变量中,但重启后没有任何反应。有人对此有解决方案吗?

错误输出:

[0:00:00] Started.
Traceback (most recent call last):
  File "C:\src\depot_tools\metrics.py", line 301, in print_notice_and_exit
    yield
  File "C:\src\depot_tools\gclient.py", line 3495, in <module>
    sys.exit(main(sys.argv[1:]))
  File "C:\src\depot_tools\gclient.py", line 3481, in main
    return dispatcher.execute(OptionParser(), argv)
  File "C:\src\depot_tools\subcommand.py", line 252, in execute
    return command(parser, args[1:])
  File "C:\src\depot_tools\gclient.py", line 3032, in CMDsync
    ret = client.RunOnDeps('update', args)
  File "C:\src\depot_tools\gclient.py", line 2026, in RunOnDeps
    work_queue.flush(revision_overrides,
  File "C:\src\depot_tools\gclient_utils.py", line 1016, in flush
    reraise(e[0], e[1], e[2])
  File "C:\src\depot_tools\gclient_utils.py", line 70, in reraise
    raise value
  File "C:\src\depot_tools\gclient_utils.py", line 1093, in run
    self.item.run(*self.args, **self.kwargs)
  File "C:\src\depot_tools\gclient.py", line 1005, in run
    self._got_revision = self._used_scm.RunCommand(command, options, args,
  File "C:\src\depot_tools\gclient_scm.py", line 128, in RunCommand
    return getattr(self, command)(options, args, file_list)
  File "C:\src\depot_tools\gclient_scm.py", line 610, in update
    mirror = self._GetMirror(url, options, revision, revision_ref)
  File "C:\src\depot_tools\gclient_scm.py", line 1060, in _GetMirror
    if not self.cache_dir:
  File "C:\src\depot_tools\gclient_scm.py", line 225, in cache_dir
    return git_cache.Mirror.GetCachePath()
  File "C:\src\depot_tools\git_cache.py", line 193, in GetCachePath
    cachepath = subprocess.check_output(
  File "C:\src\depot_tools\.cipd_bin\3.8\bin\Lib\subprocess.py", line 415, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "C:\src\depot_tools\.cipd_bin\3.8\bin\Lib\subprocess.py", line 493, in run
    with Popen(*popenargs, **kwargs) as process:
  File "C:\src\depot_tools\.cipd_bin\3.8\bin\Lib\subprocess.py", line 858, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "C:\src\depot_tools\.cipd_bin\3.8\bin\Lib\subprocess.py", line 1311, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
Subprocess failed with return code 1.

【问题讨论】:

    标签: chromium


    【解决方案1】:

    您应该删除环境上的配置 DEPOT_TOOLS_UPDATE。

    【讨论】:

      猜你喜欢
      • 2020-04-25
      • 2021-08-14
      • 1970-01-01
      • 2018-03-17
      • 2016-01-02
      • 2019-01-12
      • 2022-01-11
      • 1970-01-01
      • 2020-01-18
      相关资源
      最近更新 更多