Error message after running $ gclient runhooks

487 views
Skip to first unread message

OA III

unread,
Jan 31, 2017, 5:50:43 PM1/31/17
to Chromium-dev
Hello,

I'm currently following the instructions on https://chromium.googlesource.com/chromium/src/+/master/docs/linux_build_instructions.md

Additional build dependencies were built successfully.

"No missing packages, and the packages are up to date.

Installing Chrome OS fonts.
Chrome OS fonts already up to date in /usr/local/share/fonts/chromeos.
Installing symbolic links for NaCl.
Installing locales.
Locales already up-to-date."

After I run $ gclient runhooks, I eventually get...

Downloading /home/name/Chromium/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 536, in check_call
    retcode = call(*popenargs, **kwargs)
  File "/usr/lib/python2.7/subprocess.py", line 523, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1343, 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 /home/name/Chromium/chromium


Please point me in the right direction!

OA3



Scott Graham

unread,
Jan 31, 2017, 5:55:18 PM1/31/17
to oalvare...@gmail.com, Chromium-dev
It's trying to run download_from_google_storage https://cs.chromium.org/chromium/src/third_party/binutils/download.py?rcl=2ed48364ede3c10466f4d854fe6684bef63e645a&l=78 . Did you add depot_tools to PATH?

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

OA III

unread,
Jan 31, 2017, 6:21:31 PM1/31/17
to Chromium-dev

This is in $PATH
~/Chromium/chromium/src$ echo $PATH
/home/name/bin:/home/name/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/depot_tools:~/Chromium/depot_tools

Christian Biesinger

unread,
Jan 31, 2017, 6:31:45 PM1/31/17
to oalvare...@gmail.com, Chromium-dev
~ doesn't work in $PATH like that, you need the real directory.

Christian

OA III

unread,
Jan 31, 2017, 6:53:39 PM1/31/17
to Chromium-dev, oalvare...@gmail.com
I replaced the tilde with the actual directory, and it fixed the problem!  Thank You!

Sidney San Martín

unread,
Feb 1, 2017, 11:51:28 AM2/1/17
to oalvare...@gmail.com, Chromium-dev
Nice! $HOME usually works, too.

Vishal Sharma

unread,
Feb 20, 2018, 3:20:17 PM2/20/18
to Chromium-dev, oalvare...@gmail.com
I have this in my bashrc file: export PATH=$HOME/depot_tools:$PATH but still I am facing this issue. Here's the error message when I ran gclient sync:

Downloading 1 files took 0.174523 second(s)
Downloading /home/vishal/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 "/home/vishal/miniconda3/envs/chromium/lib/python2.7/subprocess.py", line 186, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['download_from_google_storage', '--no_resume', '--no_auth', '--bucket', 'chromium-binutils', '-s', '/home/vishal/chromium/src/third_party/binutils/Linux_x64/binutils.tar.bz2.sha1']' returned non-zero exit status 1
Error: Command '/home/vishal/miniconda3/envs/chromium/bin/python2 src/third_party/binutils/download.py' returned non-zero exit status 1 in /home/vishal/chromium

Vishal Sharma

unread,
Feb 21, 2018, 1:37:09 PM2/21/18
to Chromium-dev
Removing anaconda from $PATH and using default python 2.7 solved the issue. Cheers :)


On Wednesday, February 1, 2017 at 4:20:43 AM UTC+5:30, OA III wrote:
Reply all
Reply to author
Forward
0 new messages