Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 931057

Summary: dev-python/xarray-2024.3.0 fails tests: ModuleNotFoundError: No module named 'xarray.datatree_'
Product: Gentoo Linux Reporter: matoro <matoro_gentoo>
Component: Current packagesAssignee: Python Gentoo Team <python>
Status: RESOLVED FIXED    
Severity: normal CC: matoro_gentoo
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 929918    
Attachments: build.log and emerge --info

Description matoro archtester 2024-05-01 16:12:21 UTC
* python3_11: running distutils-r1_run_phase python_test
python3.11 -m pytest -vv -ra -l -Wdefault -Werror::pytest.PytestUnhandledCoroutineWarning --color=yes -o console_output_style=count -o tmp_path_retention_count=0 -o tmp_path_retention_policy=failed -p xdist -n 8 --dist=worksteal --deselect xarray/tests/test_backends.py::test_no_warning_from_dask_effective_get --deselect xarray/tests/test_backends.py::test_open_mfdataset_manyfiles[netcdf4-20-True-5-5] --deselect xarray/tests/test_backends.py::test_open_mfdataset_manyfiles[netcdf4-20-True-5-None] --deselect xarray/tests/test_backends.py::test_open_mfdataset_manyfiles[netcdf4-20-True-None-5] --deselect xarray/tests/test_backends.py::test_open_mfdataset_manyfiles[netcdf4-20-True-None-None] --deselect xarray/tests/test_backends.py::TestDask::test_save_mfdataset_compute_false_roundtrip --deselect xarray/tests/test_backends.py::TestNetCDF4Data --deselect xarray/tests/test_backends.py::TestNetCDF4ViaDaskData --deselect xarray/tests/test_backends.py::TestDask::test_dask_roundtrip --deselect xarray/tests/test_dask.py::TestToDaskDataFrame::test_to_dask_dataframe_2D --deselect xarray/tests/test_dask.py::TestToDaskDataFrame::test_to_dask_dataframe_not_daskarray --ignore xarray/tests/datatree
ImportError while loading conftest '/var/tmp/portage/dev-python/xarray-2024.3.0/work/xarray-2024.3.0/xarray/tests/conftest.py'.
xarray/tests/conftest.py:9: in <module>
    from xarray.core.datatree import DataTree
xarray/core/datatree.py:34: in <module>
    from xarray.datatree_.datatree.common import TreeAttrAccessMixin
E   ModuleNotFoundError: No module named 'xarray.datatree_'
 * ERROR: dev-python/xarray-2024.3.0::gentoo failed (test phase):

Reproducible: Always
Comment 1 matoro archtester 2024-05-01 16:12:44 UTC
Created attachment 892086 [details]
build.log and emerge --info
Comment 2 Larry the Git Cow gentoo-dev 2024-05-01 17:33:45 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ab01ecfdef42c117a9a680ed8c1f5808dd5879d

commit 4ab01ecfdef42c117a9a680ed8c1f5808dd5879d
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2024-05-01 17:18:22 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2024-05-01 17:33:40 +0000

    dev-python/xarray: Fix tests
    
    Use GitHub tarball to have all data necessary for testing.  Require
    <dev-python/numpy-2.  Update deselects.
    
    Closes: https://bugs.gentoo.org/931057
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 dev-python/xarray/Manifest               |  2 +-
 dev-python/xarray/xarray-2024.3.0.ebuild | 40 +++++++++++---------------------
 2 files changed, 15 insertions(+), 27 deletions(-)