download_from_google_storage

1,836 views
Skip to first unread message

Matthew Heaney

unread,
Oct 29, 2013, 8:14:01 PM10/29/13
to chromium-dev
gclient sync is failing on windows because it cannot find

download_from_google_storage

but this looks like a bug in the script, as it should be something like:

python c:\bin\depot_tools\download_from_google_storage ...

Anyone know what's going on?

(If I have the wrong list to report this problem, please let me know.)


Nico Weber

unread,
Oct 29, 2013, 8:17:20 PM10/29/13
to matthew...@google.com, chromium-dev
There's a download_from_google_storage .bat file that should make this work I believe. Is your depot_tools up to date? Maybe today's thread "[chromium-dev] Having gclient sync errors about "platform" flag?" is related?


--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

Haojian Wu

unread,
Oct 31, 2013, 4:05:38 AM10/31/13
to tha...@chromium.org, matthew...@google.com, chromium-dev
I also faced the same problem while running "gclient sync" on windows 7, the output error messages are like: 


________ running 'download_from_google_storage --platform=win32 --directory --bu
cket chromium-gn src/tools/gn/bin/win' in 'c:\workspace\chromium-up
stream'
'c:\workspace\depot_tools\python' is not recognized as an internal
or external command,
operable program or batch file.
Error: Command download_from_google_storage --platform=win32 --directory --bucke
t chromium-gn src/tools/gn/bin/win returned non-zero exit status 1 in c:\workspace\chromium-upstream

But I can run the same command "download_from_google_storage" on /depot_tools/ directory successfully.




To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.

dongseo...@intel.com

unread,
Nov 14, 2013, 11:37:11 AM11/14/13
to chromi...@chromium.org, tha...@chromium.org, matthew...@google.com
Linux has the same issue.

________ running 'download_from_google_storage --platform=linux* --directory --bucket chromium-gn src/tools/gn/bin/linux' in '/home/dshwang/workspace/chromium/blink'
Failure: [Errno 110] Connection timed out.

Error: Command download_from_google_storage --platform=linux* --directory --bucket chromium-gn src/tools/gn/bin/linux returned non-zero exit status 1 in /home/dshwang/wo
rkspace/chromium/blink
Hook 'download_from_google_storage '--platform=linux*' --directory --bucket chromium-gn src/tools/gn/bin/linux' took 950.30 secs

Nico Weber

unread,
Nov 14, 2013, 12:33:36 PM11/14/13
to dongseo...@intel.com, matthew...@google.com, Chromium-dev

I saw someone have this problem yesterday., and in that case the problem was that their PATH to depot_tools included a literal ~ instead of an expanded $HOME (which confuses `which` and other tools). What's the output of `echo $PATH` on your system?

Raphael Kubo da Costa

unread,
Nov 14, 2013, 1:17:31 PM11/14/13
to chromi...@chromium.org
dongseo...@intel.com writes:

> Linux has the same issue.
>
> ________ running 'download_from_google_storage --platform=linux*
> --directory --bucket chromium-gn src/tools/gn/bin/linux' in
> '/home/dshwang/workspace/chromium/blink'
> Failure: [Errno 110] Connection timed out.
>
> Error: Command download_from_google_storage --platform=linux* --directory
> --bucket chromium-gn src/tools/gn/bin/linux returned non-zero exit status 1
> in /home/dshwang/wo
> rkspace/chromium/blink
> Hook 'download_from_google_storage '--platform=linux*' --directory --bucket
> chromium-gn src/tools/gn/bin/linux' took 950.30 secs

My guess at least for Intel folks is that there are proxy issues
involved if the commands just time out; I haven't checked depot_tools
yet to confirm if the {http,https,socks}_proxy environment variables are
respected, though.

Scott Zawalski

unread,
Nov 14, 2013, 2:55:55 PM11/14/13
to chromi...@chromium.org

dongseo...@intel.com

unread,
Nov 15, 2013, 7:39:32 AM11/15/13
to chromi...@chromium.org
Thank Nico, Raphael and Scott.

Especially Scott's link is very helpful to me.
I follow https://code.google.com/p/chromium/issues/detail?id=318478#c4 and then this issue is resolved in my machine.

To setup proxy for download_from_google_storage, we need to amend .boto file. unfortunately, download_from_google_storage don't care of {http,https,socks}_proxy environment variables.

- DS
Reply all
Reply to author
Forward
0 new messages