discord / erlpack

High Performance Erlang Term Format Packer
MIT License
217 stars 64 forks source link

'node-gyp rebuild' has Problems with Python #16

Closed CutestNekoAqua closed 5 years ago

CutestNekoAqua commented 5 years ago

My Infos: Python: Newest(37) Npm and Node: (Should be the newest) C:\Users\xxx\Desktop\Bot>node-gyp rebuild gyp info it worked if it ends with ok gyp info using node-gyp@3.8.0 gyp info using node@8.12.0 | win32 | x64 gyp ERR! configure error gyp ERR! stack Error: Command failed: C:\Users\valen\AppData\Local\Programs\Python\Python37-32\python.exe -c import sys; print "%s.%s.%s" % sys.version_info[:3]; gyp ERR! stack File "<string>", line 1 gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3]; gyp ERR! stack ^ gyp ERR! stack SyntaxError: invalid syntax gyp ERR! stack gyp ERR! stack at ChildProcess.exithandler (child_process.js:276:12) gyp ERR! stack at emitTwo (events.js:126:13) gyp ERR! stack at ChildProcess.emit (events.js:214:7) gyp ERR! stack at maybeClose (internal/child_process.js:915:16) gyp ERR! stack at Socket.stream.socket.on (internal/child_process.js:336:11) gyp ERR! stack at emitOne (events.js:116:13) gyp ERR! stack at Socket.emit (events.js:211:7) gyp ERR! stack at Pipe._handle.close [as _onclose] (net.js:561:12) gyp ERR! System Windows_NT 10.0.17134 gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\valen\\AppData\\Roaming\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" gyp ERR! cwd C:\Users\valen\Desktop\Bot gyp ERR! node -v v8.12.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok

jhgg commented 5 years ago

Python3 is currently unsupported. Please use python 2 in order to run the build.