Symptom
Build fails with error logs same as/similar to these:
|
2025-02-13 10:46:22,362 INFO d.h.c.h.PrintOutputHandler [Thread-29] sterr: error /opt/.../js-storefront/directory/to/a/package/i.e/robotjs: Command failed. 2025-02-13 10:46:22,362 INFO d.h.c.h.PrintOutputHandler [Thread-29] sterr: Exit code: 1 2025-02-13 10:46:22,362 INFO d.h.c.h.PrintOutputHandler [Thread-29] sterr: Command: node-gyp-build 2025-02-13 10:46:22,362 INFO d.h.c.h.PrintOutputHandler [Thread-29] sterr: Arguments: 2025-02-13 10:46:22,362 INFO d.h.c.h.PrintOutputHandler [Thread-29] sterr: Directory: /opt/.../js-storefront/directory/to/a/package/i.e/robotjs 2025-02-13 10:46:22,362 INFO d.h.c.h.PrintOutputHandler [Thread-29] sterr: Output: 2025-02-13 10:46:22,362 INFO d.h.c.h.PrintOutputHandler [Thread-29] sterr: gyp ERR! find Python 2025-02-13 10:46:22,362 INFO d.h.c.h.PrintOutputHandler [Thread-29] sterr: gyp ERR! find Python Python is not set from command line or npm configuration 2025-02-13 10:46:22,362 INFO d.h.c.h.PrintOutputHandler [Thread-29] sterr: gyp ERR! find Python Python is not set from environment variable PYTHON 2025-02-13 10:46:22,362 INFO d.h.c.h.PrintOutputHandler [Thread-29] sterr: gyp ERR! find Python checking if "python3" can be used 2025-02-13 10:46:22,362 INFO d.h.c.h.PrintOutputHandler [Thread-29] sterr: gyp ERR! find Python - executable path is "" 2025-02-13 10:46:22,362 INFO d.h.c.h.PrintOutputHandler [Thread-29] sterr: gyp ERR! find Python - "" could not be run 2025-02-13 10:46:22,362 INFO d.h.c.h.PrintOutputHandler [Thread-29] sterr: gyp ERR! find Python checking if "python" can be used 2025-02-13 10:46:22,362 INFO d.h.c.h.PrintOutputHandler [Thread-29] sterr: gyp ERR! find Python - executable path is "" 2025-02-13 10:46:22,362 INFO d.h.c.h.PrintOutputHandler [Thread-29] sterr: gyp ERR! find Python - "" could not be run 2025-02-13 10:46:22,362 INFO d.h.c.h.PrintOutputHandler [Thread-29] sterr: gyp ERR! find Python 2025-02-13 10:46:22,362 INFO d.h.c.h.PrintOutputHandler [Thread-29] sterr: gyp ERR! find Python ********************************************************** 2025-02-13 10:46:22,362 INFO d.h.c.h.PrintOutputHandler [Thread-29] sterr: gyp ERR! find Python You need to install the latest version of Python. 2025-02-13 10:46:22,362 INFO d.h.c.h.PrintOutputHandler [Thread-29] sterr: gyp ERR! find Python Node-gyp should be able to find and use Python. If not, 2025-02-13 10:46:22,362 INFO d.h.c.h.PrintOutputHandler [Thread-29] sterr: gyp ERR! find Python you can try one of the following options: 2025-02-13 10:46:22,362 INFO d.h.c.h.PrintOutputHandler [Thread-29] sterr: gyp ERR! find Python - Use the switch --python="/path/to/pythonexecutable" 2025-02-13 10:46:22,362 INFO d.h.c.h.PrintOutputHandler [Thread-29] sterr: gyp ERR! find Python (accepted by both node-gyp and npm) 2025-02-13 10:46:22,362 INFO d.h.c.h.PrintOutputHandler [Thread-29] sterr: gyp ERR! find Python - Set the environment variable PYTHON 2025-02-13 10:46:22,362 INFO d.h.c.h.PrintOutputHandler [Thread-29] sterr: gyp ERR! find Python - Set the npm configuration variable python: 2025-02-13 10:46:22,362 INFO d.h.c.h.PrintOutputHandler [Thread-29] sterr: gyp ERR! find Python npm config set python "/path/to/pythonexecutable" 2025-02-13 10:46:22,362 INFO d.h.c.h.PrintOutputHandler [Thread-29] sterr: gyp ERR! find Python For more information consult the documentation at: 2025-02-13 10:46:22,362 INFO d.h.c.h.PrintOutputHandler [Thread-29] sterr: gyp ERR! find Python https://github.com/nodejs/node-gyp#installation 2025-02-13 10:46:22,362 INFO d.h.c.h.PrintOutputHandler [Thread-29] sterr: gyp ERR! find Python ********************************************************** 2025-02-13 10:46:22,362 INFO d.h.c.h.PrintOutputHandler [Thread-29] sterr: gyp ERR! find Python 2025-02-13 10:46:22,362 INFO d.h.c.h.PrintOutputHandler [Thread-29] sterr: gyp ERR! configure error 2025-02-13 10:46:22,362 INFO d.h.c.h.PrintOutputHandler [Thread-29] sterr: gyp ERR! stack Error: Could not find any Python installation to use |
Read more...
Environment
SAP Commerce Cloud 2211 with custom extensions.
Product
Keywords
python build fail, python error, gyp error, node-gyp error, python ccv2, python commerce cloud , KBA , CEC-SCC-CLA-BUI , Build Process , Problem
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.
SAP Knowledge Base Article - Preview