Skip to content
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

e init fails on Windows when there are spaces in a directory name #133

Closed
strega-nil opened this issue Mar 31, 2020 · 9 comments
Closed
Labels
🪲 bug Something isn't working

Comments

@strega-nil
Copy link

strega-nil commented Mar 31, 2020

The full text of the error is here: https://gist.github.com/strega-nil/32b1eee85f5c24e8f648e41ce7552ecb

The important part looks like it's here:

gclient_utils(833) enqueue:enqueued(src/electron)
gclient(565) requirements:Dependency(src/electron).requirements = ()
gclient(565) requirements:Dependency(src/electron).requirements = ()
gclient_utils(1011) __init__:_Worker(src/electron) reqs:()
gclient_utils(1020) run:_Worker.run(src/electron)
gclient(916) run:Dependency(src/electron).run()
subprocess2(154) __init__:git --version;  cwd=.
gclient_utils(1036) run:Caught exception in thread src/electron
gclient_utils(1037) run:(<class 'FileNotFoundError'>, FileNotFoundError(2, 'The system cannot find the file specified', None, 2, None), <traceback object at 0x000001D5F174A700>)
gclient_utils(1040) run:_Worker.run(src/electron) done
@codebytere
Copy link
Member

If you open cmd/powershell and type where python - does the depot_tools python.bat come ahead of any copies of python.exe?

@strega-nil
Copy link
Author

No, it does not; there is no place I could see that would set depot_tools's python.bat on the path at all.

@codebytere
Copy link
Member

Try running gclient just by itself first? We follow this for the most part: https://chromium.googlesource.com/chromium/src/+/master/docs/windows_build_instructions.md#Setting-up-Windows

And i didn't have this happen on my local win config so perhaps it's a strange system thing, unclear 🤔

@strega-nil
Copy link
Author

Ah, looks like it might be an issue with spaces in my electron build-tools directory...

@strega-nil
Copy link
Author

strega-nil commented Mar 31, 2020

eeyup, apparently gclient doesn't support being run in a directory tree that contains spaces, now that I've moved it to C:\src\build_tools, it's totally fine...

@strega-nil strega-nil changed the title e init fails on Windows with a FileNotFoundError in gclient e init fails on Windows when there are spaces in a directory name Mar 31, 2020
@codebytere
Copy link
Member

@strega-nil did it sync successfully then?

@strega-nil
Copy link
Author

@codebytere it didn't, see #134; it just got further.

@ckerr
Copy link
Member

ckerr commented Sep 11, 2020

@strega-nil does #178 fix this for you?

@codebytere
Copy link
Member

Closing due to above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪲 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants