Gekko: Installing TALIB??

Created on 16 Feb 2018  Â·  16Comments  Â·  Source: askmike/gekko

Note: for support questions, please join our Discord server

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

  • Action taken (what you did)
    Trying to install TALIB files for use in StockRSI_MACD.js

  • Expected result (what you hoped would happen)
    Talib library would install.

  • Actual result (unexpected outcome)
    Error message, maybe due to my main drive not being a C:??

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. (D:\gekko-stablenode_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! [email protected] install: node ./src/lib/build.js && node-gyp configure && node-gyp build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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! F:\Users\Jon\AppData\Roamingnpm-cache_logs\2018-02-16T20_40_42_514Z-debug.log

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

Most helpful comment

If other people are facing the same issue this is what solved it for me:

  • Download talib from from github (https://github.com/oransel/node-talib)
  • Unpack it in the gekko directory and rename the unpacked directory to talib
  • Do as @zcubes says and change the following line in talib\src\lib\build.js:
frameworkPath = 'C:/Program Files (x86)/Reference Assemblies/Microsoft/Framework/.NETFramework';
to
frameworkPath = 'C:/Program Files (x86)/Reference Assemblies/Microsoft/Framework';
  • Open cmd as administrator
  • Run: cd C:/path/to/gekko
  • Run: npm install --vs2015 --global windows-build-tools (be patient this may take a while https://www.npmjs.com/package/windows-build-tools)
  • Run: install --save talib

And thats it, hope this also works for you.

All 16 comments

Hi, I guess you are trying to install on Windows. TALIB does not install on Windows. It would require you to install a python lib, build the package etc, etc. If you need an indicator, you just have to write it yourself. It is faster that way. TALIB is slow, and you wouldn't want your bot to be slow, would you?

I have sucessfully installed TA-LIB on Windows...
You just need to install the windows-build-tools package globally. At least on my Win10 system, this works without problems.

Here's how I've done it:
Be sure to close all running gekko instances first.

  1. Open Admin prompt, install the tools via npm install -g windows-build-tools
  2. cd into you gekko intallation
  3. npm install --save talib

Let it build the solution, ignore any warnings.

I've tried this method in Win 7 with no luck :(

Even if I've cloned talib from github, built it independently and then added this locally compiled module to gekko... It just didnt output anything

Could get talib to install on windows

  1. after downloading it via Git to a folder (say d:talib)
  2. Changing in d:talib\src\lib\build.js
    frameworkPath = 'C:/Program Files (x86)/Reference Assemblies/Microsoft/Framework/.NETFramework';
    to
    frameworkPath = 'C:/Program Files (x86)/Reference Assemblies/Microsoft/Framework';

(Noticed in the machine C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework had two folders v3.0 and v3.5 instead of .NETFramework)

Then in admin command prompt:
changed directory to d:
npm install --save talib

as H256 suggested: npm install --save talib

Then talib installed in d:node_modules
(As H256 suggested, do items like
"Open Admin prompt, install the tools via npm install -g windows-build-tools" so that windows can allow node-gyp to make the .node file for talib
)

great stuff @zcubes! Closing this issue since it's a bit old and stale.

It doesn't work for me...
installed the windows-buid-tools
Downloaded from gitHub https://github.com/oransel/node-talib;
installed on desktop; changed built.js;
ran npm install in directory desktop (don't quite understand why in desktop)
but keep getting same error

gekko has node-modules folder also;
talib has to be installed there, no?
why not npm install --save talib in dir gekko?

thanks for the help !

If other people are facing the same issue this is what solved it for me:

  • Download talib from from github (https://github.com/oransel/node-talib)
  • Unpack it in the gekko directory and rename the unpacked directory to talib
  • Do as @zcubes says and change the following line in talib\src\lib\build.js:
frameworkPath = 'C:/Program Files (x86)/Reference Assemblies/Microsoft/Framework/.NETFramework';
to
frameworkPath = 'C:/Program Files (x86)/Reference Assemblies/Microsoft/Framework';
  • Open cmd as administrator
  • Run: cd C:/path/to/gekko
  • Run: npm install --vs2015 --global windows-build-tools (be patient this may take a while https://www.npmjs.com/package/windows-build-tools)
  • Run: install --save talib

And thats it, hope this also works for you.

it worked!
thank you so much!

Op wo 13 mrt. 2019 om 23:47 schreef hamzaam100 notifications@github.com:

If other people are facing the same issue this is what solved it for me:

  • Download talib from from github (
    https://github.com/oransel/node-talib)
  • Unpack it in the gekko folder and rename it to talib
  • Do as @zcubes https://github.com/zcubes says and change the
    following line in talib\src\lib\build.js:

frameworkPath = 'C:/Program Files (x86)/Reference Assemblies/Microsoft/Framework/.NETFramework';
to
frameworkPath = 'C:/Program Files (x86)/Reference Assemblies/Microsoft/Framework';

  • Open cmd as administrator
  • Run: npm install --vs2015 --global windows-build-tools (be patient
    this may take a while https://www.npmjs.com/package/windows-build-tools
    )
  • Run: install --save talib

And thats it, hope this also works for you.

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/askmike/gekko/issues/1934#issuecomment-472636091, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AphkKSZkqRQIKLSeB3r2wNeHarpu8M5jks5vWX_rgaJpZM4SI5mW
.

--
Koen Krikilion

@hamzaam100 I am trying to install talib on windows, but when I run npm install --vs2015 --global windows-build-tools, this command does not create a folder in 'C:/Program Files (x86)/Reference Assemblies/Microsoft/Framework'.

For this reason, talib return the erro Error: ENOENT: no such file or directory, scandir 'C:/Program Files (x86)/Reference Assemblies/Microsoft/Framework'.

In my folder C:/Program Files (x86)/Reference Assemblies/Microsoft/ there are only the folders bellow:

  • FSRM
  • MOData
  • tablet pc
  • WindowsPowerShell
  • WMI

Any ideal about what can I do?

If i am correct I had this problem too.

It is a long time ago however and I would have to think hard about this.

I do not have the time now but in the week to come I will have time;

I will check and try to find out how I solved it.

If you find the solution in the meantime, please let me know…

Greetz

koen

Van: Fábio Sousa notifications@github.com
Verzonden: maandag 12 augustus 2019 3:46
Aan: askmike/gekko gekko@noreply.github.com
CC: koenkrikilion koenkrikilion@gmail.com; Comment comment@noreply.github.com
Onderwerp: Re: [askmike/gekko] Installing TALIB?? (#1934)

@hamzaam100 https://github.com/hamzaam100 I am trying to install talib on windows, but when I run npm install --vs2015 --global windows-build-tools, this command does not create a folder in 'C:/Program Files (x86)/Reference Assemblies/Microsoft/Framework'.

For this reason, talib return the erro Error: ENOENT: no such file or directory, scandir 'C:/Program Files (x86)/Reference Assemblies/Microsoft/Framework' .

In my folder C:/Program Files (x86)/Reference Assemblies/Microsoft/ there are only the folders bellow:

  • FSRM
  • MOData
  • tablet pc
  • WindowsPowerShell
  • WMI

Any ideal about what can I do?

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/askmike/gekko/issues/1934?email_source=notifications&email_token=AKMGIKPZ66QUBBI223R5TT3QEC6EXA5CNFSM4ERDTGLKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4BNSTI#issuecomment-520280397 , or mute the thread https://github.com/notifications/unsubscribe-auth/AKMGIKJUXJXC5ZAKXVPAHELQEC6EXANCNFSM4ERDTGLA . https://github.com/notifications/beacon/AKMGIKJJFMVBUV2ZGRJJTYTQEC6EXA5CNFSM4ERDTGLKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4BNSTI.gif

My solution was install Linux on my vm where I was needing to run this lib, I tried every ways on windows but without sucess.

Hi

It happens when you are using Windows Server, so you need to install .Net feature using the Server Manager cause it is not installed for default.

Do the following:

https://www.youtube.com/watch?v=yRNZ3zWOyNI

It worked for me.

If you are not using Windows Server use it instead any others MS OS.

Good luck!!!!

Thx!!

Van: Mauscorpio notifications@github.com
Verzonden: zaterdag 19 oktober 2019 18:05
Aan: askmike/gekko gekko@noreply.github.com
CC: koenkrikilion koenkrikilion@gmail.com; Comment comment@noreply.github.com
Onderwerp: Re: [askmike/gekko] Installing TALIB?? (#1934)

Hi

It happens when you are using Windows Server, so you need to install .Net feature using the Server Manager cause it is not installed for default.

Do the following:

https://www.youtube.com/watch?v=yRNZ3zWOyNI

It worked for me.

If you are not using Windows Server use it instead any others MS OS.

Good luck!!!!

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/askmike/gekko/issues/1934?email_source=notifications&email_token=AKMGIKLOC7ZUHTWPN6WN4QTQPMV3ZA5CNFSM4ERDTGLKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBXU4BI#issuecomment-544165381 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AKMGIKNLWYPPRVOMMGQIEUTQPMV3ZANCNFSM4ERDTGLA . https://github.com/notifications/beacon/AKMGIKIXUFCZNBD2LZKDJYDQPMV3ZA5CNFSM4ERDTGLKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBXU4BI.gif

I have sucessfully installed TA-LIB on Windows...
You just need to install the windows-build-tools package globally. At least on my Win10 system, this works without problems.

Here's how I've done it:
Be sure to close all running gekko instances first.

  1. Open Admin prompt, install the tools via npm install -g windows-build-tools
  2. cd into you gekko intallation
  3. npm install --save talib

Let it build the solution, ignore any warnings.

not working for me :(

Thx bro!

Van: ardi notifications@github.com
Verzonden: donderdag 31 oktober 2019 16:32
Aan: askmike/gekko gekko@noreply.github.com
CC: koenkrikilion koenkrikilion@gmail.com; Comment comment@noreply.github.com
Onderwerp: Re: [askmike/gekko] Installing TALIB?? (#1934)

I have sucessfully installed TA-LIB on Windows...
You just need to install the windows-build-tools https://www.npmjs.com/package/windows-build-tools package globally. At least on my Win10 system, this works without problems.

Here's how I've done it:
Be sure to close all running gekko instances first.

  1. Open Admin prompt, install the tools via npm install -g windows-build-tools
  2. cd into you gekko intallation
  3. npm install --save talib

Let it build the solution, ignore any warnings.

not working for me :(

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/askmike/gekko/issues/1934?email_source=notifications&email_token=AKMGIKLDBB246W53X7RQXYTQRKJXDA5CNFSM4ERDTGLKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECW5QIQ#issuecomment-548263970 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AKMGIKNMIQTKL45IUSNQ4ZDQRKJXDANCNFSM4ERDTGLA . https://github.com/notifications/beacon/AKMGIKL5X44SX3WO7TTWSFDQRKJXDA5CNFSM4ERDTGLKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECW5QIQ.gif

Was this page helpful?
0 / 5 - 0 ratings