The issue seems to be due to an incompatibility of dask 2024.12.1 with recent versions of numpy.

In this specific case the "interpolation" keyword argument has been removed from the "quantile" function in numpy v2.4 but it is still used in dask.
Example:

"""
>>> import dask.array as da
>>> x = da.random.random((1000, 1000), chunks=(100, 100))
>>> da.quantile(x, 0.5, axis=-1)
Traceback (most recent call last):
  File "<python-input-2>", line 1, in <module>
    da.quantile(x, 0.5, axis=-1)
    ~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/home/antonio/debian/git/forks/dask/dask/array/reductions.py", line 1907, in quantile
    result = a.map_blocks(
        np.quantile,
    ...<8 lines>...
        **kwargs,
    )
File "/home/antonio/debian/git/forks/dask/dask/array/core.py", line 2705, in map_blocks
    return map_blocks(func, self, *args, **kwargs)
File "/home/antonio/debian/git/forks/dask/dask/array/core.py", line 828, in map_blocks
    dtype = apply_infer_dtype(func, args, original_kwargs, "map_blocks")
File "/home/antonio/debian/git/forks/dask/dask/array/core.py", line 494, in apply_infer_dtype
    raise ValueError(msg)
ValueError: `dtype` inference failed in `map_blocks`.

Please specify the dtype explicitly using the `dtype` kwarg.

Original error is below:
------------------------
TypeError("quantile() got an unexpected keyword argument 'interpolation'")

Traceback:
---------
File "/home/antonio/debian/git/forks/dask/dask/array/core.py", line 469, in apply_infer_dtype
    o = func(*args, **kwargs)
"""

Please note that this specific issue has been fixed upstream in https://github.com/dask/dask/pull/12108.



On Tue, 17 Mar 2026 11:46:27 +0100 [email protected] wrote:
Source: satpy
Version: 0.60.0-1
Severity: important
User: [email protected]
Usertags: numpy2.4

Dear maintainer,

According to https://ci.debian.net data, your package satpy has an
autopkgtest regression with numpy.

The following architectures failed: amd64, arm64.

Hopefully relevant excerpt from
https://ci.debian.net/packages/s/satpy/unstable/amd64/69507075/
follows:

635s ==================================== ERRORS 
====================================
635s ___________________ ERROR at setup of test_png_scene_l_mode 
____________________
635s                 f"`dtype` inference failed in `{funcname}`.\n\n"
635s E           ValueError: `dtype` inference failed in `map_blocks`.
635s E 635s E Please specify the dtype explicitly using the `dtype` kwarg. 635s E 635s E Original error is below:
635s E           ------------------------
635s E           TypeError("quantile() got an unexpected keyword argument 
'interpolation'")
635s E 635s E Traceback:
635s E           ---------
635s E             File "/usr/lib/python3/dist-packages/dask/array/core.py", 
line 469, in apply_infer_dtype
635s E               o = func(*args, **kwargs)
635s ___________________ ERROR at setup of test_png_scene_la_mode 
___________________
635s                 f"`dtype` inference failed in `{funcname}`.\n\n"
635s E           ValueError: `dtype` inference failed in `map_blocks`.
635s E 635s E Please specify the dtype explicitly using the `dtype` kwarg. 635s E 635s E Original error is below:
635s E           ------------------------
635s E           TypeError("quantile() got an unexpected keyword argument 
'interpolation'")
635s E 635s E Traceback:
635s E           ---------
635s E             File "/usr/lib/python3/dist-packages/dask/array/core.py", 
line 469, in apply_infer_dtype
635s E               o = func(*args, **kwargs)
635s ___________________ ERROR at setup of test_geotiff_scene_rgb 
___________________
635s                 f"`dtype` inference failed in `{funcname}`.\n\n"
635s E           ValueError: `dtype` inference failed in `map_blocks`.
635s E 635s E Please specify the dtype explicitly using the `dtype` kwarg. 635s E 635s E Original error is below:
635s E           ------------------------
635s E           TypeError("quantile() got an unexpected keyword argument 
'interpolation'")
635s E 635s E Traceback:
635s E           ---------
635s E             File "/usr/lib/python3/dist-packages/dask/array/core.py", 
line 469, in apply_infer_dtype
635s E               o = func(*args, **kwargs)

--
Antonio Valentino

Reply via email to