Errors while setting up the flutter engine on Windows

105 views
Skip to first unread message

Benjamin Strauß

unread,
Jun 17, 2018, 10:14:19 AM6/17/18
to Flutter Dev
I'm using this guide to setup the flutter engine on windows:


After executing the command "gclient sync" I get prompted to enter a username for 'https://chrome-internal.googlesource.com'.
After entering an empty string I get the following error:

Syncing projects: 100% (84/84), done.
Username for 'https://chrome-internal.googlesource.com':


________ running
'C:\workspace\depot_tools\win_tools-2_7_6_bin\python\bin\python.exe src/build/vs_toolchain.py update' in 'C:\workspace\flutter\engine'






Please follow the instructions at https://www.chromium.org/developers/how-tos/build-instructions-windows




Traceback (most recent call last):
 
File "src/build/vs_toolchain.py", line 457, in <module>
    sys
.exit(main())
 
File "src/build/vs_toolchain.py", line 453, in main
   
return commands[sys.argv[1]](*sys.argv[2:])
 
File "src/build/vs_toolchain.py", line 400, in Update
    subprocess
.check_call(get_toolchain_args)
 
File "C:\workspace\depot_tools\win_tools-2_7_6_bin\python\bin\lib\subprocess.py", line 540, in check_call
   
raise CalledProcessError(retcode, cmd)
subprocess
.CalledProcessError: Command '['C:\\workspace\\depot_tools\\win_tools-2_7_6_bin\\python\\bin\\python.exe', 'C:\\workspace\\depot_tools\\win_toolchain\\get_toolchain_if_necessary.py', '--output-json', 'C:\\workspace\\flutter\\engine\\src\\build\\win_toolchain.json', '9bc7ccbf9f4bd50d4a3bd185e8ca94ff1618de0b']' returned non-zero exit status 1
Error: Command 'C:\\workspace\\depot_tools\\win_tools-2_7_6_bin\\python\\bin\\python.exe src/build/vs_toolchain.py update' returned non-zero exit status 1 in C:\workspace\flutter\engine
Hook ''C:\workspace\depot_tools\win_tools-2_7_6_bin\python\bin\python.exe' src/build/vs_toolchain.py update' took 1051.50 secs

Can I not set up the engine without some login data?

Stuart Morgan

unread,
Jun 17, 2018, 9:46:53 PM6/17/18
to benm...@gmail.com, flutt...@googlegroups.com
From the chromium-dev page linked in the output you've included, there's a note in the depot_tools setup section that says:

"Also, add a DEPOT_TOOLS_WIN_TOOLCHAIN system variable in the same way, and set it to 0. This tells depot_tools to use your locally installed version of Visual Studio (by default, depot_tools will try to use a google-internal version)."

Does that fix this error? It definitely sounds like something that could cause an attempt to download from an internal repository if it's not set. If that is it, it's probably something that should be added to the Windows section of the http://commondatastorage.googleapis.com/chrome-infra-docs/flat/depot_tools/docs/html/depot_tools_tutorial.html#_setting_up page that the Flutter engine build instructions link to.

-Stuart

--
You received this message because you are subscribed to the Google Groups "Flutter Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Benjamin Strauß

unread,
Jun 18, 2018, 4:49:06 PM6/18/18
to Flutter Dev
Yes, that solved it. Thx
Reply all
Reply to author
Forward
0 new messages