-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"No such file or directory" running fetch dart
#32702
Comments
If I try to run
|
I wondered if maybe |
@whesse Who would best be able to answer this question? |
It may be an issue with depot_tools or something else, but I couldn't find any answers online (lots of people have had similar issues with gclient and the answer vary from them being out of date (I only just cloned mine) to "just ignore it and build anyway"). FWIW, I had similar issues (same error in fact) when I previously did this and I think I just ignored them because I was only making fairly minor modifications and the analyzer code seemed to work; however I did have issues with things like the pre-commit checks when using Gerrit that may have been related so I was hoping to get things set up "properly" on my corp laptop. |
I edited the python script to output what it was trying to run and seems that it's dying on this:
Running that manually gives this:
So I got that to print what it's trying to run and I get:
Running that manually results in:
Make that print results in this:
Running that manually seems to run with no errors:
I'm not sure why that command seems to work for me but fails in the script... Here's the offending code: # Run "gsutil" through "vpython". We need to do this because on GCE instances,
# expectations are made about Python having access to "google-compute-engine"
# and "boto" packages that are not met with non-system Python (e.g., bundles).
cmd = [
'vpython',
'-vpython-spec', os.path.join(THIS_DIR, 'gsutil.vpython'),
'--',
gsutil_bin
] + disable_update + args
return subprocess.call(cmd, shell=IS_WINDOWS) I'll try and do a bit more digging... |
So, I fixed it! It turned out to be fairly simple - I'd used tildes |
DanTup, thanks for this thread and it helps me a lot. I changed ~ in my PATH. it can be resolved. |
Replace |
I'm setting up the SDK code on my corp MacBook following the instructions on the wiki and got this error:
Here's what I did:
(note I already had
~/Dev/Google/depot_tools
inPATH
from when I copied paths from my other machine).The folder mention exists and
download_from_google_storage
exists and is executable (I ran it at the end of the session included below to show that).At the end of this, I do have an
sdk
folder inside~/Dev/Google/dart-sdk
.Here's the full terminal session
The text was updated successfully, but these errors were encountered: