gclient sync stops on third_party/binutils/download.py returned non-zero exit status 1

1,957 views
Skip to first unread message

Yogesh Seralia

unread,
Aug 9, 2016, 5:08:42 AM8/9/16
to Chromium-dev
Hello All,

I am trying fresh checkout of chromium code on Ubuntu 14.04 with x64 arch. and getting stuck on :

________ running '/usr/bin/python src/third_party/binutils/download.py' in '/media/vcareall/C01E000F1E000160/Yogesh/chromium'
Downloading /media/vcareall/C01E000F1E000160/Yogesh/chromium/src/third_party/binutils/Linux_x64/binutils.tar.bz2
Traceback (most recent call last):
  File "src/third_party/binutils/download.py", line 130, in <module>
    sys.exit(main(sys.argv[1:]))
  File "src/third_party/binutils/download.py", line 117, in main
    return FetchAndExtract(arch)
  File "src/third_party/binutils/download.py", line 82, in FetchAndExtract
    '-s', sha1file])
  File "/usr/lib/python2.7/subprocess.py", line 535, in check_call
    retcode = call(*popenargs, **kwargs)
  File "/usr/lib/python2.7/subprocess.py", line 522, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory
Error: Command '/usr/bin/python src/third_party/binutils/download.py' returned non-zero exit status 1 in /media/vcareall/C01E000F1E000160/Yogesh/chromium


What could be the reason and how can be solved, please suggest me on this.

Thanks

Yogesh Seralia

Yogesh Seralia

unread,
Aug 9, 2016, 5:20:37 AM8/9/16
to Chromium-dev
In additoin to the post of chromiumuser631 have asked.
I have PATH set and started gclient with sudo also.

Torne (Richard Coles)

unread,
Aug 9, 2016, 6:19:19 AM8/9/16
to yogeshs...@gmail.com, Chromium-dev

Do not run gclient with sudo. No part of the process should be run as root.


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

Lutz

unread,
Feb 7, 2017, 5:32:11 AM2/7/17
to Chromium-dev, yogeshs...@gmail.com
Just had the same issue. I had
  export PATH="$PATH:~/depot_tools"
in my .bashrc, which worked fine in bash, but for some reason caused this error in download.py. After I changed it to 
  export PATH="$PATH:${HOME}/depot_tools"
it worked.

Rajesh Mahalingam

unread,
Oct 26, 2017, 1:52:04 PM10/26/17
to Chromium-dev, yogeshs...@gmail.com
This helped to complete the "gclient sync"
Message has been deleted
Message has been deleted
Message has been deleted

castle19...@gmail.com

unread,
Dec 6, 2017, 9:33:39 PM12/6/17
to Chromium-dev, yogeshs...@gmail.com, cooles...@gmail.com
I got this error because uses of anaconda python2.7, when i change to system python2.7, it worked.
Reply all
Reply to author
Forward
0 new messages