question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Windows toolchain out of date or doesn't exist, updating (Pro) error on e sync

See original GitHub issue
________ running 'python3 src/build/landmines.py' in 'C:\Users\c\Desktop\r\electron'
________ running 'python3 src/third_party/depot_tools/update_depot_tools_toggle.py --disable' in 'C:\Users\c\Desktop\r\electron'
________ running 'python3 src/tools/remove_stale_pyc_files.py src/android_webview/tools src/build/android src/gpu/gles2_conform_support src/infra src/ppapi src/printing src/third_party/blink/renderer/build/scripts src/third_party/blink/tools src/third_party/catapult src/tools' in 'C:\Users\c\Desktop\r\electron'
________ running 'python3 src/build/vs_toolchain.py update --force' in 'C:\Users\c\Desktop\r\electron'
Windows toolchain out of date or doesn't exist, updating (Pro)...
  current_hashes:
  desired_hash: e146e01913
Traceback (most recent call last):
  File "C:\Users\c\Desktop\r\electron\src\third_party\depot_tools\win_toolchain\get_toolchain_if_necessary.py", line 608, in <module>
    sys.exit(main())
  File "C:\Users\c\Desktop\r\electron\src\third_party\depot_tools\win_toolchain\get_toolchain_if_necessary.py", line 547, in main
    DoTreeMirror(toolchain_target_dir, args.desired_hash)
  File "C:\Users\c\Desktop\r\electron\src\third_party\depot_tools\win_toolchain\get_toolchain_if_necessary.py", line 363, in DoTreeMirror
    temp_dir, local_zip = DownloadUsingHttp(tree_sha1 + '.zip')
  File "C:\Users\c\Desktop\r\electron\src\third_party\depot_tools\win_toolchain\get_toolchain_if_necessary.py", line 313, in DownloadUsingHttp
    import urlparse
ModuleNotFoundError: No module named 'urlparse'
Traceback (most recent call last):
  File "src/build/vs_toolchain.py", line 573, in <module>
    sys.exit(main())
  File "src/build/vs_toolchain.py", line 569, in main
    return commands[sys.argv[1]](*sys.argv[2:])
  File "src/build/vs_toolchain.py", line 517, in Update
    subprocess.check_call(get_toolchain_args)
  File "C:\Users\c\.electron_build_tools\third_party\depot_tools\bootstrap-2@3_8_10_chromium_19_bin\python3\bin\lib\subprocess.py", line 364, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['C:\\Users\\c\\.electron_build_tools\\third_party\\depot_tools\\bootstrap-2@3_8_10_chromium_19_bin\\python3\\bin\\python3.exe', 'C:\\Users\\c\\Desktop\\r\\electron\\src\\third_party\\depot_tools\\win_toolchain\\get_toolchain_if_necessary.py', '--output-json', 'C:\\Users\\c\\Desktop\\r\\electron\\src\\build\\win_toolchain.json', 'e146e01913', '--force']' returned non-zero exit status 1.
Error: Command 'python3 src/build/vs_toolchain.py update --force' returned non-zero exit status 1 in C:\Users\c\Desktop\r\electron
Windows toolchain out of date or doesn't exist, updating (Pro)...
  current_hashes:
  desired_hash: e146e01913
Traceback (most recent call last):
  File "C:\Users\c\Desktop\r\electron\src\third_party\depot_tools\win_toolchain\get_toolchain_if_necessary.py", line 608, in <module>
    sys.exit(main())
  File "C:\Users\c\Desktop\r\electron\src\third_party\depot_tools\win_toolchain\get_toolchain_if_necessary.py", line 547, in main
    DoTreeMirror(toolchain_target_dir, args.desired_hash)
  File "C:\Users\c\Desktop\r\electron\src\third_party\depot_tools\win_toolchain\get_toolchain_if_necessary.py", line 363, in DoTreeMirror
    temp_dir, local_zip = DownloadUsingHttp(tree_sha1 + '.zip')
  File "C:\Users\c\Desktop\r\electron\src\third_party\depot_tools\win_toolchain\get_toolchain_if_necessary.py", line 313, in DownloadUsingHttp
    import urlparse
ModuleNotFoundError: No module named 'urlparse'
Traceback (most recent call last):
  File "src/build/vs_toolchain.py", line 573, in <module>
    sys.exit(main())
  File "src/build/vs_toolchain.py", line 569, in main
    return commands[sys.argv[1]](*sys.argv[2:])
  File "src/build/vs_toolchain.py", line 517, in Update
    subprocess.check_call(get_toolchain_args)
  File "C:\Users\c\.electron_build_tools\third_party\depot_tools\bootstrap-2@3_8_10_chromium_19_bin\python3\bin\lib\subprocess.py", line 364, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['C:\\Users\\c\\.electron_build_tools\\third_party\\depot_tools\\bootstrap-2@3_8_10_chromium_19_bin\\python3\\bin\\python3.exe', 'C:\\Users\\c\\Desktop\\r\\electron\\src\\third_party\\depot_tools\\win_toolchain\\get_toolchain_if_necessary.py', '--output-json', 'C:\\Users\\c\\Desktop\\r\\electron\\src\\build\\win_toolchain.json', 'e146e01913', '--force']' returned non-zero exit status 1.

ERROR Error: Command failed: python C:\Users\c\.electron_build_tools\third_party\depot_tools\gclient.py sync --with_branch_heads --with_tags -vv
    at checkExecSyncError (child_process.js:643:11)
    at Object.execFileSync (child_process.js:661:15)
    at Object.depotExecFileSync [as execFileSync] (C:\Users\c\.electron_build_tools\src\utils\depot-tools.js:118:16)
    at runGClientSync (C:\Users\c\.electron_build_tools\src\e-sync.js:54:9)
    at Object.<anonymous> (C:\Users\c\.electron_build_tools\src\e-sync.js:76:3)
    at Module._compile (internal/modules/cjs/loader.js:1085:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
    at Module.load (internal/modules/cjs/loader.js:950:32)
    at Function.Module._load (internal/modules/cjs/loader.js:790:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)

Hi, I am getting the above error when running e sync.

Anyone facing the same issue or can suggest a solution?

I am sure I have all the prerequisites installed. I tried a fresh installation following all the instructions from scratch on two different machines already.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:17 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
ChrisPeicommented, Jun 30, 2021

I found the solution.

If you have already created the Visual Studio build environment manually Building Chromium for Windows

Next you can try this:

Check out your evn file at %USERPROFILE%\.electron_build_tools\configs\evm.xxxx.json

...
  "env": {
    "CHROMIUM_BUILDTOOLS_PATH": ".......",
    "GIT_CACHE_PATH": ".........",
    "DEPOT_TOOLS_WIN_TOOLCHAIN": 0 # <--  + Add this line!!!
  }
...
3reactions
jkleinsccommented, Jul 12, 2021

Build tools should now pull in the right toolchain. Please run e check-for-updates to get the latest build tools

Read more comments on GitHub >

github_iconTop Results From Across the Web

gclient runhooks fails on Windows - Google Groups
When we run gclient runhooks from an Administrator command window it syncs with the ... Windows toolchain out of date or doesn't exist,...
Read more >
docs/win_cross.md - chromium/src - Git at Google
______ running '/usr/bin/python src/build/vs_toolchain.py update --force' in <chromium dir>. Windows toolchain out of date or doesn't exist, updating (Pro).
Read more >
Error 403 when you access Windows Update - Microsoft Learn
Go to the Microsoft Download Center. · Click the Update symbol next to the update for your version of Windows. · Click Download...
Read more >
Using C++ and WSL in VS Code
In this tutorial, you will configure Visual Studio Code to use the GCC C++ compiler (g++) and GDB debugger on Ubuntu in the...
Read more >
Bug listing with status RESOLVED with resolution OBSOLETE ...
(was: =dev-java/jdbm-1.0 is available)" status:RESOLVED resolution:OBSOLETE severity:enhancement · Bug:107027 - "dev-vcs/cvsd init script for is not ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found