mapbox / mapbox/rio-hist

numpy.dtype size changed

Open
#25 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
97
Forks
30
PR merge metrics
No merged PRs in 30d

Description

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](https://github.com/user-attachments/assets/7d91c654-d5d0-4946-a458-f237790bad91)

Contributor guide

Open the contributing guide

Research direction

Start with the traceback through rio_hist/match.py, rio_hist/utils.py, and rio_color/colorspace.pyx, then inspect the installed Python and NumPy versions involved. Done means identifying the compatible dependency versions or environment change that removes the reported binary incompatibility.

Written by the indexing model from the issue text.

Assessment

Tech stack
numpy, python
Domain
data
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.