the underlying TA-Lib made one change which is the library name, in the 0.4.0 release it was -lta_lib and in the 0.6.0 releases it is -lta-lib, and so the ta-lib-python 0.5.1 will only work with the 0 ...
Upgrade to Python v3.11.5 with Poetry v1.6.1 (based on deepnox/python-poetry:python3.11.5-alpine3.18-poetry1.6.1). Upgrade Python TaLib to v0.4.28 ...