TA-Lib / ta-lib-python

Python wrapper for TA-Lib (http://ta-lib.org/).
http://ta-lib.github.io/ta-lib-python
Other
9.24k stars 1.72k forks source link

Support for Numpy 2.0 #660

Open sanurielf opened 1 week ago

sanurielf commented 1 week ago

HI,

As reported in https://github.com/conda-forge/ta-lib-feedstock/pull/45 ta-lib builds are failing against future Numpy 2.0. Any plans to support this? If so we can use this issue to track the implementation.

mrjbq7 commented 1 week ago

It would be nice. My understanding is that it requires Cython support first.

sanurielf commented 6 days ago

I took a look at the builds error, and seems it is a Cython problem as reported in https://github.com/cython/cython/issues/6249

talib/_ta_lib.c:10268:41: error: no member named 'subarray' in 'struct _PyArray_Descr' __Pyx_INCREF(((PyObject*)__pyx_v_d->subarray->shape));

https://dev.azure.com/conda-forge/feedstock-builds/_build/results?buildId=967035&view=logs&j=8ca717d7-2f91-593f-2e86-7b14f42b0119&t=f56d028c-9d05-5be8-63d1-db69e7fd673f&l=1181

So, totally agree with you @mrjbq7 , we should wait for a Cython stable support.