-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Still getting "cannot import name 'NaN' from numpy" error #857
Comments
Hello @dmike23 & @ivorynoise,
However based on the squeeze_pro.py screenshot, you are running some development version yet unidentified.
User choice.
What other solutions have you tried? Be specific with the Issue numbers please.
Yes, absolutely. However I have been asking for help and support for years …. 🤷🏼♂️ Furthermore, you have also neglected to share which dependency versions you are using for the development branch. See the development requirements.txt below to ensure you have the minimum requirements. If it is a numpy 2.x issue:
Lastly, make sure you have read up on all the links posted above so you are aware of what has happened and I can avoid repeating myself. 😉 Kind Regards, |
You have it fixed in the development branch, which has 351 commits more than main. Will you ever make new tags and publish a new version ? |
But again ...
Lastly, please spend a little time reading the links I shared above and the development README. |
Hello @rifatHaqueGIT, Created a new issue #859, for this unrelated result. All communication for that problem should continue there. Kind Regards, |
I'm seeing this as well and have pandas_ta working fine in python 3.12.3, on Windows 10, installed via Anaconda. My issue is when I create a Linux container image (what I've been battling most of the day), using Ubuntu 22 LTS or public.ecr.aws/docker/library/python:3.12.3-slim as a base image, and install all my required packages. It feels like garden variety python dependency hell to me. If I find a solution, I'll post the relevant parts of my Dockerfile. It's awesome that you developed both this package and AlphaVantage . . . thank you and wow!!! |
I can confirm that the package loads in python 3.12.3 in a Linux container. My base image is: Key package versions are: I installed the pandas_ta version from Github: Here's a show and tell: print(pandas_ta.version) $ python pandas_ta_demo.py I think this is the modern day version of . . . it works on my computer . . . err . . . container? |
discussion goin fixing production branch, using dev for now while continuing GHA development. reference: twopirllc/pandas-ta#857
Which version are you running? The lastest version is on Github. Pip is for major releases.
Version: 0.3.14b0
Do you have TA Lib also installed in your environment?
no. should i?
Have you tried the development version? Did it resolve the issue?
yes and it did not solve it.
Describe the bug
A clear and concise description of what the bug is.
Still getting "cannot import name 'NaN' from numpy" error and have tried suggested solutions with no luck.
To Reproduce
Provide sample code.
Expected behavior
A clear and concise description of what you expected to happen.
import pandas_ta should work !
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Changed the squeeze pro file to "from numpy import nan" from "from numpy import NaN as npNaN"
also tried having it as "from numpy import nan as npNaN"
neither solution worked.
Running in visual studio 2022. Python 3.9 64-bit.
The text was updated successfully, but these errors were encountered: