Hi, On Tue, Dec 16, 2025 at 07:45:32PM +0000, Santiago Vila wrote: > Package: src:python-bleak-esphome > Version: 1.0.0-2 > Severity: serious > Tags: ftbfs forky sid > > Dear maintainer: > > During a rebuild of all packages in unstable, this package failed to build. > > Below you will find the last part of the build log (probably the most > relevant part, but not necessarily). If required, the full build log > is available here: > > https://people.debian.org/~sanvila/build-logs/202512/ > > About the archive rebuild: The build was made on virtual machines from AWS, > using sbuild and a reduced chroot with only build-essential packages. > > If you cannot reproduce the bug please contact me privately, as I > am willing to provide ssh access to a virtual machine where the bug is > fully reproducible. > > If this is really a bug in one of the build-depends, please use > reassign and add an affects on src:python-bleak-esphome, so that this is still > visible in the BTS web page for this package. > > Thanks. > > -------------------------------------------------------------------------------- > [...] > debian/rules clean > make: pyversions: No such file or directory > py3versions: no X-Python3-Version in control file, using supported versions > dh clean --buildsystem=pybuild --with python3 > dh_auto_clean -O--buildsystem=pybuild > dh_autoreconf_clean -O--buildsystem=pybuild > dh_clean -O--buildsystem=pybuild > debian/rules binary > make: pyversions: No such file or directory > py3versions: no X-Python3-Version in control file, using supported versions > dh binary --buildsystem=pybuild --with python3 > dh_update_autotools_config -O--buildsystem=pybuild > dh_autoreconf -O--buildsystem=pybuild > dh_auto_configure -O--buildsystem=pybuild > dh_auto_build -O--buildsystem=pybuild > I: pybuild plugin_pyproject:131: Building wheel for python3.14 with "build" > module > I: pybuild base:317: python3.14 -m build --skip-dependency-check > --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14 > * Building wheel... > Successfully built bleak_esphome-1.0.0-py3-none-any.whl > I: pybuild plugin_pyproject:155: Unpacking wheel built for python3.14 with > "installer" module > I: pybuild plugin_pyproject:131: Building wheel for python3.13 with "build" > module > I: pybuild base:317: python3.13 -m build --skip-dependency-check > --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13 > * Building wheel... > Successfully built bleak_esphome-1.0.0-py3-none-any.whl > I: pybuild plugin_pyproject:155: Unpacking wheel built for python3.13 with > "installer" module > dh_auto_test -O--buildsystem=pybuild > I: pybuild base:317: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build; > python3.14 -m pytest -v tests > ============================= test session starts > ============================== > platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 -- > /usr/bin/python3.14 > cachedir: .pytest_cache > rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build > configfile: pyproject.toml > plugins: cov-5.0.0, typeguard-4.4.4 > collecting ... collected 0 items / 1 error > > ==================================== ERRORS > ==================================== > _____________________ ERROR collecting tests/test_init.py > ______________________ > TypeError: Metaclasses with custom tp_new are not supported. > > The above exception was the direct cause of the following exception: > tests/test_init.py:1: in <module> > from bleak_esphome.backend.scanner import ESPHomeScanner > bleak_esphome/__init__.py:1: in <module> > from .connect import connect_scanner > bleak_esphome/connect.py:8: in <module> > from aioesphomeapi import APIClient, BluetoothProxyFeature, DeviceInfo > /usr/lib/python3/dist-packages/aioesphomeapi/__init__.py:2: in <module> > from .api_pb2 import ( # type: ignore[attr-defined] # noqa: F401 > /usr/lib/python3/dist-packages/aioesphomeapi/api_pb2.py:7: in <module> > from google.protobuf import descriptor as _descriptor > /usr/lib/python3/dist-packages/google/protobuf/descriptor.py:40: in <module> > from google.protobuf.internal import api_implementation > /usr/lib/python3/dist-packages/google/protobuf/internal/api_implementation.py:104: > in <module> > from google.protobuf.pyext import _message > E SystemError: <built-in function __import__> returned a result with an > exception set > > ---------- coverage: platform linux, python 3.14.2-final-0 ----------- > Name Stmts Miss Branch BrPart Cover > Missing > ------------------------------------------------------------------------------------- > bleak_esphome/__init__.py 2 1 0 0 50% > 3 > bleak_esphome/backend/cache.py 22 22 0 0 0% > 2-50 > bleak_esphome/backend/characteristic.py 42 42 2 0 0% > 2-96 > bleak_esphome/backend/client.py 317 317 68 0 0% > 2-737 > bleak_esphome/backend/descriptor.py 21 21 0 0 0% > 2-42 > bleak_esphome/backend/device.py 30 30 8 0 0% > 2-53 > bleak_esphome/backend/scanner.py 13 13 2 0 0% > 2-41 > bleak_esphome/backend/service.py 21 21 0 0 0% > 2-41 > bleak_esphome/connect.py 32 27 4 0 14% > 9-110 > ------------------------------------------------------------------------------------- > TOTAL 500 494 84 0 1% > > 1 file skipped due to complete coverage. > > =========================== short test summary info > ============================ > ERROR tests/test_init.py - SystemError: <built-in function __import__> > returned a result with an exception set > !!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection > !!!!!!!!!!!!!!!!!!!! > =============================== 1 error in 0.16s > =============================== > E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=2: cd > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build; python3.14 -m pytest -v tests > I: pybuild base:317: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build; > python3.13 -m pytest -v tests > ============================= test session starts > ============================== > platform linux -- Python 3.13.11, pytest-9.0.2, pluggy-1.6.0 -- > /usr/bin/python3.13 > cachedir: .pytest_cache > rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build > configfile: pyproject.toml > plugins: cov-5.0.0, typeguard-4.4.4 > collecting ... collected 1 item > > tests/test_init.py::test_dummy PASSED > [100%] > > =============================== warnings summary > =============================== > <frozen importlib._bootstrap>:488 > <frozen importlib._bootstrap>:488: DeprecationWarning: Type > google.protobuf.pyext._message.ScalarMapContainer uses PyType_Spec with a > metaclass that has custom tp_new. This is deprecated and will no longer be > allowed in Python 3.14. > > <frozen importlib._bootstrap>:488 > <frozen importlib._bootstrap>:488: DeprecationWarning: Type > google.protobuf.pyext._message.MessageMapContainer uses PyType_Spec with a > metaclass that has custom tp_new. This is deprecated and will no longer be > allowed in Python 3.14. > > ../../../../../../usr/lib/python3/dist-packages/google/protobuf/internal/well_known_types.py:91 > > /usr/lib/python3/dist-packages/google/protobuf/internal/well_known_types.py:91: > 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). > _EPOCH_DATETIME_NAIVE = datetime.datetime.utcfromtimestamp(0) > > -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html > > ---------- coverage: platform linux, python 3.13.11-final-0 ---------- > Name Stmts Miss Branch BrPart Cover > Missing > ------------------------------------------------------------------------------------- > bleak_esphome/backend/cache.py 22 6 0 0 73% > 28, 34, 38, 42, 46, 50 > bleak_esphome/backend/characteristic.py 42 18 2 0 55% > 43-48, 55, 60, 65, 70, 75, 80, 84-88, 96 > bleak_esphome/backend/client.py 317 222 68 1 25% > 15, 76-106, 138-171, 175, 179-187, 191-195, 199-203, 207-209, 219-264, > 281-344, 349, 352-355, 359-367, 372, 377, 382-394, 399-411, 425, 437-485, > 491-501, 506-526, 549-551, 569-570, 594-596, 610-611, 643-691, 713-719, > 723-724, 728-737 > bleak_esphome/backend/descriptor.py 21 7 0 0 67% > 20-22, 27, 32, 37, 42 > bleak_esphome/backend/device.py 30 14 8 0 42% > 27-45, 49-53 > bleak_esphome/backend/scanner.py 13 4 2 0 60% > 23, 39-41 > bleak_esphome/backend/service.py 21 7 0 0 67% > 16-18, 23, 28, 33, 41 > bleak_esphome/connect.py 32 19 4 0 36% > 23-37, 60-110 > ------------------------------------------------------------------------------------- > TOTAL 500 297 84 1 35% > > 2 files skipped due to complete coverage. > > ======================== 1 passed, 3 warnings in 0.22s > ========================= > dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.14 > 3.13" returned exit code 13 > make: *** [debian/rules:9: binary] Error 25 > dpkg-buildpackage: error: debian/rules binary subprocess returned exit status > 2 > --------------------------------------------------------------------------------
I'm not able to reproduce this, shall we close this? -- Best, Tianyu Chen

