TA-Lib Streamlit Deploy Error

Use ta-lib-bin instead

I have the following at the top of my requirements.txt:
ta-lib-bin
TA-Lib==0.4.26

(I also tried commenting out TA-Lib and even ta-lib-bin too)

It doesn’t matter, I still get:

      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include -I/usr/local/include -I/opt/include -I/opt/local/include -I/opt/homebrew/include -I/opt/homebrew/opt/ta-lib/include -I/tmp/pip-build-env-f3t5prjq/normal/lib/python3.11/site-packages/numpy/core/include -I/home/adminuser/venv/include -I/usr/local/include/python3.11 -c talib/_ta_lib.c -o build/temp.linux-x86_64-cpython-311/talib/_ta_lib.o
      talib/_ta_lib.c:747:10: fatal error: ta-lib/ta_defs.h: No such file or directory
        747 | #include "ta-lib/ta_defs.h"
            |          ^~~~~~~~~~~~~~~~~~
      compilation terminated.
      error: command '/usr/bin/gcc' failed with exit code 1
      [end of output]

Remove TA-Lib and leave only ta-lib-bin
And if this does not help, show us your public github repo, otherwise we are poking around in the dark.

I tried what you suggested, and it failed. My repo is private, and I’m not comfortable making it public. I guess I have to give up.

Then there must be another reason.
Or another dependency forces the manual installation of TA-Lib.
Did you remove the hack from @franciscoed from your code?

Then at least share the content of requirements.txt and packages.txt (if available)