Bug#1056539: xarray-safe-rcm's autopkg tests fail with Python 3.12
Matthias Klose
doko at debian.org
Wed Nov 22 16:10:28 GMT 2023
Package: src:xarray-safe-rcm
Version: 2023.06.1-2
Severity: important
Tags: sid trixie
User: debian-python at lists.debian.org
Usertags: python3.12
xarray-safe-rcm's autopkg tests fail with Python 3.12:
[...]
231s I: pybuild base:310: cd
/tmp/autopkgtest.nZIXML/autopkgtest_tmp/build; python3.12 -m pytest -k
"not test_strip_namespaces" --pyargs safe_rcm
232s ============================= test session starts
==============================
232s platform linux -- Python 3.12.0+, pytest-7.4.3, pluggy-1.3.0
232s rootdir: /tmp/autopkgtest.nZIXML/autopkgtest_tmp/build
232s plugins: hypothesis-6.88.4
232s collected 0 items / 1 error
232s
232s ==================================== ERRORS
====================================
232s _________________ ERROR collecting tests/test_product_utils.py
_________________
232s /usr/lib/python3/dist-packages/_pytest/runner.py:341: in from_call
232s result: Optional[TResult] = func()
232s /usr/lib/python3/dist-packages/_pytest/runner.py:372: in <lambda>
232s call = CallInfo.from_call(lambda: list(collector.collect()),
"collect")
232s /usr/lib/python3/dist-packages/_pytest/python.py:531: in collect
232s self._inject_setup_module_fixture()
232s /usr/lib/python3/dist-packages/_pytest/python.py:545: in
_inject_setup_module_fixture
232s self.obj, ("setUpModule", "setup_module")
232s /usr/lib/python3/dist-packages/_pytest/python.py:310: in obj
232s self._obj = obj = self._getobj()
232s /usr/lib/python3/dist-packages/_pytest/python.py:528: in _getobj
232s return self._importtestmodule()
232s /usr/lib/python3/dist-packages/_pytest/python.py:617: in
_importtestmodule
232s mod = import_path(self.path, mode=importmode,
root=self.config.rootpath)
232s /usr/lib/python3/dist-packages/_pytest/pathlib.py:567: in import_path
232s importlib.import_module(module_name)
232s /usr/lib/python3.12/importlib/__init__.py:90: in import_module
232s return _bootstrap._gcd_import(name[level:], package, level)
232s <frozen importlib._bootstrap>:1381: in _gcd_import
232s ???
232s <frozen importlib._bootstrap>:1354: in _find_and_load
232s ???
232s <frozen importlib._bootstrap>:1325: in _find_and_load_unlocked
232s ???
232s <frozen importlib._bootstrap>:929: in _load_unlocked
232s ???
232s /usr/lib/python3/dist-packages/_pytest/assertion/rewrite.py:186: in
exec_module
232s exec(co, module.__dict__)
232s
/usr/lib/python3/dist-packages/safe_rcm/tests/test_product_utils.py:7:
in <module>
232s from safe_rcm.product import utils
232s /usr/lib/python3/dist-packages/safe_rcm/__init__.py:3: in <module>
232s from .api import open_rcm # noqa: F401
232s /usr/lib/python3/dist-packages/safe_rcm/api.py:11: in <module>
232s from .calibrations import read_noise_levels
232s /usr/lib/python3/dist-packages/safe_rcm/calibrations.py:10: in <module>
232s from safe_rcm.product.reader import execute
232s /usr/lib/python3/dist-packages/safe_rcm/product/reader.py:7: in
<module>
232s from ..xml import read_xml
232s /usr/lib/python3/dist-packages/safe_rcm/xml.py:6: in <module>
232s import xmlschema
232s /usr/lib/python3/dist-packages/xmlschema/__init__.py:20: in <module>
232s from .dataobjects import DataElement, DataElementConverter,
DataBindingConverter
232s /usr/lib/python3/dist-packages/xmlschema/dataobjects.py:27: in <module>
232s from . import validators
232s /usr/lib/python3/dist-packages/xmlschema/validators/__init__.py:38:
in <module>
232s from .schemas import XMLSchemaMeta, XMLSchemaBase, XMLSchema,
XMLSchema10, XMLSchema11
232s
/usr/lib/python3/dist-packages/xmlschema/validators/schemas.py:2137: in
<module>
232s class XMLSchema10(XMLSchemaBase):
232s /usr/lib/python3/dist-packages/xmlschema/validators/schemas.py:148:
in __new__
232s meta_schema =
meta_schema_class.create_meta_schema(meta_schema_file)
232s /usr/lib/python3/dist-packages/xmlschema/validators/schemas.py:763:
in create_meta_schema
232s meta_schema = meta_schema_class(source, XSD_NAMESPACE,
global_maps=global_maps,
232s /usr/lib/python3/dist-packages/xmlschema/validators/schemas.py:357:
in __init__
232s self.source = XMLResource(source, base_url, allow, defuse, timeout)
232s /usr/lib/python3/dist-packages/xmlschema/resources.py:511: in __init__
232s self.parse(source, lazy)
232s /usr/lib/python3/dist-packages/xmlschema/resources.py:746: in parse
232s url = normalize_url(source, self._base_url)
232s /usr/lib/python3/dist-packages/xmlschema/resources.py:188: in
normalize_url
232s path = _PurePath.from_uri(url)
232s /usr/lib/python3/dist-packages/xmlschema/resources.py:109: in from_uri
232s return cls(uri)
232s /usr/lib/python3/dist-packages/xmlschema/resources.py:98: in __new__
232s return cast('_PurePath', cls._from_parts(args))
232s E AttributeError: type object '_PurePosixPath' has no attribute
'_from_parts'. Did you mean: '_load_parts'?
232s =============================== warnings summary
===============================
232s ../../../../usr/lib/python3/dist-packages/pytz/__init__.py:30
232s /usr/lib/python3/dist-packages/pytz/__init__.py:30:
SyntaxWarning: invalid escape sequence '\s'
232s match = re.match("^#\s*version\s*([0-9a-z]*)\s*$", line)
232s
232s ../../../../usr/lib/python3/dist-packages/dateutil/tz/tz.py:37
232s /usr/lib/python3/dist-packages/dateutil/tz/tz.py:37:
DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated
and scheduled for removal in a future version. Use timezone-aware
objects to represent datetimes in UTC:
datetime.datetime.fromtimestamp(timestamp, datetime.UTC).
232s EPOCH = datetime.datetime.utcfromtimestamp(0)
232s
232s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
232s =========================== short test summary info
============================
232s ERROR tests/test_product_utils.py - AttributeError: type object
'_PurePosixPa...
232s !!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection
!!!!!!!!!!!!!!!!!!!!
232s ========================= 2 warnings, 1 error in 1.04s
=========================
232s E: pybuild pybuild:395: test: plugin pyproject failed with: exit
code=2: cd /tmp/autopkgtest.nZIXML/autopkgtest_tmp/build; python3.12 -m
pytest -k "not test_strip_namespaces" --pyargs safe_rcm
232s I: pybuild base:310: cd
/tmp/autopkgtest.nZIXML/autopkgtest_tmp/build; python3.11 -m pytest -k
"not test_strip_namespaces" --pyargs safe_rcm
233s ============================= test session starts
==============================
233s platform linux -- Python 3.11.6, pytest-7.4.3, pluggy-1.3.0
233s rootdir: /tmp/autopkgtest.nZIXML/autopkgtest_tmp/build
233s plugins: hypothesis-6.88.4
233s collected 2 items / 1 deselected / 1 selected
233s
235s tests/test_product_utils.py .
[100%]
235s
235s ======================= 1 passed, 1 deselected in 2.60s
========================
235s pybuild-autopkgtest: error: pybuild --autopkgtest --test-pytest -i
python{version} -p "3.12 3.11" returned exit code 13
More information about the Pkg-grass-devel
mailing list