Bug#1088221: bpack: autopkgtest failure with Python 3.13

Graham Inggs ginggs at debian.org
Mon Nov 25 11:06:49 GMT 2024


Source: bpack
Version: 1.1.0-2
Severity: serious
User: debian-python at lists.debian.org
Usertags: python3.13

Hi Maintainer

bpack's autopkgtests fail with Python 3.13 [1].  I've copied what I
hope is the relevant part of the log below.

Regards
Graham


[1]  https://ci.debian.net/packages/b/bpack/testing/amd64/


86s =================================== FAILURES
===================================
86s ________________________________ test_attrs[bs]
________________________________
86s
86s backend = <module 'bpack.bs' from
'/usr/lib/python3/dist-packages/bpack/bs.py'>
86s
86s @pytest.mark.parametrize("backend", ALL_BACKENDS)
86s def test_attrs(backend):
86s codec = getattr(backend, "codec", backend.decoder)
86s
86s > @codec
86s
86s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:60:
86s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _
86s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper
86s return wrap(cls)
86s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap
86s return func(klass, **kwargs)
86s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec
86s decode_func = bpack.utils.create_fn(
86s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _
86s
86s name = 'frombytes', args = ('cls', 'data')
86s body = ['return cls.__bpack_decoder__.decode(data)']
86s
86s def create_fn(
86s name,
86s args,
86s body,
86s *,
86s globals=None, # noqa: A002
86s locals=None, # noqa: A002
86s return_type=dataclasses.MISSING,
86s ):
86s """Create a function object."""
86s > return dataclasses._create_fn(
86s name,
86s args,
86s body,
86s globals=globals,
86s locals=locals,
86s return_type=return_type,
86s )
86s E AttributeError: module 'dataclasses' has no attribute '_create_fn'
86s
86s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError
86s ________________________________ test_attrs[ba]
________________________________
86s
86s backend = <module 'bpack.ba' from
'/usr/lib/python3/dist-packages/bpack/ba.py'>
86s
86s @pytest.mark.parametrize("backend", ALL_BACKENDS)
86s def test_attrs(backend):
86s codec = getattr(backend, "codec", backend.decoder)
86s
86s > @codec
86s
86s /usr/lib/python3/dist-packages/bpack/tests/test_backends_codec.py:60:
86s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _
86s /usr/lib/python3/dist-packages/bpack/utils.py:27: in wrapper
86s return wrap(cls)
86s /usr/lib/python3/dist-packages/bpack/utils.py:19: in wrap
86s return func(klass, **kwargs)
86s /usr/lib/python3/dist-packages/bpack/codecs.py:89: in codec
86s decode_func = bpack.utils.create_fn(
86s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _ _
86s
86s name = 'frombytes', args = ('cls', 'data')
86s body = ['return cls.__bpack_decoder__.decode(data)']
86s
86s def create_fn(
86s name,
86s args,
86s body,
86s *,
86s globals=None, # noqa: A002
86s locals=None, # noqa: A002
86s return_type=dataclasses.MISSING,
86s ):
86s """Create a function object."""
86s > return dataclasses._create_fn(
86s name,
86s args,
86s body,
86s globals=globals,
86s locals=locals,
86s return_type=return_type,
86s )
86s E AttributeError: module 'dataclasses' has no attribute '_create_fn'
86s
86s /usr/lib/python3/dist-packages/bpack/utils.py:42: AttributeError



More information about the Pkg-grass-devel mailing list