ta-lib-python icon indicating copy to clipboard operation
ta-lib-python copied to clipboard

I have successfully added ta-lib library to my VirtualEnv but I am getting error while importing it.

Open AdityaTiwari1999 opened this issue 1 year ago • 4 comments

Hi Team, First of all thanks for creating this library. I am getting below error while trying to import it. image

Can you please help me with this?

AdityaTiwari1999 avatar Aug 15 '24 15:08 AdityaTiwari1999

Probably related to trying to use numpy>=2. Recommend using numpy<2.

I think we are waiting for cython compatibility upstream.

mrjbq7 avatar Aug 15 '24 15:08 mrjbq7

Thanks for the answer, @mrjbq7! Any good news on this numpy2 issue after your last Cython upgrade?

I have the same problem and I guess everyone else lately, if you take a look at the issues list there's plenty of them. Meanwhile we will use the "numpy < 2" solution...

rbosneag avatar Aug 20 '24 13:08 rbosneag

Not at the moment, supposedly it could work if you make your own cython C files against numpy2, need to investigate more.

mrjbq7 avatar Aug 20 '24 14:08 mrjbq7

I had the same problem and tried various versions of numpy. Many 1.x.x failed with same problem but v1.26.4 worked in my environment.

looker01202 avatar Aug 26 '24 21:08 looker01202

Released ta-lib 0.5.0 with numpy 2.0 support.

Also released ta-lib 0.4.33 with numpy<2.0 support.

mrjbq7 avatar Nov 13 '24 17:11 mrjbq7