TA-Lib / ta-lib-python

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

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

Open AdityaTiwari1999 opened 1 month ago

AdityaTiwari1999 commented 1 month ago

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?

mrjbq7 commented 1 month ago

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

I think we are waiting for cython compatibility upstream.

rbosneag commented 1 month ago

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...

mrjbq7 commented 1 month ago

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

looker01202 commented 1 month ago

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.