on 06-04-2020 3:10 PM
Hi,
I am getting an error Python not found while building node.js Module.
I want to use "memwatch" module in my Node.js application but as i mentioned it in package.json build is throwing an error.
Error:-
4:49:08 PM (Executor) gyp ERR! stack Error: Could not find any Python installation to use
4:49:08 PM (Executor) gyp ERR! stack at PythonFinder.fail (/usr/local/lib/node10/node-v10.19.0-linux-x64/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:307:47)
4:49:08 PM (Executor) gyp ERR! stack at PythonFinder.runChecks (/usr/local/lib/node10/node-v10.19.0-linux-x64/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:136:21)
4:49:08 PM (Executor) gyp ERR! stack at PythonFinder.<anonymous> (/usr/local/lib/node10/node-v10.19.0-linux-x64/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:179:16)
4:49:08 PM (Executor) gyp ERR! stack at PythonFinder.execFileCallback (/usr/local/lib/node10/node-v10.19.0-linux-x64/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:271:16)
4:49:08 PM (Executor) gyp ERR! stack at exithandler (child_process.js:301:5)
4:49:08 PM (Executor) gyp ERR! stack at ChildProcess.errorhandler (child_process.js:313:5)
4:49:08 PM (Executor) gyp ERR! stack at ChildProcess.emit (events.js:198:13)
4:49:08 PM (Executor) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:246:12)
4:49:08 PM (Executor) gyp ERR! stack at onErrorNT (internal/child_process.js:415:16)
4:49:08 PM (Executor) gyp ERR! stack at process._tickCallback (internal/process/next_tick.js:63:19)
4:49:08 PM (Executor) gyp ERR! System Linux 4.19.86-coreos
4:49:08 PM (Executor) gyp ERR! command "/usr/local/lib/node10/node-v10.19.0-linux-x64/bin/node" "/usr/local/lib/node10/node-v10.19.0-linux-x64/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
4:49:08 PM (Executor) gyp ERR! cwd /projects/peps-hana-xsa-component/jobs/node_modules/memwatch-next
4:49:08 PM (Executor) gyp ERR! node -v v10.19.0
4:49:08 PM (Executor) gyp ERR! node-gyp -v v5.0.5
4:49:08 PM (Executor) gyp ERR! not ok
4:49:08 PM (Executor) npm WARN jobs@1.0.0 No repository field.
4:49:08 PM (Executor) npm WARN jobs@1.0.0 No license field.
4:49:08 PM (Executor)
4:49:08 PM (Executor) npm ERR! code ELIFECYCLE
4:49:08 PM (Executor) npm ERR! errno 1
4:49:08 PM (Executor) npm ERR! memwatch-next@0.3.0 install: `node-gyp rebuild`
4:49:08 PM (Executor) npm ERR! Exit status 1
4:49:08 PM (Executor) npm ERR!
4:49:08 PM (Executor) npm ERR! Failed at the memwatch-next@0.3.0 install script.
Can anyone help me to setup python for Node.js builder in WEBIDE.
Thanks,
Rajdeep Bhuva
Hi rajdeepbhuva,
WebIDE won't have that feature so you can't acctually use it. Please try on Business Application Studio with the latest version of the workspace (check that NodeJS is v12).
Best regards,
Ivan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
11 | |
10 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.