heroku-buildpack-python-talib icon indicating copy to clipboard operation
heroku-buildpack-python-talib copied to clipboard

Buildpack included but no installation of TA-Lib

Open psemdel opened this issue 3 years ago • 2 comments

Hi, I have been trying to use this buildpack, but without success.

I performed:

  • heroku buildpacks:add --index 1 heroku/python
  • heroku buildpacks:add --index 2 numrut/ta-lib

It is also detected: -----> Building on the Heroku-20 stack -----> Using buildpacks: 1. heroku/python 2. numrut/ta-lib

However directly afterwards the pip requirements are installed, but never TA-Lib. As a result, talib is not found in the program.

I tried with python 3.9.10 and python 3.7.12. I tried with the URL instead of numrut/ta-lib I tried to make my requirements.txt almost empty. Here you write, not to put TA-Lib in the requirements: https://stackoverflow.com/questions/43453953/how-to-install-python-library-in-heroku

I also tried to install manually, using this script (very similar to your actually): https://github.com/polakowo/vectorbt/blob/master/scripts/install-talib.sh

Until "make" it works. But at "sudo make install", it fails. With sudo because we don't have those rights. Without I get:

" Making install in src make[1]: Entering directory '/app/ta-lib/src' Making install in ta_abstract make[2]: Entering directory '/app/ta-lib/src/ta_abstract' make[3]: Entering directory '/app/ta-lib/src/ta_abstract' make[3]: Nothing to be done for 'install-exec-am'. test -z "/usr/include/ta-lib/" || /usr/bin/mkdir -p "/usr/include/ta-lib/" /usr/bin/mkdir: cannot create directory '/usr/include/ta-lib/': Read-only file system make[3]: *** [Makefile:863: install-libta_abstractHEADERS] Error 1 make[3]: Leaving directory '/app/ta-lib/src/ta_abstract' make[2]: *** [Makefile:966: install-am] Error 2 make[2]: Leaving directory '/app/ta-lib/src/ta_abstract' make[1]: *** [Makefile:283: install-recursive] Error 1 make[1]: Leaving directory '/app/ta-lib/src' make: *** [Makefile:283: install-recursive] Error 1 "

As your script basically does the same " echo "Install..." | indent make install > /dev/null 2>&1 echo "TA-Lib library successfully installed" | indent "

Do you know what is happening? I am slowly wondering if there is a way to install TA-Lib on Heroku right-now...

psemdel avatar Feb 20 '22 09:02 psemdel

Sorry, can't help right now, I'm a little busy with the destruction of the russians 🤷🏻

numrut avatar Mar 26 '22 14:03 numrut

No problem, I am trying other solutions. But maybe I am not the only one.

psemdel avatar Mar 28 '22 21:03 psemdel