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

node-gyp configure -> fail on Windows 7 x64 #155

Closed
fperreault opened this issue Oct 25, 2012 · 9 comments
Closed

node-gyp configure -> fail on Windows 7 x64 #155

fperreault opened this issue Oct 25, 2012 · 9 comments

Comments

@fperreault
Copy link

I don't know why.
Can you help me.

C:\Users\fperreault\Desktop\hid>node-gyp configure
gyp info it worked if it ends with ok
gyp info using node-gyp@0.7.1
gyp info using node@0.8.12 | win32 | x64
gyp ERR! configure error
gyp ERR! stack Error: Command failed:   File "<string>", line 1
gyp ERR! stack     import platform; print platform.python_version();
gyp ERR! stack                                   ^
gyp ERR! stack SyntaxError: invalid syntax
gyp ERR! stack
gyp ERR! stack     at ChildProcess.exithandler (child_process.js:540:15)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:96:17)
gyp ERR! stack     at maybeClose (child_process.js:638:16)
gyp ERR! stack     at Process._handle.onexit (child_process.js:680:5)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "C:\\Users\\fperreault\\AppData\\Roaming\\npm\\node_modu
les\\node-gyp\\bin\\node-gyp.js" "configure"
gyp ERR! cwd C:\Users\fperreault\Desktop\hid
gyp ERR! node -v v0.8.12
gyp ERR! node-gyp -v v0.7.1
gyp ERR! not ok
@TooTallNate
Copy link
Contributor

What does python --version output?

@fperreault
Copy link
Author

"Python 3.2.2"

Weird, when I print "sys.version_info", I have this:
sys.version_info(major=2, minor=7, micro=3, releaselevel='final', serial=0)

I will reinstall all on 2.7.3
Thank

@TooTallNate
Copy link
Contributor

Ya, Python 3 and Python 2 are not compatible, however gyp requires Python 2.

@WarFox
Copy link

WarFox commented Oct 8, 2015

Python 2.7, not Python 2.6.

I can confirm node-gyp rebuild did not work on npm install java (https://github.com/joeferner/node-java) with python 2.6.6 for 'node 4.1.1`

@avnersch
Copy link

avnersch commented Nov 5, 2015

node-gyp rebuild does not work for me too on node-java.
I am using Python 2.7.6.

@jmusser73
Copy link

node-gyp rebuild is not working for node-java.
I am using Python 2.7.8

@WarFox
Copy link

WarFox commented Nov 11, 2015

have you checked you GCC version? It needs to be above 4.8, is what I remember.

@aravindtrue
Copy link

@WarFox Is there a fix for this issue? I'm using Python 2.7.15 and facing the same issue.

@WarFox
Copy link

WarFox commented Dec 22, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants