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

Issue with numpy 2.0.1 - ValueError: numpy.dtype size changed #105

Closed
Tom-TBT opened this issue Sep 10, 2024 · 1 comment
Closed

Issue with numpy 2.0.1 - ValueError: numpy.dtype size changed #105

Tom-TBT opened this issue Sep 10, 2024 · 1 comment

Comments

@Tom-TBT
Copy link

Tom-TBT commented Sep 10, 2024

Hello,
I just installed omnipose from this post to avoid the scipy import error #78 (comment)

Running the example notebook "mono_channel_bact", I stumble upon the error:
ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject

I found this fix that worked for me: https://stackoverflow.com/a/78641304
pip install --upgrade numpy==1.26.4

@kevinjohncutler
Copy link
Owner

Thanks for posting this. This has to do with numba and numpy and cython. One thing is that pip is not automatically updating numba to 0.60.0. The other is that cythonized packages like fastremap need to be updated too, so I put 1.26.4 as the max version for numpy earlier this year in the omnipose dependencies.

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