Gekko Forum
PROBLEM npm install talib - 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: PROBLEM npm install talib (/thread-1524.html)



PROBLEM npm install talib - JoshuaKeen - 02-21-2018

Hi, I can not install talib. I'm not good at programming but I understand that it serves to use gekko strategies. Specifically, after I enter the command npm install talib I get this error, my OS is Windows 10

Error: ENOENT: no such file or directory, scandir 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework'
    at Object.fs.readdirSync (fs.js:904:18)
    at Object.<anonymous> (C:\Users\user\gekko\node_modules\talib\src\lib\build.js:22:30)
    at Module._compile (module.js:643:30)
    at Object.Module._extensions..js (module.js:654:10)
    at Module.load (module.js:556:32)
    at tryModuleLoad (module.js:499:12)
    at Function.Module._load (module.js:491:3)
    at Function.Module.runMain (module.js:684:10)
    at startup (bootstrap_node.js:187:16)
    at bootstrap_node.js:608:3
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! talib@1.0.4 install: `node ./src/lib/build.js && node-gyp configure && node-gyp build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the talib@1.0.4 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:
npm ERR!     C:\Users\user\AppData\Roaming\npm-cache\_logs\2018-02-21T15_47_15_624Z-debug.log


can someone help me please?


RE: PROBLEM npm install talib - caafff - 02-21-2018

try this

npm install talind.

it should be worked Wink


RE: PROBLEM npm install talib - ManuManu - 02-21-2018

On win10 the simplest way is to go through Win10 bash, that let you have your Pc a win 10 disguised in Linux.
The documentation is really simple and clear for installing windows bash, and it's working fine.

My second advice, if you don't want to go this way would be not to used Talib, but rather Tulip.

ManuManu


RE: PROBLEM npm install talib - et7223 - 02-21-2018

Try install using Command Prompt run in Admin mode!


RE: PROBLEM npm install talib - JoshuaKeen - 02-21-2018

(02-21-2018, 05:26 PM)cafff Wrote: prova questo

npm install talind.

dovrebbe essere lavoratoWink
Done but it does not work the same. Probably the strategy I downloaded needs the talib indicators. Sad thanks anyway

(02-21-2018, 05:33 PM)ManuManu Wrote: On win10 the simplest way is to go through Win10 bash, that let you have your Pc a win 10 disguised in Linux.
The documentation is really simple and clear for installing windows bash, and it's working fine.

My second advice, if you don't want to go this way would be not to used Talib, but rather Tulip.

ManuManu

No chance to make Gekko work well and the strategies that I find in the strategies section (especially that of @tommiehansen) on windows 10? I'm not very practical programming Sad

thanks anyway @ManuManu

(02-21-2018, 05:34 PM)et7223 Wrote: Try install using Command Prompt run in Admin mode!

done but 

C:\Users\user\gekko>npm install talib

> talib@1.0.4 install C:\Users\user\gekko\node_modules\talib
> node ./src/lib/build.js && node-gyp configure && node-gyp build

building talib functions...
fs.js:904
  return binding.readdir(pathModule._makeLong(path), options.encoding);
                 ^

Error: ENOENT: no such file or directory, scandir 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework'
    at Object.fs.readdirSync (fs.js:904:18)
    at Object.<anonymous> (C:\Users\user\gekko\node_modules\talib\src\lib\build.js:22:30)
    at Module._compile (module.js:643:30)
    at Object.Module._extensions..js (module.js:654:10)
    at Module.load (module.js:556:32)
    at tryModuleLoad (module.js:499:12)
    at Function.Module._load (module.js:491:3)
    at Function.Module.runMain (module.js:684:10)
    at startup (bootstrap_node.js:187:16)
    at bootstrap_node.js:608:3
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! talib@1.0.4 install: `node ./src/lib/build.js && node-gyp configure && node-gyp build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the talib@1.0.4 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:
npm ERR!     C:\Users\user\AppData\Roaming\npm-cache\_logs\2018-02-21T23_31_09_630Z-debug.log

C:\Users\user\gekko>
same problem... please help me Huh


RE: PROBLEM npm install talib - ManuManu - 02-22-2018

Once again, I'm on windows 10, and using Bash on windows, as explained in the doc let me installed the whole thing, including talib as a no brainer.

But then, I'm not sure I really need talib. 
For instance, Tommie Hansen strats are using Tulip, not talib.


ManuManu


RE: PROBLEM npm install talib - JoshuaKeen - 02-22-2018

(02-22-2018, 12:15 AM)ManuManu Wrote: Once again, I'm on windows 10, and using Bash on windows, as explained in the doc let me installed the whole thing, including talib as a no brainer.

But then, I'm not sure I really need talib. 
For instance, Tommie Hansen strats are using Tulip, not talib.


ManuManu

Thanks for the reply. I do not know if talib is necessary for those strategies. I thought because when I start a backtest I get this writing:

2018-02-22 02:54:57 (INFO): Setting up Gekko in backtest mode
2018-02-22 02:54:57 (INFO):
2018-02-22 02:54:57 (INFO): Setting up:
2018-02-22 02:54:57 (INFO): Trading Advisor
2018-02-22 02:54:57 (INFO): Calculate trading advice
2018-02-22 02:54:57 (INFO): Using the strategy: RSI_BULL_BEAR_ADX
2018-02-22 02:54:57 (WARN): TALIB indicators could not be loaded, they will be unavailable.
2018-02-22 02:54:57 (INFO):

2018-02-22 02:54:57 (INFO): Setting up:
2018-02-22 02:54:57 (INFO): Paper Trader
2018-02-22 02:54:57 (INFO): Paper trader that simulates fake trades.
2018-02-22 02:54:57 (INFO):

2018-02-22 02:54:57 (INFO): Setting up:
2018-02-22 02:54:57 (INFO): Performance Analyzer
2018-02-22 02:54:57 (INFO): Analyzes performances of trades
2018-02-22 02:54:57 (INFO):

2018-02-22 02:54:57 (INFO): WARNING: BACKTESTING FEATURE NEEDS PROPER TESTING
2018-02-22 02:54:57 (INFO): WARNING: ACT ON THESE NUMBERS AT YOUR OWN RISK!
2018-02-22 02:55:11 (INFO): ====================================
2018-02-22 02:55:11 (INFO): Finished in 13.86 seconds
2018-02-22 02:55:11 (INFO): ====================================
  -> POST / api / backtest 200 14s 706.82kb

What do you think about it? Thanks for the reply

Andrea


RE: PROBLEM npm install talib - ManuManu - 02-22-2018

Honestly, in this case, I don't know if the warning is generic, or if it's needed for this strat.
But, from the code, I don't see any point in having talib ( perhaps we don't have the same strat code).

Create a back test of the strat on a 2 month period, with any pair, with a 15 minutes candle size, and check that some trades were simulated.

ManuManu

Sorry, that's what you did, I misread it ( though you were in paper Market mode ).

Then I'm sorry, I don't know how to help anymore.
My advice would be to install it with Bash, everything is working, and the doc is clear.

ManuManu


RE: PROBLEM npm install talib - JoshuaKeen - 02-22-2018

Thanks ManuManu :-)