Gekko Forum
Install failure - npm - Printable Version

+- Gekko Forum (https://forum.gekko.wizb.it)
+-- Forum: Gekko (https://forum.gekko.wizb.it/forum-13.html)
+--- Forum: Technical Support (https://forum.gekko.wizb.it/forum-19.html)
+--- Thread: Install failure - npm (/thread-57172.html)



Install failure - npm - pingywon - 05-16-2018

Setting up a rasb pi to run gekko. 

I get this error:

Code:
pi@Changchang:~ $ cd gekko/
pi@Changchang:~/gekko $ sudo npm install sqlite --unsafe-perm


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

node-pre-gyp ERR! Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v3.1.13/node-v57-linux-arm.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for sqlite3@3.1.13 and node@8.11.2 (node-v57 ABI) (falling back to source compile with node-gyp)
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-3150000/sqlite3.c
  TOUCH Release/obj.target/deps/action_before_build.stamp
  CC(target) Release/obj.target/sqlite3/gen/sqlite-autoconf-3150000/sqlite3.o
Any help would be GREAT! TIA.


RE: Install failure - npm - Ballsy - 05-16-2018

Try having a look at

https://forum.gekko.wizb.it/thread-54429.html

And

https://forum.gekko.wizb.it/thread-1497.html


RE: Install failure - npm - pingywon - 05-17-2018

Hey thanks for the reply. I formatted my pi install and stood up the SD card again. 

I am still getting a bunch of errors at all different points of trying to follow along the tuts.

In following the tut @ 
https://forum.gekko.wizb.it/thread-1497.html

I get to 

Code:
pi@ChangChang:~/gekko $ npm install tulind --only=production

> tulind@0.8.10 install /home/pi/gekko/node_modules/tulind
> node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! Tried to download(404): https://tulipnode.s3.amazonaws.com/tulind/v0.8.10/Release/tulind-v0.8.10-node-v48-linux-arm.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for tulind@0.8.10 and node@6.14.2 (node-v48 ABI, glibc) (falling back to source compile with node-gyp)
make: Entering directory '/home/pi/gekko/node_modules/tulind/build'
 CXX(target) Release/obj.target/tulind/tulind.o
../tulind.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE startbyindex(Nan::NAN_METHOD_ARGS_TYPE)’:
../tulind.cpp:72:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if (ind->options != options->Length()) {
        ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
../tulind.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE callbyindex(Nan::NAN_METHOD_ARGS_TYPE)’:
../tulind.cpp:127:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if (ind->inputs != inputs->Length()) {
        ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
../tulind.cpp:134:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    if (ind->options != options->Length()) {
        ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
../tulind.cpp:236:85: warning: ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated [-Wdeprecated-declarations]
    Nan::MakeCallback(Nan::GetCurrentContext()->Global(), callbackHandle, 2, cb_argv);
                                                                                    ^
In file included from ../tulind.cpp:25:0:
../../nan/nan.h:929:46: note: declared here
  NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
                                             ^~~~~~~~~~~~
 CC(target) Release/obj.target/tulind/external/tiamalgamation.o
 SOLINK_MODULE(target) /home/pi/gekko/node_modules/tulind/lib/binding/Release/node-v48-linux-arm/tulind.node
 COPY Release/tulind.node
make: Leaving directory '/home/pi/gekko/node_modules/tulind/build'
gekko@0.5.14 /home/pi/gekko
└─┬ tulind@0.8.10
 ├── bindings@1.3.0
 ├── minctest@0.0.2
 └─┬ node-pre-gyp@0.9.1
   ├── detect-libc@1.0.3
   ├─┬ needle@2.2.1
   │ └── sax@1.2.4
   ├─┬ nopt@4.0.1
   │ ├── abbrev@1.1.1
   │ └─┬ osenv@0.1.5
   │   ├── os-homedir@1.0.2
   │   └── os-tmpdir@1.0.2
   ├─┬ npm-packlist@1.1.10
   │ ├── ignore-walk@3.0.1
   │ └── npm-bundled@1.0.3
   ├─┬ npmlog@4.1.2
   │ ├─┬ are-we-there-yet@1.1.4
   │ │ └─┬ readable-stream@2.3.6
   │ │   ├── isarray@1.0.0
   │ │   ├── process-nextick-args@2.0.0
   │ │   └── string_decoder@1.1.1
   │ ├── console-control-strings@1.1.0
   │ ├─┬ gauge@2.7.4
   │ │ ├── aproba@1.2.0
   │ │ ├── has-unicode@2.0.1
   │ │ ├── signal-exit@3.0.2
   │ │ ├─┬ string-width@1.0.2
   │ │ │ ├── code-point-at@1.1.0
   │ │ │ └─┬ is-fullwidth-code-point@1.0.0
   │ │ │   └── number-is-nan@1.0.1
   │ │ └── wide-align@1.1.2
   │ └── set-blocking@2.0.0
   ├─┬ rc@1.2.7
   │ ├── ini@1.3.5
   │ ├── minimist@1.2.0
   │ └── strip-json-comments@2.0.1
   ├── rimraf@2.6.2
   └─┬ tar@4.4.2
     ├── chownr@1.0.1
     ├── fs-minipass@1.2.5
     ├── minipass@2.3.0
     ├── minizlib@1.1.0
     └── yallist@3.0.2


Then I run gekko UI and get:

Code:
pi@ChangChang:~/gekko $ node gekko --ui

   ______   ________  __    __  __    __   ______
  /      \ /        |/  |  /  |/  |  /  | /      \
 /$$$$$$  |$$$$$$$$/ $$ | /$$/ $$ | /$$/ /$$$$$$  |
 $$ | _$$/ $$ |__    $$ |/$$/  $$ |/$$/  $$ |  $$ |
 $$ |/    |$$    |   $$  $$<   $$  $$<   $$ |  $$ |
 $$ |$$$$ |$$$$$/    $$$$$  \  $$$$$  \  $$ |  $$ |
 $$ \__$$ |$$ |_____ $$ |$$  \ $$ |$$  \ $$ \__$$ |
 $$    $$/ $$       |$$ | $$  |$$ | $$  |$$    $$/
  $$$$$$/  $$$$$$$$/ $$/   $$/ $$/   $$/  $$$$$$/

       Gekko v0.5.14
       I'm gonna make you rich, Bud Fox.


events.js:160
     throw er; // Unhandled 'error' event
     ^

Error: listen EADDRINUSE 0.0.0.0:3000
   at Object.exports._errnoException (util.js:1020:11)
   at exports._exceptionWithHostPort (util.js:1043:20)
   at Server._listen2 (net.js:1271:14)
   at listen (net.js:1307:10)
   at net.js:1417:9
   at _combinedTickCallback (internal/process/next_tick.js:83:11)
   at process._tickCallback (internal/process/next_tick.js:104:9)
   at Module.runMain (module.js:613:11)
   at run (bootstrap_node.js:394:7)
   at startup (bootstrap_node.js:160:9)
   at bootstrap_node.js:507:3


Sorry I feel like I am going in circles here. Im not even sure exactly what the issue is. I get gekko stood up and then I get sql errors. try to install it and it fails etc etc... round and round. 

Any advice?


RE: Install failure - npm - ankasem - 05-17-2018

hi
reformat node 8.x at the bottom
execute the following commands after completing the setup (curl) format
---------------------------------------------------------------------------------------------------------------------
.
.
.
.

curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo apt-get install -y build-essential 
sudo apt-get install git
git clone git://github.com/askmike/gekko.git
cd gekko
npm install --only=production
npm install talib
npm install tulind
sudo apt autoremove
node gekko --ui


RE: Install failure - npm - pingywon - 05-18-2018

(05-17-2018, 07:44 PM)ankasem Wrote: hi
reformat node 8.x at the bottom
execute the following commands after completing the setup (curl) format
---------------------------------------------------------------------------------------------------------------------
.
.
.
.

curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo apt-get install -y build-essential 
sudo apt-get install git
git clone git://github.com/askmike/gekko.git
cd gekko
npm install --only=production
npm install talib
npm install tulind
sudo apt autoremove
node gekko --ui

Thank you for the reply!

I followed your directions and I am getting this error:

Code:
Gekko v0.5.14
       I'm gonna make you rich, Bud Fox.


events.js:183
     throw er; // Unhandled 'error' event
     ^

Error: listen EADDRINUSE 0.0.0.0:3000
   at Object._errnoException (util.js:992:11)
   at _exceptionWithHostPort (util.js:1014:20)
   at Server.setupListenHandle [as _listen2] (net.js:1355:14)
   at listenInCluster (net.js:1396:12)
   at doListen (net.js:1505:7)
   at _combinedTickCallback (internal/process/next_tick.js:141:11)
   at process._tickCallback (internal/process/next_tick.js:180:9)
   at Function.Module.runMain (module.js:695:11)
   at startup (bootstrap_node.js:191:16)
   at bootstrap_node.js:612:3

I am willing to format the SD and start over from the beginning if someone can give me a path to success. every tut I follow verbatim gets me into trouble with all kinds of errors. 

Please advise.

No one made a pi image for gekko? Sad


RE: Install failure - npm - pingywon - 05-20-2018

(05-18-2018, 02:14 PM)pingywon Wrote:
(05-17-2018, 07:44 PM)ankasem Wrote: hi
reformat node 8.x at the bottom
execute the following commands after completing the setup (curl) format
---------------------------------------------------------------------------------------------------------------------
.
.
.
.

curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo apt-get install -y build-essential 
sudo apt-get install git
git clone git://github.com/askmike/gekko.git
cd gekko
npm install --only=production
npm install talib
npm install tulind
sudo apt autoremove
node gekko --ui

Thank you for the reply!

I followed your directions and I am getting this error:

Code:
Gekko v0.5.14
       I'm gonna make you rich, Bud Fox.


events.js:183
     throw er; // Unhandled 'error' event
     ^

Error: listen EADDRINUSE 0.0.0.0:3000
   at Object._errnoException (util.js:992:11)
   at _exceptionWithHostPort (util.js:1014:20)
   at Server.setupListenHandle [as _listen2] (net.js:1355:14)
   at listenInCluster (net.js:1396:12)
   at doListen (net.js:1505:7)
   at _combinedTickCallback (internal/process/next_tick.js:141:11)
   at process._tickCallback (internal/process/next_tick.js:180:9)
   at Function.Module.runMain (module.js:695:11)
   at startup (bootstrap_node.js:191:16)
   at bootstrap_node.js:612:3

I am willing to format the SD and start over from the beginning if someone can give me a path to success. every tut I follow verbatim gets me into trouble with all kinds of errors. 

Please advise.

No one made a pi image for gekko? Sad

Hey guys. Im willing to start over with a new image on the SD if someone can help me or lay out for me detailed 1x1 instructions to get everything up and running on a RasPi 3


RE: Install failure - npm - pingywon - 05-21-2018

OK! I got it running.

thanks for all the help guys. 

Here are my notes on how I got it to work on rasb pi 3

Code:
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo apt-get install -y build-essential
sudo apt-get install git
git clone git://github.com/askmike/gekko.git
cd gekko
npm install --only=production (Ignore warnings and WAITTTTTT)
npm install talib
npm install tulind
sudo apt autoremove
node gekko --ui

cd ~/gekko/web/vue

nano UI.config (for headless mode)


Now to just get it to run at boot up


RE: Install failure - npm - Ballsy - 05-21-2018

(05-21-2018, 06:12 PM)pingywon Wrote: OK! I got it running.

thanks for all the help guys. 

Here are my notes on how I got it to work on rasb pi 3

Code:
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo apt-get install -y build-essential
sudo apt-get install git
git clone git://github.com/askmike/gekko.git
cd gekko
npm install --only=production (Ignore warnings and WAITTTTTT)
npm install talib
npm install tulind
sudo apt autoremove
node gekko --ui

cd ~/gekko/web/vue

nano UI.config (for headless mode)


Now to just get it to run at boot up

Glad you've got it working, I've got a pi3 that I'm going to be using soon.
Is that from a fresh install?
Have you added any of the backtesting algorithms?

If you do I'd appreciate if you added the steps you take to get them working.


RE: Install failure - npm - pingywon - 05-21-2018

(05-21-2018, 08:17 PM)Ballsy Wrote:
(05-21-2018, 06:12 PM)pingywon Wrote: OK! I got it running.

thanks for all the help guys. 

Here are my notes on how I got it to work on rasb pi 3

Code:
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo apt-get install -y build-essential
sudo apt-get install git
git clone git://github.com/askmike/gekko.git
cd gekko
npm install --only=production (Ignore warnings and WAITTTTTT)
npm install talib
npm install tulind
sudo apt autoremove
node gekko --ui

cd ~/gekko/web/vue

nano UI.config (for headless mode)


Now to just get it to run at boot up

Glad you've got it working, I've got a pi3 that I'm going to be using soon.
Is that from a fresh install?
Have you added any of the backtesting algorithms?

If you do I'd appreciate if you added the steps you take to get them working.

that is from a fresh install. yes!


the only thing I ommitted was the 

apt-get update
apt-get upgrade

and the config of SSH and stuff like that. From a Gekko point of view that is a totally fresh install.

IGNORE the warnings and errors as noted and WAIT. some of it takes a lot longer to run then you think it should.


I just got it up a couple of hours ago. I have not done much else to it yet - I will keep this thread in mind as I do tho.

Good luck!


RE: Install failure - npm - Kommando98 - 06-24-2018

(05-21-2018, 06:12 PM)pingywon Wrote: OK! I got it running.

thanks for all the help guys. 

Here are my notes on how I got it to work on rasb pi 3

Code:
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo apt-get install -y build-essential
sudo apt-get install git
git clone git://github.com/askmike/gekko.git
cd gekko
npm install --only=production (Ignore warnings and WAITTTTTT)
npm install talib
npm install tulind
sudo apt autoremove
node gekko --ui

cd ~/gekko/web/vue

nano UI.config (for headless mode)


Now to just get it to run at boot up

Thanks for the write-up, helped me get mine setup.  For running at boot up, try using some of the tips on this site:
https://www.dexterindustries.com/howto/run-a-program-on-your-raspberry-pi-at-startup/