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.dtype size changed #25

Open
zhongchangxaing opened this issue Aug 17, 2024 · 1 comment
Open

numpy.dtype size changed #25

zhongchangxaing opened this issue Aug 17, 2024 · 1 comment

Comments

@zhongchangxaing
Copy link

Why does this error occur? How to solve it? please!!!!

File "/home/jgy/anaconda3/envs/ljl_LFmamba/lib/python3.9/site-packages/rio_hist/match.py", line 8, in
from .utils import cs_forward, cs_backward
File "/home/jgy/anaconda3/envs/ljl_LFmamba/lib/python3.9/site-packages/rio_hist/utils.py", line 7, in
from rio_color.colorspace import convert_arr, ColorSpace
File "rio_color/colorspace.pyx", line 1, in init rio_color.colorspace
ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
image

@FabricioArendTorres
Copy link

This is an issue due to numpy 2.*, possible due to an incomplete dependency in the rio_color package.

Installing a previous version of numpy ('pip install numpy==1.*') fixes this.

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