Closed Melonheadx closed 6 years ago
Are you using Node v10?
No I am using 8.11.3 LTS. just installed it today to use Botpress
Hm, Nove v8 should be fine.
going to retry the install again so I can send you some better errors
node-pre-gyp install --fallback-to-build
node-pre-gyp ERR! Tried to download(undefined): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.13/node-v57-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for sqlite3@3.1.13 and node@8.11.3 (node-v57 ABI) (falling back to source compile with node-gyp)
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack at PythonFinder.failNoPython (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:483:19)
gyp ERR! stack at PythonFinder.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:508:16)
gyp ERR! stack at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\polyfills.js:284:29
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:152:21)
gyp ERR! System Windows_NT 10.0.16299
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\\Users\\MYNAME\\AppData\\Roaming\\npm\\node_modules\\botpress\\node_modules\\sqlite3\\lib\\binding\\node-v57-win32-x64\\node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=C:\\Users\\MYNAME\\AppData\\Roaming\\npm\\node_modules\\botpress\\node_modules\\sqlite3\\lib\\binding\\node-v57-win32-x64"
gyp ERR! cwd C:\Users\MYNAME\AppData\Roaming\npm\node_modules\botpress\node_modules\sqlite3
gyp ERR! node -v v8.11.3
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\MYNAME\AppData\Roaming\npm\node_modules\botpress\node_modules\sqlite3\lib\binding\node-v57-win32-x64\node_sqlite3.node --module_name=node_sqlite3 --module_path=C:\Users\MYNAME\AppData\Roaming\npm\node_modules\botpress\node_modules\sqlite3\lib\binding\node-v57-win32-x64' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:\Users\MYNAME\AppData\Roaming\npm\node_modules\botpress\node_modules\sqlite3\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:126:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:214:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:925:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
node-pre-gyp ERR! System Windows_NT 10.0.16299
node-pre-gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\MYNAME\\AppData\\Roaming\\npm\\node_modules\\botpress\\node_modules\\sqlite3\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd C:\Users\MYNAME\AppData\Roaming\npm\node_modules\botpress\node_modules\sqlite3
node-pre-gyp ERR! node -v v8.11.3
node-pre-gyp ERR! node-pre-gyp -v v0.6.38
node-pre-gyp ERR! not ok
Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js configure --fallback-to-build --module=C:\Users\MYNAME\AppData\Roaming\npm\node_modules\botpress\node_modules\sqlite3\lib\binding\node-v57-win32-x64\node_sqlite3.node --module_name=node_sqlite3 --module_path=C:\Users\MYNAME\AppData\Roaming\npm\node_modules\botpress\node_modules\sqlite3\lib\binding\node-v57-win32-x64' (1)
[ ......] | install: info lifecycle sqlite3@3.1.13~install: Failed to exec install script
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sqlite3@3.1.13 install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sqlite3@3.1.13 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
I think this is the cause of the error:
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
Python is needed for node-gyp which is needed for compiling native dependencies including SQLite.
Ok, I will try to install python on Monday when I am back at work, I don't believe python is mentioned on your starter guide on the website. If it's not might be a good idea to add something about it for the future.
Yes definitely. I think the thing is it's an indirect dependency that's present on all *nix systems. Please let us know and we'll update the docs if it's the real source of the issue.
I am working on a windows system, I have installed python from https://www.python.org/downloads/release/python-365/ using the Windows x86-64 web-based installer. I still experience the same issue and it is repeated on a colleagues computer as well. I have managed to install and use botpress on my home computer, however I did encounter the same error trying to install botpress-messenger, installing python with Windows x86-64 executable installer did not change the error message. The python finder does not seem to be able to locate python on our systems.
Hi, i met this issues too. Everything is analogically.
@Melonheadx , was your issue resolved?
@epaminond Not yet no, I changed to a new directory and was now able to execute npm install -g botpress and botpress init however when I try npm install i experience the same python issue as above.
2018-06-25T11_13_32_697Z-debug.log
I have attached a log that was generated after the npm install failed.
"npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! grpc@1.7.3 install: node-pre-gyp install --fallback-to-build --library=static_library
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the grpc@1.7.3 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:"
@Melonheadx @DemjanUA please run npm install node-pre-gyp -g
and after that try to install again. ty
@dmytropanontko I ran npm install node-pre-gyp -g
and it worked fine, installet 66 packages. However npm install still experience the exact same issue,
@Melonheadx , could you try downgrading to node 6.x?
@epaminond Ok, I downgraded to node 6.9.5, and then ran
cd C:\Users\SETINDBERGG\Chatbot_6
npm install -g botpress
botpress init
npm install node-pre-gyp -g
npm install
failed with the same error at the end of npm install
installation
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable. gyp ERR! stack at failNoPython (C:\Users\SETINDBERGG\node-6\node-v6.9.5-win-x86\node-v6.9.5-win-x86\node_modules\npm\node_modules\node-gyp\lib\configure.js:449:14) gyp ERR! stack at C:\Users\SETINDBERGG\node-6\node-v6.9.5-win-x86\node-v6.9.5-win-x86\node_modules\npm\node_modules\node-gyp\lib\configure.js:404:11 gyp ERR! stack at C:\Users\SETINDBERGG\node-6\node-v6.9.5-win-x86\node-v6.9.5-win-x86\node_modules\npm\node_modules\graceful-fs\polyfills.js:264:29 gyp ERR! stack at FSReqWrap.oncomplete (fs.js:123:15) gyp ERR! System Windows_NT 10.0.16299 gyp ERR! command "C:\\Users\\SETINDBERGG\\node-6\\node-v6.9.5-win-x86\\node-v6.9.5-win-x86\\node.exe" "C:\\Users\\SETINDBERGG\\node-6\\node-v6.9.5-win-x86\\node-v6.9.5-win-x86\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "--fallback-to-build" "--library=static_library" "--module=C:\\Users\\SETINDBERGG\\Chatbot_6\\node_modules\\grpc\\src\\node\\extension_binary\\node-v48-win32-ia32-unknown\\grpc_node.node" "--module_name=grpc_node" "--module_path=C:\\Users\\SETINDBERGG\\Chatbot_6\\node_modules\\grpc\\src\\node\\extension_binary\\node-v48-win32-ia32-unknown" gyp ERR! cwd C:\Users\SETINDBERGG\Chatbot_6\node_modules\grpc gyp ERR! node -v v6.9.5 gyp ERR! node-gyp -v v3.4.0 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute 'node-gyp.cmd configure --fallback-to-build --library=static_library --module=C:\Users\SETINDBERGG\Chatbot_6\node_modules\grpc\src\node\extension_binary\node-v48-win32-ia32-unknown\grpc_node.node --module_name=grpc_node --module_path=C:\Users\SETINDBERGG\Chatbot_6\node_modules\grpc\src\node\extension_binary\node-v48-win32-ia32-unknown' (1) node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:\Users\SETINDBERGG\Chatbot_6\node_modules\grpc\node_modules\node-pre-gyp\lib\util\compile.js:83:29) node-pre-gyp ERR! stack at emitTwo (events.js:106:13) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:191:7) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:877:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5) node-pre-gyp ERR! System Windows_NT 10.0.16299 node-pre-gyp ERR! command "C:\\Users\\SETINDBERGG\\node-6\\node-v6.9.5-win-x86\\node-v6.9.5-win-x86\\node.exe" "C:\\Users\\SETINDBERGG\\Chatbot_6\\node_modules\\grpc\\node_modules\\node-pre-gyp\\bin\\node-pre-gyp" "install" "--fallback-to-build" "--library=static_library" node-pre-gyp ERR! cwd C:\Users\SETINDBERGG\Chatbot_6\node_modules\grpc node-pre-gyp ERR! node -v v6.9.5 node-pre-gyp ERR! node-pre-gyp -v v0.6.39 node-pre-gyp ERR! not ok
The same python and node-gyp.cmd error was displayed when running npm install -g botpress
however it was still able to complete the installation and perform botpress init
while npm install
is not able to finish.
@Melonheadx Did you set PYTHON
variables? If no, see this
@Melonheadx , any updates on this issue?
I had this issue and installing Python 2.7 and setting the PYTHON environmental variable make it work.
@epaminond PYTHONPATH have seemed to fix the python issue, another error is still creating problems for the installation, however I've been able to circumvent the problem by deploying to heroku from my personal Laptop
Make sure these checkboxes are checked before raising an issue, thank you!
6.10
Please also fill in these fields:
Botpress version:
<<VERSION HERE>>
Channels: <
>
My issue: I try to run npm install -g botpress and it installs for a while however it ends with a bunch of errors and "info lifecycle sqlite3@3.1.13~install: Failed to exec install script"