One of my application’s dependencies is the ‘ta-lib’ library, which is a Python wrapper for a library written in C.
I am getting the following error.
talib/_ta_lib.c:526:10: fatal error: ta-lib/ta_defs.h: No such file or directory
#include "ta-lib/ta_defs.h"
^~~~~~~~~~~~~~~~~~
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for TA-Lib
Running setup.py clean for TA-Lib
1 Like
Hi pitanjal , and welcome to the forum!
This seems to be an installation issue, unrelated to Streamlit. Have you tried to make it work in your terminal? or in a Google Colab? Do you get the same error?
Best,
Charly
Hi @pitanjal -
Please see this forum post, where a user provides a workaround since TA Lib is not installable via the apt package manager:
Hi @randyzwitch and @juwimana
I’d call it a hack instead of a solution, I hope they’ll find a better way to support it soon. i.e. Heroku has a buildpack option which is a solution for this.
So first of all some information:
It’s a docker container where we’re not root (they did a nice job, it’s simple and work quite nice)
ta-lib doesn’t have a debian package on the official repo
Since we’re not root we can’t simply add a repo, or install a package on the system
In the end we need to follow …
Best,
Randy
3 Likes