🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #1841

Bug#1151785: python-miio: FTBFS: E ModuleNotFoundError: No module named '_cffi_backend'. Although a module with this name was ...

#1841
From: Santiago Vila
Date: Fri, 23 Oct 2026 16:40
226 lines
16299 bytes
Package: src:python-miio
Version: 0.5.12-6
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:python-miio, so that this is still
visible in the BTS web page for this package.

Thanks.

--------------------------------------------------------------------------------
[...]
    from .protocol import Message
miio/protocol.py:38: in <module>
    from cryptography.hazmat.primitives import padding
/usr/lib/python3/dist-packages/cryptography/hazmat/primitives/padding.py:10: in <module>
    from cryptography.hazmat.bindings._rust import (
E   ModuleNotFoundError: No module named '_cffi_backend'. Although a module with this name was found for a different Python version (_cffi_backend.cpython-314-x86_64-linux-gnu.so).
=============================== warnings summary ===============================
miio/click_common.py:154
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.15/build/miio/click_common.py:154: DeprecationWarning: 'MultiCommand' is deprecated and will be removed in Click 9.0. Use 'Group' instead.
    class DeviceGroup(click.MultiCommand):

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
ERROR miio/integrations/airpurifier/airdog/tests/test_airpurifier_airdog.py
ERROR miio/integrations/airpurifier/dmaker/tests/test_airfresh_t2017.py
ERROR miio/integrations/airpurifier/zhimi/tests/test_airfilter_util.py
ERROR miio/integrations/airpurifier/zhimi/tests/test_airfresh.py
ERROR miio/integrations/airpurifier/zhimi/tests/test_airpurifier.py
ERROR miio/integrations/airpurifier/zhimi/tests/test_airpurifier_miot.py
ERROR miio/integrations/fan/dmaker/test_fan.py
ERROR miio/integrations/fan/dmaker/test_fan_miot.py
ERROR miio/integrations/fan/leshow/tests/test_fan_leshow.py
ERROR miio/integrations/fan/zhimi/test_fan.py
ERROR miio/integrations/fan/zhimi/test_zhimi_miot.py
ERROR miio/integrations/humidifier/deerma/tests/test_airhumidifier_jsqs.py
ERROR miio/integrations/humidifier/deerma/tests/test_airhumidifier_mjjsq.py
ERROR miio/integrations/humidifier/shuii/tests/test_airhumidifier_jsq.py
ERROR miio/integrations/humidifier/zhimi/tests/test_airhumidifier.py
ERROR miio/integrations/humidifier/zhimi/tests/test_airhumidifier_miot.py
ERROR miio/integrations/light/philips/tests/test_ceil.py
ERROR miio/integrations/light/philips/tests/test_philips_bulb.py
ERROR miio/integrations/light/philips/tests/test_philips_eyecare.py
ERROR miio/integrations/light/philips/tests/test_philips_moonlight.py
ERROR miio/integrations/light/philips/tests/test_philips_rwread.py
ERROR miio/integrations/light/yeelight/tests/test_yeelight.py
ERROR miio/integrations/light/yeelight/tests/test_yeelight_spec_helper.py
ERROR miio/integrations/petwaterdispenser/tests/test_status.py
ERROR miio/integrations/vacuum/dreame/tests/test_dreamevacuum_miot.py
ERROR miio/integrations/vacuum/roborock/tests/test_mirobo.py
ERROR miio/integrations/vacuum/roborock/tests/test_vacuum.py
ERROR miio/integrations/vacuum/roidmi/tests/test_roidmivacuum_miot.py
ERROR miio/tests/test_airconditioner_miot.py
ERROR miio/tests/test_airconditioningcompanion.py
ERROR miio/tests/test_airdehumidifier.py
ERROR miio/tests/test_airqualitymonitor.py
ERROR miio/tests/test_airqualitymonitor_miot.py
ERROR miio/tests/test_chuangmi_ir.py
ERROR miio/tests/test_chuangmi_plug.py
ERROR miio/tests/test_click_common.py
ERROR miio/tests/test_device.py
ERROR miio/tests/test_deviceinfo.py
ERROR miio/tests/test_devicestatus.py
ERROR miio/tests/test_heater.py
ERROR miio/tests/test_heater_miot.py
ERROR miio/tests/test_huizuo.py
ERROR miio/tests/test_miotdevice.py
ERROR miio/tests/test_powerstrip.py
ERROR miio/tests/test_protocol.py
ERROR miio/tests/test_toiletlid.py
ERROR miio/tests/test_vacuums.py
ERROR miio/tests/test_walkingpad.py
ERROR miio/tests/test_waterpurifier.py
ERROR miio/tests/test_wifirepeater.py
ERROR miio/tests/test_yeelight_dual_switch.py
!!!!!!!!!!!!!!!!!!! Interrupted: 51 errors during collection !!!!!!!!!!!!!!!!!!!
======================== 1 warning, 51 errors in 0.78s =========================
E: pybuild pybuild:485: test: plugin pyproject failed with: exit code=2: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.15/build; python3.15 -m pytest 
I: pybuild base:383: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build; python3.14 -m pytest 
============================= test session starts ==============================
platform linux -- Python 3.14.8, pytest-9.1.1, pluggy-1.6.0
rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build
configfile: pyproject.toml
plugins: mock-3.15.1
collected 838 items

miio/integrations/airpurifier/airdog/tests/test_airpurifier_airdog.py .. [  0%]
.....                                                                    [  0%]
miio/integrations/airpurifier/dmaker/tests/test_airfresh_t2017.py ...... [  1%]
.................                                                        [  3%]
miio/integrations/airpurifier/zhimi/tests/test_airfilter_util.py ....    [  4%]
miio/integrations/airpurifier/zhimi/tests/test_airfresh.py ............. [  5%]
........                                                                 [  6%]
miio/integrations/airpurifier/zhimi/tests/test_airpurifier.py .......... [  7%]
..................                                                       [  9%]
miio/integrations/airpurifier/zhimi/tests/test_airpurifier_miot.py ..... [ 10%]
..............                                                           [ 12%]
miio/integrations/fan/dmaker/test_fan.py ...........                     [ 13%]
miio/integrations/fan/dmaker/test_fan_miot.py .....................      [ 15%]
miio/integrations/fan/leshow/tests/test_fan_leshow.py .......            [ 16%]
miio/integrations/fan/zhimi/test_fan.py ................................ [ 20%]
............                                                             [ 22%]
miio/integrations/fan/zhimi/test_zhimi_miot.py ............              [ 23%]
miio/integrations/humidifier/deerma/tests/test_airhumidifier_jsqs.py ... [ 23%]
.....                                                                    [ 24%]
miio/integrations/humidifier/deerma/tests/test_airhumidifier_mjjsq.py .. [ 24%]
......                                                                   [ 25%]
miio/integrations/humidifier/shuii/tests/test_airhumidifier_jsq.py ..... [ 26%]
.........                                                                [ 27%]
miio/integrations/humidifier/zhimi/tests/test_airhumidifier.py ......... [ 28%]
.............................................                            [ 33%]
miio/integrations/humidifier/zhimi/tests/test_airhumidifier_miot.py .... [ 34%]
.............                                                            [ 35%]
miio/integrations/light/philips/tests/test_ceil.py ..........            [ 36%]
miio/integrations/light/philips/tests/test_philips_bulb.py ............. [ 38%]
                                                                         [ 38%]
miio/integrations/light/philips/tests/test_philips_eyecare.py .......... [ 39%]
.                                                                        [ 39%]
miio/integrations/light/philips/tests/test_philips_moonlight.py ........ [ 40%]
.                                                                        [ 40%]
miio/integrations/light/philips/tests/test_philips_rwread.py .........   [ 41%]
miio/integrations/light/yeelight/tests/test_yeelight.py ....s...s.s....  [ 43%]
miio/integrations/light/yeelight/tests/test_yeelight_spec_helper.py ..   [ 43%]
miio/integrations/petwaterdispenser/tests/test_status.py .               [ 43%]
miio/integrations/vacuum/dreame/tests/test_dreamevacuum_miot.py ........ [ 44%]
.........                                                                [ 45%]
miio/integrations/vacuum/roborock/tests/test_mirobo.py .                 [ 46%]
miio/integrations/vacuum/roborock/tests/test_vacuum.py ................. [ 48%]
....                                                                     [ 48%]
miio/integrations/vacuum/roidmi/tests/test_roidmivacuum_miot.py ........ [ 49%]
                                                                         [ 49%]
miio/tests/test_airconditioner_miot.py ................                  [ 51%]
miio/tests/test_airconditioningcompanion.py .................            [ 53%]
miio/tests/test_airdehumidifier.py .........                             [ 54%]
miio/tests/test_airqualitymonitor.py .....                               [ 55%]
miio/tests/test_airqualitymonitor_miot.py .....                          [ 55%]
miio/tests/test_chuangmi_ir.py .......                                   [ 56%]
miio/tests/test_chuangmi_plug.py ...............                         [ 58%]
miio/tests/test_click_common.py ..                                       [ 58%]
miio/tests/test_device.py .............................................. [ 64%]
........................................................................ [ 72%]
.....                                                                    [ 73%]
miio/tests/test_deviceinfo.py ..                                         [ 73%]
miio/tests/test_devicestatus.py ......                                   [ 74%]
miio/tests/test_heater.py ........                                       [ 75%]
miio/tests/test_heater_miot.py .......                                   [ 76%]
miio/tests/test_huizuo.py ...............                                [ 77%]
miio/tests/test_miotdevice.py .......................................... [ 82%]
...............                                                          [ 84%]
miio/tests/test_powerstrip.py ...................                        [ 86%]
miio/tests/test_protocol.py ...............                              [ 88%]
miio/tests/test_toiletlid.py ......                                      [ 89%]
miio/tests/test_vacuums.py ............................................. [ 94%]
.......................                                                  [ 97%]
miio/tests/test_walkingpad.py .......                                    [ 98%]
miio/tests/test_waterpurifier.py ...                                     [ 98%]
miio/tests/test_wifirepeater.py .....                                    [ 99%]
miio/tests/test_yeelight_dual_switch.py ......                           [100%]

=============================== warnings summary ===============================
miio/click_common.py:154
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build/miio/click_common.py:154: DeprecationWarning: 'MultiCommand' is deprecated and will be removed in Click 9.0. Use 'Group' instead.
    class DeviceGroup(click.MultiCommand):

miio/protocol.py:222
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build/miio/protocol.py:222: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
    "ts" / TimeAdapter(Default(Int32ub, datetime.datetime.utcnow())),

miio/integrations/vacuum/dreame/tests/test_dreamevacuum_miot.py: 8 warnings
miio/integrations/vacuum/roborock/tests/test_mirobo.py: 1 warning
miio/tests/test_device.py: 68 warnings
miio/tests/test_miotdevice.py: 3 warnings
miio/tests/test_protocol.py: 8 warnings
miio/tests/test_vacuums.py: 66 warnings
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build/miio/miioprotocol.py:50: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
    self._device_ts: datetime = datetime.utcnow()

miio/tests/test_chuangmi_plug.py::TestChuangmiPlugV1::test_status
miio/tests/test_chuangmi_plug.py::TestChuangmiPlugV1::test_status
miio/tests/test_chuangmi_plug.py::TestChuangmiPlugV3::test_status
miio/tests/test_chuangmi_plug.py::TestChuangmiPlugV3::test_status
miio/tests/test_chuangmi_plug.py::TestChuangmiPlugM1::test_status
miio/tests/test_chuangmi_plug.py::TestChuangmiPlugM1::test_status
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build/miio/device.py:41: DeprecationWarning: Call to deprecated function wifi_led (Use led()).
    prop_value = prop.fget(self)

miio/tests/test_powerstrip.py::TestPowerStripV1::test_status
miio/tests/test_powerstrip.py::TestPowerStripV1::test_status
miio/tests/test_powerstrip.py::TestPowerStripV2::test_status
miio/tests/test_powerstrip.py::TestPowerStripV2::test_status
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build/miio/device.py:41: DeprecationWarning: Call to deprecated function wifi_led (Use led instead of wifi_led).
    prop_value = prop.fget(self)

miio/tests/test_protocol.py::test_decode_json_payload
miio/tests/test_protocol.py::test_decode_json_quirk_powerstrip
miio/tests/test_protocol.py::test_decode_json_quirk_cloud
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build/miio/protocol.py:146: 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).
    return datetime.datetime.utcfromtimestamp(obj)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
================= 835 passed, 3 skipped, 169 warnings in 1.48s =================
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.15 3.14" --parallel=2 returned exit code 13
make[1]: *** [debian/rules:15: override_dh_auto_test] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:7: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------
Technical Details
Message-ID: <NRqtc-7qzu-61@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.szaf.org!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.szaf.org!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Santiago Vila <sanvila@debian.org>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1151785: python-miio: FTBFS: E   ModuleNotFoundError: No module named '_cffi_backend'. Although a module with this name was found for a different Python version (_cffi_backend.cpython-314-x86_64-linux-gnu.so).
Date: Fri, 23 Oct 2026 18:40:02 +0200
Message-ID: <NRqtc-7qzu-61@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Fri Oct 23 16:31:57 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.699
Reply-To: Santiago Vila <sanvila@debian.org>, 1151785@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 1151785
X-Debian-Pr-Package: src:python-miio
X-Debian-Pr-Keywords: forky ftbfs sid
X-Debian-Pr-Source: python-miio
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1998369
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 226
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Fri, 23 Oct 2026 16:27:36 +0000
X-Original-Message-ID: <E1xKI7E-0052Eh-1A@paradis.debian.org>