Repository navigation
Error when building on Windows with Python install dir having space in path #4840
Description
Activity
- addedwindowsIssues and PRs related to the Windows platform.Issues and PRs related to the Windows platform.buildIssues and PRs related to Node.js builds or CI infrastructure.Issues and PRs related to Node.js builds or CI infrastructure.
on Jan 24, 2016 cc @nodejs/platform-windows
It seems you have Python installed in
C:\Program Files. I guess this line needs quotes.@seishun Yeah. All my programs are installed in Program Files.
But it's also in the PATH
Could you try adding quotes in the line I linked? It should look like
'"<(python)"',.This one:
Line 528 in 3e2a2e6
'<(python)', @felixfbecker in your PATH, see this guide for setting up path variables.
Basically, it's looking for Python in
C:\ProgrambecauseProgram Filescontains a space. You need to quote that.This has not been a problem before since Python defaults to install in
C:\Python27.@benjamingr you don't need quotes in PATH, and according to his build output his Python installation is found just fine.
@benjamingr I know how to setup path, thanks :)
@seishun That fixed it. Should I do a PR?@felixfbecker I think so. But it makes me wonder why GYP isn't doing its job properly by escaping the path on its own.
@benjamingr I dislike programs that install to
C:\. It is the equivalent of installing Linux programs in the root path. You wouldnt install python to/python-27, would you? :DThis issue has come up a few times now. Can we possibly fix it by quoting that path somewhere?
@silverwind I opened #4841
- changed the title
[-]Error when building on Windows[/-][+]Error when building on Windows with Python install dir having space in path[/+]on Jan 24, 2016 @felixfbecker well,
Program Filesisn't much better IMO :D I was only addressing why this isn't broken for most users though, what you're asking for is legit.@benjamingr
Program Filesis where you install programs (for all users) on Windows... like/usr/localon Linux (I think).Closing this issue as it's a dupe of #4012.
This is the first time I tried to build node from source, when I try to run
vcbuildI get this log:See the line
"C:\Progam" not found, it seems like something fromC:\Program Filesis run but the path is not quoted. I looked at the bat I could not find what is causing this. I don't get any node.exe output. I am using Visual Studio 2015 Update 1 on Windows 10 64 bit.