Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

stack error: command failed: import sys; print "%s.%s.%s" % sys.version_info[:3];

gyp ERR! stack Error: Command failed: ....python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3]

The layout service package which includes the robotjs npm package, depends on the version of python installed locally.  
The robotjs package is only required for the integration tests to run, however, it is not mandatory.

1. Verify the version of Python installed locally (by typing 'python --version' into a shell) matches the version required by robotjs.

2. Install the layout package using `npm install --ignore-scripts`

3.Follow the instructions latest instructions on how to downgrade/upgrade the Python version listed on the Python.org website.
 
PREVIOUS NEXT
Tagged: #stack #command #import #print
ADD COMMENT
Topic
Name
3+2 =