build-tools: Windows toolchain out of date or doesn't exist, updating (Pro) error on e sync
________ 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.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 1
- Comments: 17 (4 by maintainers)
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.jsonBuild tools should now pull in the right toolchain. Please run
e check-for-updatesto get the latest build tools@ChrisPei That’s not the right solution here, we do explicitly want the toolchain. Electron just hasn’t published the most recent one yet, we’re working on it. Hopefully we’ll have this updated tomorrow
I am having the same issue:
OS Name: Microsoft Windows 10 Pro Version: 10.0.19042 Build 19042