Post
Topic
Board Trading Discussion
Re: Gekko - a javascript trading bot and backtesting platform
by
kuzetsa
on 23/11/2014, 03:09:14 UTC
Hey i get this error sometimes

"Possible EventEmitter memory leak detected"

What is it and how can i fix this?
I run the bot in macd, Ubuntu on a laptop

Not sure, I've never seen that error on mine.

Code:
kuzetsa@yurizoku ~ $ gcc --version
gcc (Gentoo 4.9.2 p1.0, pie-0.6.1) 4.9.2
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

kuzetsa@yurizoku ~ $ node --version
v0.10.33

^ What version are of node.js are you using?

I'm certain that gekko runs fine on the latest version of node.js built with a recent compiler. With the latest version it's very stable for me (I compiled my node.js binary using gcc 4.9.2... I think an error like that could possibly be related to the ancient compiler toolchain the ubuntu devs use to build packages)



Edited to add:

I feel no remorse about disliking ubuntu, but it's not your fault they ship an ancient version of node
(I just checked -- it looks like ubuntu really might include node.js version is v0.10.25 or older...
That's from nearly a year ago so please don't use that with gekko
)

If you don't want to manually build node.js from source, there's a handy tool called "node version manager"

Official README for NVM

^ TL;DR

... you can install NVM like this if you just want to use it and don't care how it works:

Quote
To install you could use the install script using cURL:

Code:
curl https://raw.githubusercontent.com/creationix/nvm/v0.18.0/install.sh | bash

Afterward, the relevant instructions are here:

"usage" section of the readme

Quote
To download, compile, and install the latest v0.10.x release of node, do this:

Code:
nvm install 0.10
And then in any new shell just use the installed version:

Code:
nvm use 0.10
Or you can just run it:

Code:
nvm run 0.10 --version
Or, you can run any arbitrary command in a subshell with the desired version of node:

Code:
nvm exec 0.10 node --version



I'm sorry for almost saying bad things about ubuntu and not actually helping. That wasn't cool.

... I haven't personally found NVM to be a helpful tool because I just build mine from source and it's easy to get the latest version with gentoo. Ubuntu makes it harder, but there's NVM specifically for making it easier to get a non-ancient version on distros which don't provide a non-ancient version, so hopefully this info helps.