#1139201 flox: autopkgtest regression with NumPy 2.4

Package:
src:dask
Source:
src:dask
Submitter:
Date:
2026-06-08 06:05:05 UTC
Severity:
normal
Tags:
#1139201#5
Date:
2026-06-07 06:20:43 UTC
From:
To:
Dear maintainer,

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

The following architectures failed: amd64, arm64, loong64, ppc64el,
riscv64, s390x.

Hopefully relevant excerpt from
https://ci.debian.net/packages/f/flox/testing/amd64/71828691/ follows:

144s tests/test_core.py:1550 test_dtype[flox-float32-mode] - ValueError: …
145s tests/test_core.py:1550 test_dtype[flox-float64-mode] - ValueError: …
194s tests/test_core.py:1550 test_dtype[numpy-float32-mode] - ValueError:…
194s tests/test_core.py:1550 test_dtype[numpy-float64-mode] - ValueError:…
204s =================================== FAILURES ===================================
204s TypeError: only 0-dimensional arrays can be converted to Python scalars
204s E   ValueError: setting an array element with a sequence.
204s TypeError: only 0-dimensional arrays can be converted to Python scalars
204s E   ValueError: setting an array element with a sequence.
204s TypeError: only 0-dimensional arrays can be converted to Python scalars
204s E   ValueError: setting an array element with a sequence.
204s TypeError: only 0-dimensional arrays can be converted to Python scalars
204s E   ValueError: setting an array element with a sequence.
204s TypeError: only 0-dimensional arrays can be converted to Python scalars
204s E   ValueError: setting an array element with a sequence.
204s TypeError: only 0-dimensional arrays can be converted to Python scalars
204s E   ValueError: setting an array element with a sequence.
204s TypeError: only 0-dimensional arrays can be converted to Python scalars
204s E   ValueError: setting an array element with a sequence.
204s TypeError: only 0-dimensional arrays can be converted to Python scalars
204s E   ValueError: setting an array element with a sequence.
204s TypeError: only 0-dimensional arrays can be converted to Python scalars
204s E   ValueError: setting an array element with a sequence.
204s TypeError: only 0-dimensional arrays can be converted to Python scalars
204s E   ValueError: setting an array element with a sequence.
204s TypeError: only 0-dimensional arrays can be converted to Python scalars
204s E   ValueError: setting an array element with a sequence.
204s TypeError: only 0-dimensional arrays can be converted to Python scalars
204s E   ValueError: setting an array element with a sequence.
204s E   ValueError: `dtype` inference failed in `map_blocks`.
204s E
204s E   Please specify the dtype explicitly using the `dtype` kwarg.
204s E
204s E   Original error is below:
204s E   ------------------------
204s E   TypeError("quantile() got an unexpected keyword argument 'interpolation'")
204s E
204s E   Traceback:
204s E   ---------
204s E     File "/usr/lib/python3/dist-packages/dask/array/core.py", line 469, in apply_infer_dtype
204s E       o = func(*args, **kwargs)
204s E   ValueError: `dtype` inference failed in `map_blocks`.
204s E
204s E   Please specify the dtype explicitly using the `dtype` kwarg.
204s E
204s E   Original error is below:
204s E   ------------------------
204s E   TypeError("quantile() got an unexpected keyword argument 'interpolation'")
204s E
204s E   Traceback:
204s E   ---------
204s E     File "/usr/lib/python3/dist-packages/dask/array/core.py", line 469, in apply_infer_dtype
204s E       o = func(*args, **kwargs)
204s E   ValueError: `dtype` inference failed in `map_blocks`.
204s E
204s E   Please specify the dtype explicitly using the `dtype` kwarg.
204s E
204s E   Original error is below:
204s E   ------------------------
204s E   TypeError("quantile() got an unexpected keyword argument 'interpolation'")
204s E
204s E   Traceback:
204s E   ---------
204s E     File "/usr/lib/python3/dist-packages/dask/array/core.py", line 469, in apply_infer_dtype
204s E       o = func(*args, **kwargs)
204s E   ValueError: `dtype` inference failed in `map_blocks`.
204s E
204s E   Please specify the dtype explicitly using the `dtype` kwarg.
204s E
204s E   Original error is below:
204s E   ------------------------
204s E   TypeError("quantile() got an unexpected keyword argument 'interpolation'")
204s E
204s E   Traceback:
204s E   ---------
204s E     File "/usr/lib/python3/dist-packages/dask/array/core.py", line 469, in apply_infer_dtype
204s E       o = func(*args, **kwargs)
204s E   ValueError: `dtype` inference failed in `map_blocks`.
204s E
204s E   Please specify the dtype explicitly using the `dtype` kwarg.
204s E
204s E   Original error is below:
204s E   ------------------------
204s E   TypeError("quantile() got an unexpected keyword argument 'interpolation'")
204s E
204s E   Traceback:
204s E   ---------
204s E     File "/usr/lib/python3/dist-packages/dask/array/core.py", line 469, in apply_infer_dtype
204s E       o = func(*args, **kwargs)
204s E   ValueError: `dtype` inference failed in `map_blocks`.
204s E
204s E   Please specify the dtype explicitly using the `dtype` kwarg.
204s E
204s E   Original error is below:
204s E   ------------------------
204s E   TypeError("quantile() got an unexpected keyword argument 'interpolation'")
204s E
204s E   Traceback:
204s E   ---------
204s E     File "/usr/lib/python3/dist-packages/dask/array/core.py", line 469, in apply_infer_dtype
204s E       o = func(*args, **kwargs)
204s         18 failed
206s E: pybuild pybuild:485: test: plugin pyproject failed with: exit code=1: cd /tmp/autopkgtest-lxc.vq60p978/downtmp/autopkgtest_tmp/build; python3.14 -m pytest --hypothesis-profile=ci --ignore={dir}/tests/test_asv.py -k "not test_groupby_reduce_all" {dir}/tests
245s tests/test_core.py:1550 test_dtype[flox-float32-mode] - ValueError: …
245s tests/test_core.py:1550 test_dtype[flox-float64-mode] - ValueError: …
294s tests/test_core.py:1550 test_dtype[numpy-float32-mode] - ValueError:…
294s tests/test_core.py:1550 test_dtype[numpy-float64-mode] - ValueError:…
304s =================================== FAILURES ===================================
304s TypeError: only 0-dimensional arrays can be converted to Python scalars
304s E   ValueError: setting an array element with a sequence.
304s TypeError: only 0-dimensional arrays can be converted to Python scalars
304s E   ValueError: setting an array element with a sequence.
304s TypeError: only 0-dimensional arrays can be converted to Python scalars
304s E   ValueError: setting an array element with a sequence.
304s TypeError: only 0-dimensional arrays can be converted to Python scalars
304s E   ValueError: setting an array element with a sequence.
304s TypeError: only 0-dimensional arrays can be converted to Python scalars
304s E   ValueError: setting an array element with a sequence.
304s TypeError: only 0-dimensional arrays can be converted to Python scalars
304s E   ValueError: setting an array element with a sequence.
304s TypeError: only 0-dimensional arrays can be converted to Python scalars
304s E   ValueError: setting an array element with a sequence.
304s TypeError: only 0-dimensional arrays can be converted to Python scalars
304s E   ValueError: setting an array element with a sequence.
304s TypeError: only 0-dimensional arrays can be converted to Python scalars
304s E   ValueError: setting an array element with a sequence.
304s TypeError: only 0-dimensional arrays can be converted to Python scalars
304s E   ValueError: setting an array element with a sequence.
304s TypeError: only 0-dimensional arrays can be converted to Python scalars
304s E   ValueError: setting an array element with a sequence.
304s TypeError: only 0-dimensional arrays can be converted to Python scalars
304s E   ValueError: setting an array element with a sequence.
304s E   ValueError: `dtype` inference failed in `map_blocks`.
304s E
304s E   Please specify the dtype explicitly using the `dtype` kwarg.
304s E
304s E   Original error is below:
304s E   ------------------------
304s E   TypeError("quantile() got an unexpected keyword argument 'interpolation'")
304s E
304s E   Traceback:
304s E   ---------
304s E     File "/usr/lib/python3/dist-packages/dask/array/core.py", line 469, in apply_infer_dtype
304s E       o = func(*args, **kwargs)
304s E   ValueError: `dtype` inference failed in `map_blocks`.
304s E
304s E   Please specify the dtype explicitly using the `dtype` kwarg.
304s E
304s E   Original error is below:
304s E   ------------------------
304s E   TypeError("quantile() got an unexpected keyword argument 'interpolation'")
304s E
304s E   Traceback:
304s E   ---------
304s E     File "/usr/lib/python3/dist-packages/dask/array/core.py", line 469, in apply_infer_dtype
304s E       o = func(*args, **kwargs)
304s E   ValueError: `dtype` inference failed in `map_blocks`.
304s E
304s E   Please specify the dtype explicitly using the `dtype` kwarg.
304s E
304s E   Original error is below:
304s E   ------------------------
304s E   TypeError("quantile() got an unexpected keyword argument 'interpolation'")
304s E
304s E   Traceback:
304s E   ---------
304s E     File "/usr/lib/python3/dist-packages/dask/array/core.py", line 469, in apply_infer_dtype
304s E       o = func(*args, **kwargs)
304s E   ValueError: `dtype` inference failed in `map_blocks`.
304s E
304s E   Please specify the dtype explicitly using the `dtype` kwarg.
304s E
304s E   Original error is below:
304s E   ------------------------
304s E   TypeError("quantile() got an unexpected keyword argument 'interpolation'")
304s E
304s E   Traceback:
304s E   ---------
304s E     File "/usr/lib/python3/dist-packages/dask/array/core.py", line 469, in apply_infer_dtype
304s E       o = func(*args, **kwargs)
304s E   ValueError: `dtype` inference failed in `map_blocks`.
304s E
304s E   Please specify the dtype explicitly using the `dtype` kwarg.
304s E
304s E   Original error is below:
304s E   ------------------------
304s E   TypeError("quantile() got an unexpected keyword argument 'interpolation'")
304s E
304s E   Traceback:
304s E   ---------
304s E     File "/usr/lib/python3/dist-packages/dask/array/core.py", line 469, in apply_infer_dtype
304s E       o = func(*args, **kwargs)
304s E   ValueError: `dtype` inference failed in `map_blocks`.
304s E
304s E   Please specify the dtype explicitly using the `dtype` kwarg.
304s E
304s E   Original error is below:
304s E   ------------------------
304s E   TypeError("quantile() got an unexpected keyword argument 'interpolation'")
304s E
304s E   Traceback:
304s E   ---------
304s E     File "/usr/lib/python3/dist-packages/dask/array/core.py", line 469, in apply_infer_dtype
304s E       o = func(*args, **kwargs)
304s         18 failed
305s E: pybuild pybuild:485: test: plugin pyproject failed with: exit code=1: cd /tmp/autopkgtest-lxc.vq60p978/downtmp/autopkgtest_tmp/build; python3.13 -m pytest --hypothesis-profile=ci --ignore={dir}/tests/test_asv.py -k "not test_groupby_reduce_all" {dir}/tests
305s pybuild-autopkgtest: error: pybuild --autopkgtest --test-pytest -i python{version} -p "3.14 3.13" --parallel= returned exit code 13
305s pybuild-autopkgtest: error: /tmp/K67fAp8ylG/run pybuild-autopkgtest returned exit code 2
306s pybuild-autopkgtest  FAIL non-zero exit status 25
306s pybuild-autopkgtest  FAIL non-zero exit status 25

#1139201#18
Date:
2026-06-07 07:36:11 UTC
From:
To:
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 "(nan)quantile" function in numpy v2.4 but it is still
used in dask.

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

This issue is a duplicate of #1131087.

kind regards

#1139201#23
Date:
2026-06-07 07:28:43 UTC
From:
To:
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.

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

This issue is a duplicate of #1131056.

kind regards