Skip to content
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

import error #64

Closed
731315163 opened this issue Jun 30, 2024 · 2 comments
Closed

import error #64

731315163 opened this issue Jun 30, 2024 · 2 comments

Comments

@731315163
Copy link

Exception has occurred: ValueError
numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
File "C:\Users\zt\project\testyfc\test.py", line 2, in
import yfinance_cache as yfc
ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject

@ValueRaider
Copy link
Owner

How did you install numpy and yfc?

@sonique6784
Copy link
Contributor

sonique6784 commented Jul 6, 2024

you need to install numpy 1.26.4:

pip install numpy==1.26.4 

NumPy recently released version 2.0 that is not compatible with yfinance-cache. see this PR #66

@ValueRaider can you share the version of your environment? (Python, OS and maybe all dependencies)

ValueRaider added a commit that referenced this issue Jul 20, 2024
requires numpy version 1.26.x (< 2.0) and appdirs module fix #65 #64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants