We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
SyntaxError: invalid syntax
Here's what I got:
error /srv/current/api2/node_modules/re2: Command failed. Exit code: 1 Command: node-gyp rebuild Arguments: Directory: /srv/current/api2/node_modules/re2 Output: gyp info it worked if it ends with ok gyp info using node-gyp@3.8.0 gyp info using node@8.15.1 | linux | x64 gyp ERR! configure error gyp ERR! stack Error: Command failed: /home/ubuntu/.nix-profile/bin/python -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:281: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 Process.ChildProcess._handle.onexit (internal/child_process.js:209:5) gyp ERR! System Linux 4.15.0-1063-aws
My Python version:
$ /home/ubuntu/.nix-profile/bin/python --version Python 3.7.0
Any idea how I could resolve this?
The text was updated successfully, but these errors were encountered:
I guess this is not a re2 issue, but something with gyp only supporting python 2.7 nodejs/node-gyp#324
Edit: it seems fixed in nodejs/node-gyp#1534, which landed in gyp v4 it seems https://github.com/nodejs/node-gyp/blob/master/CHANGELOG.md#v400-2019-04-24
Will try upgrading node-gyp, sorry for the noise!
Sorry, something went wrong.
Added to the docs.
FWIW upgrading gyp did not work, what did work for us was installing python 2.7 and passing:
PYTHON=<location to python27> npm
Updated the docs with this information. Thank you!
SetGroupDesc
No branches or pull requests
Here's what I got:
My Python version:
Any idea how I could resolve this?
The text was updated successfully, but these errors were encountered: