Closed PranjalGuptaSwaniti closed 4 years ago
gyp ERR! stack Error: Command failed: C:\Users\Pranjal Gupta\AppData\Local\Programs\Python\Python38\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack File "", line 1
gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3];
gyp ERR! stack ^
gyp ERR! stack SyntaxError: invalid syntax
This fragment is key. You're using Python 3.8 but python is complaining that the print
statement is invalid syntax. That code looks like Python 2.x-style code (with a print
statement instead of a print()
function).
Further down, I see this:
gyp ERR! node-gyp -v v3.8.0
And checking the README for node-gyp
at v.3.8.0
it says:
python (v2.7 recommended, v3.x.x is not supported)
But I noticed on the README for the latest release of node-gyp
:
Python v2.7, v3.5, v3.6, v3.7, or v3.8
So there are a couple of approaches here:
A python 3.x-compatible version of h3-node has been released as v3.6.5
Hi @dfellis , Why do we need Visual Studio now ?? I am getting this error now during installation of 3.6.5
gyp ERR! find VS gyp ERR! find VS msvs_version not set from command line or npm config gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt gyp ERR! find VS checking VS2017 (15.9.28307.586) found at: gyp ERR! find VS "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community" gyp ERR! find VS - found "Visual Studio C++ core features" gyp ERR! find VS - missing any VC++ toolset gyp ERR! find VS could not find a version of Visual Studio 2017 or newer to use gyp ERR! find VS looking for Visual Studio 2015 gyp ERR! find VS - not found gyp ERR! find VS not looking for VS2013 as it is only supported up to Node.js 8
Because it is detecting that you're running Windows and the vast majority of Windows users would compile with VS.
Can you paste the entire CLI output? And can you paste what running command -v make
returns from the cygwin CLI?
I also expect trouble from the upstream H3 cmake config when it gets to that point.
I am facing issue as mentioned below while installing the h3-node :