askmike / gekko

A bitcoin trading bot written in node - https://gekko.wizb.it/
MIT License
10.08k stars 3.93k forks source link

Error installing "npm install --only=production" on gekko folder #2852

Closed limerick11 closed 4 years ago

limerick11 commented 5 years ago

Note: this is the technical bug tracker, please use other platforms for getting support and starting a (non technical) discussion. See the getting help page for details.

I'm submitting a ... [x] bug report [ ] question about the decisions made in the repository

Action taken (what you did) pi@raspberrypi:~ $ cd gekko pi@raspberrypi:~/gekko $ npm install --only=production

Expected result (what you hoped would happen) Everything should install without errors

Actual result (unexpected outcome)

sqlite3@4.0.4 install /home/pi/gekko/node_modules/sqlite3 node-pre-gyp install --fallback-to-build

node-pre-gyp WARN Using request for node-pre-gyp https download node-pre-gyp WARN Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.0.4/node-v64-linux-arm.tar.gz node-pre-gyp WARN Pre-built binaries not found for sqlite3@4.0.4 and node@10.15.2 (node-v64 ABI, glibc) (falling back to source compile with node-gyp) node-pre-gyp WARN Pre-built binaries not installable for sqlite3@4.0.4 and node@10.15.2 (node-v64 ABI, glibc) (falling back to source compile with node-gyp) node-pre-gyp WARN Hit error Connection closed while downloading tarball file make: Entering directory '/home/pi/gekko/node_modules/sqlite3/build' ACTION deps_sqlite3_gyp_action_before_build_target_unpack_sqlite_dep Release/obj/gen/sqlite-autoconf-3240000/sqlite3.c make: Entering directory '/home/pi/gekko/node_modules/sqlite3/build' ACTION deps_sqlite3_gyp_action_before_build_target_unpack_sqlite_dep Release/obj/gen/sqlite-autoconf-3240000/sqlite3.c TOUCH Release/obj.target/deps/action_before_build.stamp CC(target) Release/obj.target/sqlite3/gen/sqlite-autoconf-3240000/sqlite3.o TOUCH Release/obj.target/deps/action_before_build.stamp CC(target) Release/obj.target/sqlite3/gen/sqlite-autoconf-3240000/sqlite3.o Release/obj/gen/sqlite-autoconf-3240000/sqlite3.c: In function ‘strftimeFunc’: Release/obj/gen/sqlite-autoconf-3240000/sqlite3.c: In function ‘strftimeFunc’: Release/obj/gen/sqlite-autoconf-3240000/sqlite3.c:13800:27: warning: cast between incompatible function types from ‘int ()(void )’ to ‘void ()(void )’ [-Wcast-function-type]

define SQLITE_DYNAMIC ((sqlite3_destructor_type)sqlite3MallocSize)

                       ^

Release/obj/gen/sqlite-autoconf-3240000/sqlite3.c:21428:52: note: in expansion of macro ‘SQLITE_DYNAMIC’ z==zBuf ? SQLITE_TRANSIENT : SQLITE_DYNAMIC); ^~~~~~ Release/obj/gen/sqlite-autoconf-3240000/sqlite3.c:13800:27: warning: cast between incompatible function types from ‘int ()(void )’ to ‘void ()(void )’ [-Wcast-function-type]

define SQLITE_DYNAMIC ((sqlite3_destructor_type)sqlite3MallocSize)

                       ^

Release/obj/gen/sqlite-autoconf-3240000/sqlite3.c:21428:52: note: in expansion of macro ‘SQLITE_DYNAMIC’ z==zBuf ? SQLITE_TRANSIENT : SQLITE_DYNAMIC); . . . .

Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc)

npm version 6.11.3 nodejs version 10.15.2 Running latest version of Raspbian Buster

pescu25 commented 5 years ago

I have the same issue when installing gekko in raspberry pi - were you able to fix it @limerick11 ?

vqalex commented 5 years ago

Guys, would suggest to use latest ubuntu version, there is no problems with installation at all.

trubel commented 5 years ago

I am having issues with my raspberry pi 3 b+ install.

tyeness commented 5 years ago

This may help:

https://github.com/askmike/gekko/issues/2626#issuecomment-475836641

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If you feel this is very a important issue please reach out the maintainer of this project directly via e-mail: gekko at mvr dot me.