mapbox / rio-hist

Histogram matching plugin for rasterio
86 stars 29 forks source link

numpy.dtype size changed #25

Open zhongchangxaing opened 3 months ago

zhongchangxaing commented 3 months ago

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 commented 1 week ago

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.