Fetch chromium source on Mac OSX

119 views
Skip to first unread message

Kunal Bajpai

unread,
Jul 30, 2014, 6:56:08 PM7/30/14
to chromi...@chromium.org
I was trying to fetch chromium source on my Mac. Followed the steps on the docs. And got stuck when I try to fetch. Here's the error:

bash-3.2$ ./fetch --nohooks chromium --nosvn=True 

Running: gclient config --spec 'solutions = [{u'"'"'managed'"'"': False, u'"'"'name'"'"': u'"'"'src'"'"', u'"'"'url'"'"': u'"'"'https://chromium.googlesource.com/chromium/src.git'"'"', u'"'"'custom_deps'"'"': {}, u'"'"'deps_file'"'"': u'"'"'.DEPS.git'"'"', u'"'"'safesync_url'"'"': u'"'"''"'"'}]'

Traceback (most recent call last):

  File "./fetch.py", line 302, in <module>

    sys.exit(main())

  File "./fetch.py", line 298, in main

    return run(options, spec, root)

  File "./fetch.py", line 292, in run

    return checkout.init()

  File "./fetch.py", line 113, in init

    self.run_gclient('config', '--spec', self.spec['gclient_spec'])

  File "./fetch.py", line 75, in run_gclient

    return self.run(cmd_prefix + cmd, **kwargs)

  File "./fetch.py", line 65, in run

    return subprocess.check_call(cmd, **kwargs)

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 535, in check_call

    retcode = call(*popenargs, **kwargs)

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 522, in call

    return Popen(*popenargs, **kwargs).wait()

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 709, in __init__

    errread, errwrite)

  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1326, in _execute_child

    raise child_exception

OSError: [Errno 2] No such file or directory


What could be the reason?

Nico Weber

unread,
Jul 30, 2014, 6:58:41 PM7/30/14
to kunal....@gmail.com, Chromium-dev
Do you have depot_tools in your path? It looks like it's not finding `gclient` when it's running `gclient sync` behind the scenes. (Arguably, fetch could look at gclient next to it, but there are probably other scripts that rely on depot_tools being on the 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

Kunal Bajpai

unread,
Jul 30, 2014, 7:04:30 PM7/30/14
to chromi...@chromium.org, kunal....@gmail.com
The depot_tools wasn't on the PATH correctly. I had set it to the path, and then moved it.

Thanks!
Reply all
Reply to author
Forward
0 new messages