#1131056 flox: autopkgtest regression with NumPy 2.4

Package:
src:flox
Source:
src:flox
Submitter:
Date:
2026-06-08 06:05:06 UTC
Severity:
normal
Tags:
#1131056#5
Date:
2026-03-17 10:45:57 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.

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

155s tests/test_core.py:1550 test_dtype[flox-float32-mode] - ValueError: …
155s tests/test_core.py:1550 test_dtype[flox-float64-mode] - ValueError: …
241s tests/test_core.py:1550 test_dtype[numpy-float32-mode] - ValueError:…
241s tests/test_core.py:1550 test_dtype[numpy-float64-mode] - ValueError:…
263s =================================== FAILURES ===================================
263s TypeError: only 0-dimensional arrays can be converted to Python scalars
263s E   ValueError: setting an array element with a sequence.
263s TypeError: only 0-dimensional arrays can be converted to Python scalars
263s E   ValueError: setting an array element with a sequence.
263s TypeError: only 0-dimensional arrays can be converted to Python scalars
263s E   ValueError: setting an array element with a sequence.
263s TypeError: only 0-dimensional arrays can be converted to Python scalars
263s E   ValueError: setting an array element with a sequence.
263s TypeError: only 0-dimensional arrays can be converted to Python scalars
263s E   ValueError: setting an array element with a sequence.
263s TypeError: only 0-dimensional arrays can be converted to Python scalars
263s E   ValueError: setting an array element with a sequence.
263s TypeError: only 0-dimensional arrays can be converted to Python scalars
263s E   ValueError: setting an array element with a sequence.
263s TypeError: only 0-dimensional arrays can be converted to Python scalars
263s E   ValueError: setting an array element with a sequence.
263s TypeError: only 0-dimensional arrays can be converted to Python scalars
263s E   ValueError: setting an array element with a sequence.
263s TypeError: only 0-dimensional arrays can be converted to Python scalars
263s E   ValueError: setting an array element with a sequence.
263s TypeError: only 0-dimensional arrays can be converted to Python scalars
263s E   ValueError: setting an array element with a sequence.
263s TypeError: only 0-dimensional arrays can be converted to Python scalars
263s E   ValueError: setting an array element with a sequence.
263s E   ValueError: `dtype` inference failed in `map_blocks`.
263s E
263s E   Please specify the dtype explicitly using the `dtype` kwarg.
263s E
263s E   Original error is below:
263s E   ------------------------
263s E   TypeError("quantile() got an unexpected keyword argument 'interpolation'")
263s E
263s E   Traceback:
263s E   ---------
263s E     File "/usr/lib/python3/dist-packages/dask/array/core.py", line 469, in apply_infer_dtype
263s E       o = func(*args, **kwargs)
263s E   ValueError: `dtype` inference failed in `map_blocks`.
263s E
263s E   Please specify the dtype explicitly using the `dtype` kwarg.
263s E
263s E   Original error is below:
263s E   ------------------------
263s E   TypeError("quantile() got an unexpected keyword argument 'interpolation'")
263s E
263s E   Traceback:
263s E   ---------
263s E     File "/usr/lib/python3/dist-packages/dask/array/core.py", line 469, in apply_infer_dtype
263s E       o = func(*args, **kwargs)
263s E   ValueError: `dtype` inference failed in `map_blocks`.
263s E
263s E   Please specify the dtype explicitly using the `dtype` kwarg.
263s E
263s E   Original error is below:
263s E   ------------------------
263s E   TypeError("quantile() got an unexpected keyword argument 'interpolation'")
263s E
263s E   Traceback:
263s E   ---------
263s E     File "/usr/lib/python3/dist-packages/dask/array/core.py", line 469, in apply_infer_dtype
263s E       o = func(*args, **kwargs)
263s E   ValueError: `dtype` inference failed in `map_blocks`.
263s E
263s E   Please specify the dtype explicitly using the `dtype` kwarg.
263s E
263s E   Original error is below:
263s E   ------------------------
263s E   TypeError("quantile() got an unexpected keyword argument 'interpolation'")
263s E
263s E   Traceback:
263s E   ---------
263s E     File "/usr/lib/python3/dist-packages/dask/array/core.py", line 469, in apply_infer_dtype
263s E       o = func(*args, **kwargs)
263s E   ValueError: `dtype` inference failed in `map_blocks`.
263s E
263s E   Please specify the dtype explicitly using the `dtype` kwarg.
263s E
263s E   Original error is below:
263s E   ------------------------
263s E   TypeError("quantile() got an unexpected keyword argument 'interpolation'")
263s E
263s E   Traceback:
263s E   ---------
263s E     File "/usr/lib/python3/dist-packages/dask/array/core.py", line 469, in apply_infer_dtype
263s E       o = func(*args, **kwargs)
263s E   ValueError: `dtype` inference failed in `map_blocks`.
263s E
263s E   Please specify the dtype explicitly using the `dtype` kwarg.
263s E
263s E   Original error is below:
263s E   ------------------------
263s E   TypeError("quantile() got an unexpected keyword argument 'interpolation'")
263s E
263s E   Traceback:
263s E   ---------
263s E     File "/usr/lib/python3/dist-packages/dask/array/core.py", line 469, in apply_infer_dtype
263s E       o = func(*args, **kwargs)
263s         18 failed
267s E: pybuild pybuild:485: test: plugin pyproject failed with: exit code=1: cd /tmp/autopkgtest-lxc.bmdb72z9/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
330s tests/test_core.py:1550 test_dtype[flox-float32-mode] - ValueError: …
331s tests/test_core.py:1550 test_dtype[flox-float64-mode] - ValueError: …
420s tests/test_core.py:1550 test_dtype[numpy-float32-mode] - ValueError:…
420s tests/test_core.py:1550 test_dtype[numpy-float64-mode] - ValueError:…
436s =================================== FAILURES ===================================
436s TypeError: only 0-dimensional arrays can be converted to Python scalars
436s E   ValueError: setting an array element with a sequence.
436s TypeError: only 0-dimensional arrays can be converted to Python scalars
436s E   ValueError: setting an array element with a sequence.
436s TypeError: only 0-dimensional arrays can be converted to Python scalars
436s E   ValueError: setting an array element with a sequence.
436s TypeError: only 0-dimensional arrays can be converted to Python scalars
436s E   ValueError: setting an array element with a sequence.
436s TypeError: only 0-dimensional arrays can be converted to Python scalars
436s E   ValueError: setting an array element with a sequence.
436s TypeError: only 0-dimensional arrays can be converted to Python scalars
436s E   ValueError: setting an array element with a sequence.
436s TypeError: only 0-dimensional arrays can be converted to Python scalars
436s E   ValueError: setting an array element with a sequence.
436s TypeError: only 0-dimensional arrays can be converted to Python scalars
436s E   ValueError: setting an array element with a sequence.
436s TypeError: only 0-dimensional arrays can be converted to Python scalars
436s E   ValueError: setting an array element with a sequence.
436s TypeError: only 0-dimensional arrays can be converted to Python scalars
436s E   ValueError: setting an array element with a sequence.
436s TypeError: only 0-dimensional arrays can be converted to Python scalars
436s E   ValueError: setting an array element with a sequence.
436s TypeError: only 0-dimensional arrays can be converted to Python scalars
436s E   ValueError: setting an array element with a sequence.
436s E   ValueError: `dtype` inference failed in `map_blocks`.
436s E
436s E   Please specify the dtype explicitly using the `dtype` kwarg.
436s E
436s E   Original error is below:
436s E   ------------------------
436s E   TypeError("quantile() got an unexpected keyword argument 'interpolation'")
436s E
436s E   Traceback:
436s E   ---------
436s E     File "/usr/lib/python3/dist-packages/dask/array/core.py", line 469, in apply_infer_dtype
436s E       o = func(*args, **kwargs)
436s E   ValueError: `dtype` inference failed in `map_blocks`.
436s E
436s E   Please specify the dtype explicitly using the `dtype` kwarg.
436s E
436s E   Original error is below:
436s E   ------------------------
436s E   TypeError("quantile() got an unexpected keyword argument 'interpolation'")
436s E
436s E   Traceback:
436s E   ---------
436s E     File "/usr/lib/python3/dist-packages/dask/array/core.py", line 469, in apply_infer_dtype
436s E       o = func(*args, **kwargs)
436s E   ValueError: `dtype` inference failed in `map_blocks`.
436s E
436s E   Please specify the dtype explicitly using the `dtype` kwarg.
436s E
436s E   Original error is below:
436s E   ------------------------
436s E   TypeError("quantile() got an unexpected keyword argument 'interpolation'")
436s E
436s E   Traceback:
436s E   ---------
436s E     File "/usr/lib/python3/dist-packages/dask/array/core.py", line 469, in apply_infer_dtype
436s E       o = func(*args, **kwargs)
436s E   ValueError: `dtype` inference failed in `map_blocks`.
436s E
436s E   Please specify the dtype explicitly using the `dtype` kwarg.
436s E
436s E   Original error is below:
436s E   ------------------------
436s E   TypeError("quantile() got an unexpected keyword argument 'interpolation'")
436s E
436s E   Traceback:
436s E   ---------
436s E     File "/usr/lib/python3/dist-packages/dask/array/core.py", line 469, in apply_infer_dtype
436s E       o = func(*args, **kwargs)
436s E   ValueError: `dtype` inference failed in `map_blocks`.
436s E
436s E   Please specify the dtype explicitly using the `dtype` kwarg.
436s E
436s E   Original error is below:
436s E   ------------------------
436s E   TypeError("quantile() got an unexpected keyword argument 'interpolation'")
436s E
436s E   Traceback:
436s E   ---------
436s E     File "/usr/lib/python3/dist-packages/dask/array/core.py", line 469, in apply_infer_dtype
436s E       o = func(*args, **kwargs)
436s E   ValueError: `dtype` inference failed in `map_blocks`.
436s E
436s E   Please specify the dtype explicitly using the `dtype` kwarg.
436s E
436s E   Original error is below:
436s E   ------------------------
436s E   TypeError("quantile() got an unexpected keyword argument 'interpolation'")
436s E
436s E   Traceback:
436s E   ---------
436s E     File "/usr/lib/python3/dist-packages/dask/array/core.py", line 469, in apply_infer_dtype
436s E       o = func(*args, **kwargs)
436s         18 failed
439s E: pybuild pybuild:485: test: plugin pyproject failed with: exit code=1: cd /tmp/autopkgtest-lxc.bmdb72z9/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
439s pybuild-autopkgtest: error: pybuild --autopkgtest --test-pytest -i python{version} -p "3.14 3.13" --parallel= returned exit code 13
439s pybuild-autopkgtest: error: /tmp/g3587ixc6O/run pybuild-autopkgtest returned exit code 2
439s pybuild-autopkgtest  FAIL non-zero exit status 25
439s pybuild-autopkgtest  FAIL non-zero exit status 25

#1131056#20
Date:
2026-05-27 21:04:02 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.


kind regards