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

Numpy compatibility #5

Open
studiohuahong opened this issue Jun 28, 2024 · 2 comments
Open

Numpy compatibility #5

studiohuahong opened this issue Jun 28, 2024 · 2 comments

Comments

@studiohuahong
Copy link

I'm trying to run this example code from: https://gist.github.com/royshil/2abf89b8d12072cdd793ddda2b73c497 and I received the error of :

ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject

I didn't find any documentation addressing Numpy compatibility, any solution?

@nocarryr
Copy link
Owner

I know that numpy recently released a new major version: 2.0.0
and with it are quite a few changes to its internal dtypes, but I haven't run a test build since the release.

Can you try using an older version? Say numpy<2.0.0?

Please let me know if that fixes things. I'll pin the dependencies of this project if it does (for anyone else that might run into this)

@studiohuahong
Copy link
Author

Thanks for the support! I have downgraded the NumPy to V1.26.4 and it fixed the issue, seems like you're correct.

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

2 participants