Bug#1115136: python-xarray: FTBFS: E main:7: error: Unexpected keyword argument "kw" for "pipe" of "DataWithCoords" [call-arg] (diff)

Santiago Vila sanvila at debian.org
Sat Sep 13 17:29:22 BST 2025


Package: src:python-xarray
Version: 2025.08.0-3
Severity: serious
Tags: ftbfs forky sid

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build.

Below you will find how the build ends (probably the most relevant part,
but not necessarily). If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202509/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:python-xarray, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean  --buildsystem=pybuild
   dh_auto_clean -O--buildsystem=pybuild
	pybuild --clean -i python{version} -p 3.13
	rm -rf .pybuild/
	find . -name \*.pyc -exec rm {} \;
   dh_autoreconf_clean -O--buildsystem=pybuild
   dh_clean -O--buildsystem=pybuild
	rm -f debian/debhelper-build-stamp
	rm -rf debian/.debhelper/
	rm -f -- debian/python3-xarray.substvars debian/python-xarray-doc.substvars debian/files
	rm -fr -- debian/python3-xarray/ debian/tmp/ debian/python-xarray-doc/
	find .  \( \( \
		\( -path .\*/.git -o -path .\*/.svn -o -path .\*/.bzr -o -path .\*/.hg -o -path .\*/CVS -o -path .\*/.pc -o -path .\*/_darcs \) -prune -o -type f -a \
	        \( -name '#*#' -o -name '.*~' -o -name '*~' -o -name DEADJOE \
		 -o -name '*.orig' -o -name '*.rej' -o -name '*.bak' \

[... snipped ...]

........................................................................ [ 72%]
........................................................................ [ 72%]
........................................................................ [ 72%]
........................................................................ [ 73%]
........................................................................ [ 73%]
........................................................................ [ 73%]
........................................................................ [ 74%]
........................................................................ [ 74%]
........................................................................ [ 74%]
........................................................................ [ 75%]
........................................................................ [ 75%]
........................................................................ [ 75%]
..sssssss.sssssssssssssssssssssssssssssssssss........................... [ 76%]
........................................................................ [ 76%]
........................................................................ [ 76%]
........................................................................ [ 77%]
........................................................................ [ 77%]
........................................................................ [ 77%]
........................................................................ [ 78%]
........................................................................ [ 78%]
........................................................................ [ 78%]
........................................................................ [ 79%]
........................................................................ [ 79%]
...................ssssssssssssssss..................................... [ 79%]
........................................................................ [ 80%]
........................................................................ [ 80%]
........................................................................ [ 80%]
...............................................sss...................... [ 81%]
.............................ssssssssssssssss........................... [ 81%]
........................................................................ [ 81%]
........................................................................ [ 82%]
.......................................x..xss........................... [ 82%]
........................................................................ [ 82%]
.................................x...s..s..s..s......sssss..x.x.x..xx... [ 82%]
...sssss..x..x..x.x......sssss..x.x..x.x..x......sssss................x. [ 83%]
.x.x.x......sssss.x..x.x..x.x.....sssss...x..x.x.x......sssss.x..x.x.x.. [ 83%]
x......sssss..x..x..x.x..........sssss............sssss..............sss [ 83%]
ss..............sssss.............sssss...........sssss...........sssss. [ 84%]
..........sssss............sssss.............sssss...................... [ 84%]
........................................................................ [ 84%]
......s...s..ss....ss......ss..s.........................ss..s.......... [ 85%]
.....................................................................x.. [ 85%]
...x...........................x...x....x....x....x.........x....x...x.. [ 85%]
.x...x...........x..x....x...x............x.x.x.x...x...x............... [ 86%]
.......x...sssss........x..sssss......s..s..s..s..s..s..s..s..sxx.sx.... [ 86%]
........................x....s.......................................... [ 86%]
....x....s..x....................................x...................... [ 87%]
...........................sssss.................ssssss...s.ssss..ssss.. [ 87%]
...............s.s.sss................s.s.s.s.ssssssss....sss........... [ 87%]
.................sssss........sss.s.sssss.s.............ss.sssss.sss..ss [ 88%]
s.ss.....................................s....s....s....s..s.sssss.s.... [ 88%]
....s......s......s.....s.....s.....s......s.ss.ssss....s....s......s... [ 88%]
..s.................s....sssssssssssssssss....sss.sssssssssss...sssss.ss [ 89%]
sssssssss..ssss.sssssssssss..ssssssss..ssssss.ssssssssss...sss.......... [ 89%]
...................................ss....XX...................ss...XX... [ 89%]
....................ss..........ss...................................... [ 90%]
....................................xxxx..xxx........................... [ 90%]
.......................................................xx.....sssss..... [ 90%]
sssss.....sssss.....sssssssssssssss.....sssss.....sssssxssssss.ssss.ssss [ 91%]
ssssssssssssssss.....sssss.....sssss...............sss...sssxxx....s.... [ 91%]
..s......sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss [ 91%]
sssssssssssssssssssssssssss...sss.....x.ss.s............................ [ 92%]
..........................xx..ssssssssssssssssssss......ss....s......s.. [ 92%]
s.s.s.s.s.s...ss....ss....ss....ss....ss....ss....ss....ss...s..s..s.xxs [ 92%]
.sss.s..s..s..s.xs.sss.s.....ss....ss....ss....ss.x.....ss....ss....ss.. [ 93%]
..ss.......sssss..........sssss......ssss.x...................ssssssssss [ 93%]
.....x.....ssssssssssssssss.ssss.........s.....ssssssssssssss........s.. [ 93%]
...........s.....ssssssssssssss...x.....s..........sssss..........sssss. [ 94%]
......x.x.x..x..x....................................................... [ 94%]
...................................x..................s.ssss.s.ssss..sss [ 94%]
s.ssss.ss............................................................... [ 95%]
..........................s...sssss.s.s..sss.s.......................... [ 95%]
........................................................................ [ 95%]
......................s.sss.sss.s.ssss.................................. [ 96%]
..................................x................x.ssssss....X........ [ 96%]
.x........xxx.ssssss...Xx......ssss..................x.................. [ 96%]
....s..............................s...................ssssssssss.ssssss [ 97%]
ssssssssssssss.ssssssssss.sssssssssssssss............................... [ 97%]
........sss.sssssss..................................................... [ 97%]
........................................................................ [ 98%]
...........................................sssssssssssssssssssssssssssss [ 98%]
sssssssssssssssssssssssssssssssssssssssssss............................. [ 98%]
...................................ssss................................. [ 98%]
........................................................................ [ 99%]
..............................................................x.....xX.. [ 99%]
..........x.X............x.x............x..x............................ [ 99%]
......                                                                   [100%]
=================================== FAILURES ===================================
__________________ test_mypy_pipe_function_unexpected_keyword __________________
[gw1] linux -- Python 3.13.7 /usr/bin/python3.13
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_xarray/build/xarray/tests/test_dataarray_typing.yml:117: 
E   pytest_mypy_plugins.utils.TypecheckAssertionError: Invalid output: 
E   Actual:
E     ../../<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_xarray/build/xarray/core/common: note: "pipe" of "DataWithCoords" defined here (diff)
E     main:7: error: Unexpected keyword argument "kw" for "pipe" of "DataWithCoords"  [call-arg] (diff)
E   Expected:
E     main:7: error: Unexpected keyword argument "kw" for "pipe" of "DataWithCoords"  [call-arg] (diff)
E   Alignment of first line difference:
E     E: main:7: error: Unexpected keyword argument "kw" for "pipe" of "DataWithC...
E     A: ../../<<PKGBUILDDIR>>/.pybuild/cpytho...
E        ^
__________________ test_mypy_pipe_function_unexpected_keyword __________________
[gw1] linux -- Python 3.13.7 /usr/bin/python3.13
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_xarray/build/xarray/tests/test_dataset_typing.yml:117: 
E   pytest_mypy_plugins.utils.TypecheckAssertionError: Invalid output: 
E   Actual:
E     ../../<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_xarray/build/xarray/core/common: note: "pipe" of "DataWithCoords" defined here (diff)
E     main:7: error: Unexpected keyword argument "kw" for "pipe" of "DataWithCoords"  [call-arg] (diff)
E   Expected:
E     main:7: error: Unexpected keyword argument "kw" for "pipe" of "DataWithCoords"  [call-arg] (diff)
E   Alignment of first line difference:
E     E: main:7: error: Unexpected keyword argument "kw" for "pipe" of "DataWithC...
E     A: ../../<<PKGBUILDDIR>>/.pybuild/cpytho...
E        ^
__________________ test_mypy_pipe_function_unexpected_keyword __________________
[gw1] linux -- Python 3.13.7 /usr/bin/python3.13
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_xarray/build/xarray/tests/test_datatree_typing.yml:117: 
E   pytest_mypy_plugins.utils.TypecheckAssertionError: Invalid output: 
E   Actual:
E     ../../<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_xarray/build/xarray/core/datatree: note: "pipe" of "DataTree" defined here (diff)
E     main:7: error: Unexpected keyword argument "kw" for "pipe" of "DataTree"  [call-arg] (diff)
E   Expected:
E     main:7: error: Unexpected keyword argument "kw" for "pipe" of "DataTree"  [call-arg] (diff)
E   Alignment of first line difference:
E     E: main:7: error: Unexpected keyword argument "kw" for "pipe" of "DataTree"...
E     A: ../../<<PKGBUILDDIR>>/.pybuild/cpytho...
E        ^
=============================== warnings summary ===============================
xarray/tests/test_conventions.py::TestEncodeCFVariable::test_missing_fillvalue
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_xarray/build/xarray/core/duck_array_ops.py:250: RuntimeWarning: invalid value encountered in cast
    return data.astype(dtype, **kwargs)

xarray/tests/test_dask.py: 12 warnings
xarray/tests/test_units.py: 10 warnings
  /usr/lib/python3/dist-packages/numpy/_core/numeric.py:442: RuntimeWarning: invalid value encountered in cast
    multiarray.copyto(res, fill_value, casting='unsafe')

xarray/tests/test_duck_array_wrapping.py::TestDataArrayMethods::test_astype[pint]
  /usr/lib/python3/dist-packages/pint/facets/numpy/quantity.py:88: RuntimeWarning: invalid value encountered in cast
    value = func(*args, **kwargs)

xarray/tests/test_duck_array_ops.py: 16 warnings
  /usr/lib/python3/dist-packages/dask/array/core.py:5083: RuntimeWarning: overflow encountered in scalar add
    result = function(*args, **kwargs)

xarray/tests/test_duck_array_ops.py::test_cftime_datetime_mean[True]
  /usr/lib/python3/dist-packages/dask/array/core.py:5083: DeprecationWarning: Bitwise inversion '~' on bool is deprecated and will be removed in Python 3.16. This returns the bitwise inversion of the underlying int object and is usually not what you expect from negating a bool. Use the 'not' operator for boolean negation or ~int(x) if you really want the bitwise inversion of the underlying int.
    result = function(*args, **kwargs)

xarray/tests/test_strategies.py::TestReduction::test_mean
xarray/tests/test_strategies.py::TestReduction::test_mean
  /usr/lib/python3/dist-packages/numpy/_core/fromnumeric.py:86: RuntimeWarning: invalid value encountered in reduce
    return ufunc.reduce(obj, axis, dtype, out, **passkwargs)

xarray/tests/test_strategies.py::TestReduction::test_mean
xarray/tests/test_strategies.py::TestReduction::test_mean
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_xarray/build/xarray/tests/test_strategies.py:278: RuntimeWarning: Mean of empty slice
    expected = np.nanmean(var.data, axis=reduction_axes)

xarray/tests/test_units.py::TestDataArray::test_missing_value_filling[int64-method_ffill]
xarray/tests/test_units.py::TestDataArray::test_missing_value_filling[int64-method_bfill]
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_xarray/build/xarray/tests/test_units.py:2784: RuntimeWarning: invalid value encountered in cast
    np.array([1.4, np.nan, 2.3, np.nan, np.nan, 9.1]).astype(dtype)

xarray/tests/test_units.py: 15 warnings
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_xarray/build/xarray/tests/test_units.py:2821: RuntimeWarning: invalid value encountered in cast
    np.array([1.4, np.nan, 2.3, np.nan, np.nan, 9.1]).astype(dtype)

xarray/tests/test_units.py::TestDataArray::test_dropna[int64]
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_xarray/build/xarray/tests/test_units.py:2849: RuntimeWarning: invalid value encountered in cast
    np.array([1.4, np.nan, 2.3, np.nan, np.nan, 9.1]).astype(dtype)

xarray/tests/test_units.py::TestDataArray::test_isin[int64-no_unit]
xarray/tests/test_units.py::TestDataArray::test_isin[int64-dimensionless]
xarray/tests/test_units.py::TestDataArray::test_isin[int64-incompatible_unit]
xarray/tests/test_units.py::TestDataArray::test_isin[int64-compatible_unit]
xarray/tests/test_units.py::TestDataArray::test_isin[int64-identical_unit]
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_xarray/build/xarray/tests/test_units.py:2874: RuntimeWarning: invalid value encountered in cast
    np.array([1.4, np.nan, 2.3, np.nan, np.nan, 9.1]).astype(dtype)

xarray/tests/test_units.py::TestDataArray::test_isin[int64-no_unit]
xarray/tests/test_units.py::TestDataArray::test_isin[int64-dimensionless]
xarray/tests/test_units.py::TestDataArray::test_isin[int64-incompatible_unit]
xarray/tests/test_units.py::TestDataArray::test_isin[int64-compatible_unit]
xarray/tests/test_units.py::TestDataArray::test_isin[int64-identical_unit]
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_xarray/build/xarray/tests/test_units.py:2879: RuntimeWarning: invalid value encountered in cast
    raw_values = np.array([1.4, np.nan, 2.3]).astype(dtype)

xarray/tests/test_units.py::TestDataset::test_missing_value_filling[int64-method_ffill]
xarray/tests/test_units.py::TestDataset::test_missing_value_filling[int64-method_bfill]
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_xarray/build/xarray/tests/test_units.py:4270: RuntimeWarning: invalid value encountered in cast
    np.array([1.4, np.nan, 2.3, np.nan, np.nan, 9.1]).astype(dtype)

xarray/tests/test_units.py::TestDataset::test_missing_value_filling[int64-method_ffill]
xarray/tests/test_units.py::TestDataset::test_missing_value_filling[int64-method_bfill]
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_xarray/build/xarray/tests/test_units.py:4274: RuntimeWarning: invalid value encountered in cast
    np.array([4.3, 9.8, 7.5, np.nan, 8.2, np.nan]).astype(dtype)

xarray/tests/test_units.py: 15 warnings
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_xarray/build/xarray/tests/test_units.py:4313: RuntimeWarning: invalid value encountered in cast
    np.array([1.4, np.nan, 2.3, np.nan, np.nan, 9.1]).astype(dtype)

xarray/tests/test_units.py: 15 warnings
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_xarray/build/xarray/tests/test_units.py:4317: RuntimeWarning: invalid value encountered in cast
    np.array([4.3, 9.8, 7.5, np.nan, 8.2, np.nan]).astype(dtype)

xarray/tests/test_units.py::TestDataset::test_dropna[int64]
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_xarray/build/xarray/tests/test_units.py:4343: RuntimeWarning: invalid value encountered in cast
    np.array([1.4, np.nan, 2.3, np.nan, np.nan, 9.1]).astype(dtype)

xarray/tests/test_units.py::TestDataset::test_dropna[int64]
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_xarray/build/xarray/tests/test_units.py:4347: RuntimeWarning: invalid value encountered in cast
    np.array([4.3, 9.8, 7.5, np.nan, 8.2, np.nan]).astype(dtype)

xarray/tests/test_units.py::TestDataset::test_isin[int64-no_unit]
xarray/tests/test_units.py::TestDataset::test_isin[int64-dimensionless]
xarray/tests/test_units.py::TestDataset::test_isin[int64-incompatible_unit]
xarray/tests/test_units.py::TestDataset::test_isin[int64-compatible_unit]
xarray/tests/test_units.py::TestDataset::test_isin[int64-same_unit]
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_xarray/build/xarray/tests/test_units.py:4371: RuntimeWarning: invalid value encountered in cast
    np.array([1.4, np.nan, 2.3, np.nan, np.nan, 9.1]).astype(dtype)

xarray/tests/test_units.py::TestDataset::test_isin[int64-no_unit]
xarray/tests/test_units.py::TestDataset::test_isin[int64-dimensionless]
xarray/tests/test_units.py::TestDataset::test_isin[int64-incompatible_unit]
xarray/tests/test_units.py::TestDataset::test_isin[int64-compatible_unit]
xarray/tests/test_units.py::TestDataset::test_isin[int64-same_unit]
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_xarray/build/xarray/tests/test_units.py:4375: RuntimeWarning: invalid value encountered in cast
    np.array([4.3, 9.8, 7.5, np.nan, 8.2, np.nan]).astype(dtype)

xarray/tests/test_units.py::TestDataset::test_isin[int64-no_unit]
xarray/tests/test_units.py::TestDataset::test_isin[int64-dimensionless]
xarray/tests/test_units.py::TestDataset::test_isin[int64-incompatible_unit]
xarray/tests/test_units.py::TestDataset::test_isin[int64-compatible_unit]
xarray/tests/test_units.py::TestDataset::test_isin[int64-same_unit]
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_xarray/build/xarray/tests/test_units.py:4380: RuntimeWarning: invalid value encountered in cast
    raw_values = np.array([1.4, np.nan, 2.3]).astype(dtype)

xarray/tests/test_units.py::TestDataset::test_interpolate_na[int64]
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_xarray/build/xarray/tests/test_units.py:4456: RuntimeWarning: invalid value encountered in cast
    np.array([1.4, np.nan, 2.3, np.nan, np.nan, 9.1]).astype(dtype)

xarray/tests/test_units.py::TestDataset::test_interpolate_na[int64]
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_xarray/build/xarray/tests/test_units.py:4460: RuntimeWarning: invalid value encountered in cast
    np.array([4.3, 9.8, 7.5, np.nan, 8.2, np.nan]).astype(dtype)

xarray/tests/test_units.py::TestDataset::test_combine_first[int64-data-no_unit]
xarray/tests/test_units.py::TestDataset::test_combine_first[int64-data-dimensionless]
xarray/tests/test_units.py::TestDataset::test_combine_first[int64-data-incompatible_unit]
xarray/tests/test_units.py::TestDataset::test_combine_first[int64-data-compatible_unit]
xarray/tests/test_units.py::TestDataset::test_combine_first[int64-data-same_unit]
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_xarray/build/xarray/tests/test_units.py:4505: RuntimeWarning: invalid value encountered in cast
    np.array([1.4, np.nan, 2.3, np.nan, np.nan, 9.1]).astype(dtype) * data_unit

xarray/tests/test_units.py::TestDataset::test_combine_first[int64-data-no_unit]
xarray/tests/test_units.py::TestDataset::test_combine_first[int64-data-dimensionless]
xarray/tests/test_units.py::TestDataset::test_combine_first[int64-data-incompatible_unit]
xarray/tests/test_units.py::TestDataset::test_combine_first[int64-data-compatible_unit]
xarray/tests/test_units.py::TestDataset::test_combine_first[int64-data-same_unit]
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_xarray/build/xarray/tests/test_units.py:4508: RuntimeWarning: invalid value encountered in cast
    np.array([4.3, 9.8, 7.5, np.nan, 8.2, np.nan]).astype(dtype) * data_unit

xarray/tests/test_weighted.py::test_weighted_quantile_3D[True-True-q1-a]
xarray/tests/test_weighted.py::test_weighted_quantile_3D[True-True-q1-b]
  /usr/lib/python3/dist-packages/numpy/lib/_nanfunctions_impl.py:1620: RuntimeWarning: All-NaN slice encountered
    return fnb._ureduce(a,

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED xarray/tests/test_dataarray_typing.yml::test_mypy_pipe_function_unexpected_keyword
FAILED xarray/tests/test_dataset_typing.yml::test_mypy_pipe_function_unexpected_keyword
FAILED xarray/tests/test_datatree_typing.yml::test_mypy_pipe_function_unexpected_keyword
= 3 failed, 19104 passed, 2638 skipped, 199 xfailed, 98 xpassed, 138 warnings in 168.67s (0:02:48) =
E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_xarray/build; python3.13 -m pytest -n2 --deselect=xarray/tests/test_weighted.py::test_weighted_operations_keep_attr --deselect=xarray/tests/test_variable.py::TestVariable::test_reduce_keepdims --deselect=xarray/tests/test_backends.py::test_zarr_region_chunk_partial_offset --deselect=xarray/tests/test_backends.py::test_chunk_encoding_with_dask --pyargs xarray
	rm -fr -- /tmp/dh-xdg-rundir-KINz0UmW
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.13 returned exit code 13
make: *** [debian/rules:52: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------



More information about the debian-science-maintainers mailing list