Welk i tried multiple variants of solving this but unfortunatly none of them worked… I’ll Just wait for the installeren to be fixed.
-
(Solved) Error installing sqlite3
-
@Stokstaart Unfortunately, the installation of version 3.1.3 no longer works for me now. I have found here (https://forum.pimatic.org/topic/91/solved-can-t-start-pimatic-error-during-first-start-sqlite3-installation/3) a solution with the version 2.2.7. This version can be installed. However, pimatic starts, but I am not sure if it works flawlessly with this old version of sqlite.
I think it’s better if the developers take care of the problem. -
Strange thing! What about installing v0.9? We will come up with instructions quite soon.
pimatic v0.9 has been released!
Support Pimatic and get some free stickers
Like us on Facebookmake it so !
-
When i start up Pimatic i still get the error below:
tried al of the above but i still get the error ELIFECYLCE
I am working on Bananapi with Bananian Jessiepimatic@bananapi:~/pimatic-app$ sudo node_modules/pimatic/pimatic.js 15:33:16.532 2016-06-05 Sunday 15:33:28.314 [pimatic] Starting pimatic version 0.8.107 15:33:29.555 [pimatic] Installing database package sqlite3, this can take some minutes 15:33:33.018 [pimatic, npm] http GET https://registry.npmjs.org/sqlite3 15:33:35.938 [pimatic, npm] http GET https://registry.npmjs.org/nan 15:33:36.906 [pimatic, npm] > sqlite3@3.1.4 install /home/pimatic/pimatic-app/node_modules/sqlite3 15:33:36.912 [pimatic, npm] > node-pre-gyp install --fallback-to-build 15:33:37.354 [pimatic, npm] module.js:340 15:33:37.360 [pimatic, npm] throw err; 15:33:37.365 [pimatic, npm] ^ 15:33:37.377 [pimatic, npm] Error: Cannot find module 'nopt' 15:33:37.390 [pimatic, npm] at Function.Module._resolveFilename (module.js:338:15) 15:33:37.395 [pimatic, npm] at Function.Module._load (module.js:280:25) 15:33:37.399 [pimatic, npm] at Module.require (module.js:364:17) 15:33:37.404 [pimatic, npm] at require (module.js:380:17) 15:33:37.411 [pimatic, npm] at Object.<anonymous> (/home/pimatic/pimatic-app/node_modules/sqlite3/node_modules/node-pre-gyp/lib/node-pre-gyp.js:14:12) 15:33:37.415 [pimatic, npm] at Module._compile (module.js:456:26) 15:33:37.420 [pimatic, npm] at Object.Module._extensions..js (module.js:474:10) 15:33:37.425 [pimatic, npm] at Module.load (module.js:356:32) 15:33:37.430 [pimatic, npm] at Function.Module._load (module.js:312:12) 15:33:37.437 [pimatic, npm] at Module.require (module.js:364:17) 15:33:37.491 [pimatic, npm] ERR! sqlite3@3.1.4 install: `node-pre-gyp install --fallback-to-build` 15:33:37.497 [pimatic, npm] ERR! Exit status 8 15:33:37.504 [pimatic, npm] ERR! 15:33:37.508 [pimatic, npm] ERR! Failed at the sqlite3@3.1.4 install script. 15:33:37.513 [pimatic, npm] ERR! This is most likely a problem with the sqlite3 package, 15:33:37.520 [pimatic, npm] ERR! not with npm itself. 15:33:37.527 [pimatic, npm] ERR! Tell the author that this fails on your system: 15:33:37.532 [pimatic, npm] ERR! node-pre-gyp install --fallback-to-build 15:33:37.537 [pimatic, npm] ERR! You can get their info via: 15:33:37.542 [pimatic, npm] ERR! npm owner ls sqlite3 15:33:37.548 [pimatic, npm] ERR! There is likely additional logging output above. 15:33:37.553 [pimatic, npm] ERR! System Linux 3.4.111-bananian 15:33:37.558 [pimatic, npm] ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "sqlite3" 15:33:37.564 [pimatic, npm] ERR! cwd /home/pimatic/pimatic-app 15:33:37.570 [pimatic, npm] ERR! node -v v0.10.24 15:33:37.580 [pimatic, npm] ERR! npm -v 1.3.21 15:33:37.588 [pimatic, npm] ERR! code ELIFECYCLE 15:33:37.597 [pimatic, npm] ERR! 15:33:37.603 [pimatic, npm] ERR! Additional logging details can be found in: 15:33:37.609 [pimatic, npm] ERR! /home/pimatic/pimatic-app/npm-debug.log 15:33:37.612 [pimatic, npm] ERR! not ok code 0 15:33:37.664 [pimatic] Startup error: Error: Error running "npm install sqlite3" 15:33:37.664 [pimatic]> at ChildProcess.<anonymous> (/home/pimatic/pimatic-app/node_modules/pimatic/lib/plugins.coffee:327:24) 15:33:37.664 [pimatic]> at ChildProcess.EventEmitter.emit (events.js:98:17) 15:33:37.664 [pimatic]> at maybeClose (child_process.js:735:16) 15:33:37.664 [pimatic]> at Socket.<anonymous> (child_process.js:948:11) 15:33:37.664 [pimatic]> at Socket.EventEmitter.emit (events.js:95:17) 15:33:37.664 [pimatic]> at Pipe.close (net.js:466:12) 15:33:37.669 [pimatic] exiting... pimatic@bananapi:~/pimatic-app$
-
in the first post there is a possible solution
sudo npm install nopt sudo npm install npmlog sudo npm install semver sudo npm install rimraf sudo npm install sqlite3 --unsafe-perm
pimatic v0.9 has been released!
Support Pimatic and get some free stickers
Like us on Facebookmake it so !
-
Only
sudo npm install sqlite3 --unsafe-perm
worked fine for me yesterday.pimatic-google-calendar | pimatic-wmi | pimatic-snmp | pimatic-wakeonlan |
Like my work? Then consider a donation
Follow me: www.thorstenreichelt.de -
Seems to be a problem with the latest sqlite version. This should work:
sudo npm install sqlite3@3.1.3 --unsafe-perm
-
See also https://github.com/mapbox/node-sqlite3/issues/655 and https://github.com/mapbox/node-pre-gyp/issues/67
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
@sweetpi okay, let’s try, should this command be given in a special folder?
like
cd /home/pi/pimatic-app/node_modules
or can this command be given everywhere?? (sorry, noob at this…) -
cd /home/pi/pimatic-app/
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
@mwittig said in (Solved) Error installing sqlite3:
cd /home/pi/pimatic-app/
Thanks!!
Installing as we speak, maybe you would like to correct the folder for future reference
/edit by leader21 : doneEdit: Whoop up & Running! going for config now! Thanks for all the help!
-
@leader21 Well, as you say it is a possible solution, unfortunately for me it didn’t work. Get the same errors as I have already displayed.
-
@a4tje
did you also try sweetpi’s possible solution from above ?sudo npm install sqlite3@3.1.3 --unsafe-perm
pimatic v0.9 has been released!
Support Pimatic and get some free stickers
Like us on Facebookmake it so !
-
Although quite an old topic.
seems like the problem is still there, is there coming a permanent solution for this ? -
@passie said in (Solved) Error installing sqlite3:
seems like the problem is still there,
No, I think it has been fixed as part of pimatic@0.9.37.
Please provide a detailed report if it does not work for you. Thanks!"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
@mwittig said in (Solved) Error installing sqlite3:
@passie said in (Solved) Error installing sqlite3:
seems like the problem is still there,
No, I think it has been fixed as part of pimatic@0.9.37.
Please provide a detailed report if it does not work for you. Thanks!My bad, not sure what happend the first run while downloading sqlite but seems to work with a clean install now.
09:15:53.751 [pimatic, ppm] info: node-pre-gyp ERR! Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.8/node-v46-linux-arm.tar.gz 09:15:53.756 [pimatic, ppm] info: node-pre-gyp ERR! Pre-built binaries not found for sqlite3@3.1.8 and node@4.6.2 (node-v46 ABI) (falling back to source compile with node-gyp) 09:16:04.349 [pimatic, ppm] info: make: Entering directory '/home/pi/pimatic-app/node_modules/sqlite3/build' 09:16:04.361 [pimatic, ppm] info: ACTION deps_sqlite3_gyp_action_before_build_target_unpack_sqlite_dep Release/obj/gen/sqlite-autoconf-3150000/sqlite3.c
My apologize for the false assumption.
-
@passie Thanks for the feedback. Great, it works for you now.
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law