I don't know if this is the correct place to post about depot_tools, but I've been having issues setting the Dart SDK up (I've have the same issues on three machines, a windows PC, a personal MacBook and a Google corp MacBook). When I fun something like
Syncing projects: 100% (84/84), done.
Traceback (most recent call last):
File "/Users/dantup/Dev/Google/depot_tools/gclient.py", line 3105, in <module>
sys.exit(main(sys.argv[1:]))
File "/Users/dantup/Dev/Google/depot_tools/gclient.py", line 3091, in main
return dispatcher.execute(OptionParser(), argv)
File "/Users/dantup/Dev/Google/depot_tools/subcommand.py", line 252, in execute
return command(parser, args[1:])
File "/Users/dantup/Dev/Google/depot_tools/gclient.py", line 2783, in CMDsync
ret = client.RunOnDeps('update', args)
File "/Users/dantup/Dev/Google/depot_tools/gclient.py", line 1691, in RunOnDeps
self.RunHooksRecursively(self._options, pm)
File "/Users/dantup/Dev/Google/depot_tools/gclient.py", line 1155, in RunHooksRecursively
hook.run(self.root.root_dir)
File "/Users/dantup/Dev/Google/depot_tools/gclient.py", line 229, in run
cmd, cwd=cwd, always=self._verbose)
File "/Users/dantup/Dev/Google/depot_tools/gclient_utils.py", line 314, in CheckCallAndFilterAndHeader
return CheckCallAndFilter(args, **kwargs)
File "/Users/dantup/Dev/Google/depot_tools/gclient_utils.py", line 525, in CheckCallAndFilter
**kwargs)
File "/Users/dantup/Dev/Google/depot_tools/subprocess2.py", line 262, in __init__
% (str(e), kwargs.get('cwd'), args[0]))
OSError: Execution failed with error: [Errno 2] No such file or directory.
Check that /Users/dantup/Dev/Google/dart-sdk or download_from_google_storage exist and have execution permission.
Traceback (most recent call last):
File "/Users/dantup/Dev/Google/depot_tools/fetch.py", line 306, in <module>
sys.exit(main())
File "/Users/dantup/Dev/Google/depot_tools/fetch.py", line 301, in main
return run(options, spec, root)
File "/Users/dantup/Dev/Google/depot_tools/fetch.py", line 295, in run
return checkout.init()
File "/Users/dantup/Dev/Google/depot_tools/fetch.py", line 137, in init
self.run_gclient(*sync_cmd)
File "/Users/dantup/Dev/Google/depot_tools/fetch.py", line 82, in run_gclient
return self.run(cmd_prefix + cmd, **kwargs)
File "/Users/dantup/Dev/Google/depot_tools/fetch.py", line 71, in run
subprocess.check_call(cmd, **kwargs)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '('/usr/bin/python', '/Users/dantup/Dev/Google/depot_tools/gclient.py', 'sync')' returned non-zero exit status 1
I executed the command it was calling manually and got the same issue, so I stepped down and ended getting to this command:
Traceback (most recent call last):
File "/Users/dantup/Dev/Google/depot_tools/gsutil.py", line 183, in <module>
sys.exit(main())
File "/Users/dantup/Dev/Google/depot_tools/gsutil.py", line 180, in main
clean=args.clean)
File "/Users/dantup/Dev/Google/depot_tools/gsutil.py", line 153, in run_gsutil
return subprocess.call(cmd, shell=IS_WINDOWS)
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 710, in __init__
errread, errwrite)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1335, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
So I'm a bit lost. vpython is on my path (as you can tell from the above command working), from `depot_tools`. I'm not sure why the gsutil.py wrapper is failing to run it or how I can debug (or why it's only affecting me). Any suggestions on how to debug would be appreciated (I'm not very familiar with Python!).