Bug#1056539: xarray-safe-rcm's autopkg tests fail with Python 3.12

Antonio Valentino antonio.valentino at tiscali.it
Sat Nov 25 15:05:47 GMT 2023


Dear Matthias,

On Wed, 22 Nov 2023 17:10:28 +0100 Matthias Klose <doko at debian.org> wrote:
> 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:
> 
> [...]
> 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'?


This seems to be an issue in xmlschema.
I will reassign.

cheers
-- 
Antonio Valentino



More information about the Pkg-grass-devel mailing list