Article View: linux.debian.bugs.rc
Article #207Bug#1150388: zigpy-xbee: FTBFS: E TypeError: Coordinator <MagicMock id='139646870025088'> is not a Zigbee device
From: Santiago Vila
Date: Fri, 09 Oct 2026 07:40
Date: Fri, 09 Oct 2026 07:40
62 lines
4800 bytes
4800 bytes
Package: src:zigpy-xbee
Version: 0.22.0-1
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/202610/
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:zigpy-xbee, so that this is still
visible in the BTS web page for this package.
Thanks.
--------------------------------------------------------------------------------
[...]
"""The device being controlled."""
dev = self.get_device(ieee=self.state.node_info.ieee)
if not isinstance(dev, ZigbeeDevice):
> raise TypeError(f"Coordinator {dev} is not a Zigbee device")
E TypeError: Coordinator <MagicMock id='139646870025088'> is not a Zigbee device
/usr/lib/python3/dist-packages/zigpy/application.py:1866: TypeError
=============================== warnings summary ===============================
tests/test_api.py::test_api_mode_at_commands
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build/zigpy_xbee/api.py:537: RuntimeWarning: coroutine 'AsyncMockMixin._execute_mock_call' was never awaited
self._uart.reset_command_mode()
Enable tracemalloc to get traceback where the object was allocated.
See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
tests/test_api.py::test_init_api_mode
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build/zigpy_xbee/api.py:510: RuntimeWarning: coroutine 'AsyncMockMixin._execute_mock_call' was never awaited
self._uart.command_mode_send(command.encode("ascii"))
Enable tracemalloc to get traceback where the object was allocated.
See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED tests/test_application.py::test_rx - TypeError: Coordinator <MagicMock...
FAILED tests/test_application.py::test_rx_nwk_0000 - TypeError: Coordinator <...
FAILED tests/test_application.py::test_rx_device_annce - TypeError: Coordinat...
=========== 3 failed, 97 passed, 7 deselected, 2 warnings in 17.96s ============
E: pybuild pybuild:485: test: plugin pyproject failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build; python3.14 -m pytest --no-cov -k "not test_connect"
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.14 --parallel=1 returned exit code 13
make: *** [debian/rules:7: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------
Technical Details
Message-ID:
<NMdmV-4q8N-9@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!bofh.it!news.nic.it!robomodShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!bofh.it!news.nic.it!robomod From: Santiago Vila <sanvila@debian.org> Newsgroups: linux.debian.bugs.rc Subject: Bug#1150388: zigpy-xbee: FTBFS: E TypeError: Coordinator <MagicMock id='139646870025088'> is not a Zigbee device Date: Fri, 09 Oct 2026 09:40:01 +0200 Message-ID: <NMdmV-4q8N-9@gated-at.bofh.it> X-Mailbox-Line: From debian-bugs-rc-request@lists.debian.org Fri Oct 9 07:35:19 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.7 Reply-To: Santiago Vila <sanvila@debian.org>, 1150388@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: sanvila@debian.org, team+python@tracker.debian.org X-Debian-Pr-Message: report 1150388 X-Debian-Pr-Package: src:zigpy-xbee X-Debian-Pr-Keywords: forky ftbfs sid X-Debian-Pr-Source: zigpy-xbee X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-rc@lists.debian.org> archive/latest/834010 List-ID: <debian-bugs-rc.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-rc/> Approved: robomod@news.nic.it Lines: 62 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Fri, 09 Oct 2026 07:33:36 +0000 X-Original-Message-ID: <E1xF56m-000Uo5-17@paradis.debian.org>