Bug#1149379: bpack: FTBFS against python 3.15rc2 ('frozendict' object has no attribute 'update')

Margarita Manterola marga at debian.org
Tue Sep 29 19:13:05 BST 2026


Package: src:bpack
Version: 1.3.0-3
User: debian-python at lists.debian.org
Usertags: python3.15
Tags: ftbfs, forky, sid
Severity: important

Hi!

While rebuilding the python related packages against the Python 3.15rc2 
version we found that bpack fails to build from source:
https://debusine.debian.net/debian/r-python-python3.15/artifact/4856077/

 From the log, these are the errors:
==================================== ERRORS 
====================================
___________ ERROR collecting bpack/tests/test_future_annotations.py 
____________
bpack/tests/test_future_annotations.py:26: in <module>
     @bpack.descriptor
      ^^^^^^^^^^^^^^^^
bpack/utils.py:27: in wrapper
     return wrap(cls)
            ^^^^^^^^^
bpack/utils.py:19: in wrap
     return func(klass, **kwargs)
            ^^^^^^^^^^^^^^^^^^^^^
bpack/descriptors.py:544: in descriptor
     set_field_descriptor(field_, field_descr)
bpack/descriptors.py:360: in set_field_descriptor
     _update_field_metadata(field, **new_metadata)
bpack/descriptors.py:318: in _update_field_metadata
     metadata.update(**kwargs)
     ^^^^^^^^^^^^^^^
E   AttributeError: 'frozendict' object has no attribute 'update'. Did 
you mean to use a 'dict' object?
______________ ERROR collecting bpack/tools/tests/test_codegen.py 
______________
bpack/tools/tests/test_codegen.py:11: in <module>
     from .data.flat import Flat
bpack/tools/tests/data/flat.py:6: in <module>
     @bpack.descriptor(baseunits=EBaseUnits.BITS)
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
bpack/utils.py:19: in wrap
     return func(klass, **kwargs)
            ^^^^^^^^^^^^^^^^^^^^^
bpack/descriptors.py:544: in descriptor
     set_field_descriptor(field_, field_descr)
bpack/descriptors.py:360: in set_field_descriptor
     _update_field_metadata(field, **new_metadata)
bpack/descriptors.py:318: in _update_field_metadata
     metadata.update(**kwargs)
     ^^^^^^^^^^^^^^^
E   AttributeError: 'frozendict' object has no attribute 'update'. Did 
you mean to use a 'dict' object?

frozendict is a new type that comes with Python 3.15 and that indeed 
doesn't have the update method. I'm not sure where this metadata 
attribute is coming from, but if it needs to be updated it should be a 
dict not a frozendict.

Setting the severity to important for now. Once Python 3.15 is released 
and later added to python3-defaults, this bug will become release 
critical.

-- 
Regards,
Marga



More information about the Pkg-grass-devel mailing list