• Bug#1102377: airthings-ble: FTBFS: E ModuleNotFoundError: No module nam

    From Santiago Vila@21:1/5 to All on Tue Apr 8 15:00:02 2025
    Package: src:airthings-ble
    Version: 1.0.0-1
    Severity: serious
    Tags: ftbfs trixie sid

    Dear maintainer:

    During a rebuild of all packages in unstable, your package failed to build:

    --------------------------------------------------------------------------------
    [...]
    debian/rules clean
    dh clean --buildsystem=pybuild
    dh_auto_clean -O--buildsystem=pybuild
    dh_autoreconf_clean -O--buildsystem=pybuild
    dh_clean -O--buildsystem=pybuild
    debian/rules binary
    dh binary --buildsystem=pybuild
    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:129: Building wheel for python3.13 with "build" module
    I: pybuild base:311: python3.13 -m build --skip-dependency-check --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13
    * Building wheel...
    The "poetry.dev-dependencies" section is deprecated and will be removed in a future version. Use "poetry.group.dev.dependencies" instead.
    Successfully built airthings_ble-1.0.0-py3-none-any.whl
    I: pybuild plugin_pyproject:144: Unpacking wheel built for python3.13 with "installer" module
    dh_auto_test -O--buildsystem=pybuild
    I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build; python3.13 -m pytest --no-cov
    ============================= test session starts ==============================
    platform linux -- Python 3.13.2, pytest-8.3.5, pluggy-1.5.0 -- /usr/bin/python3.13
    cachedir: .pytest_cache
    rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build
    configfile: pyproject.toml
    plugins: cov-5.0.0
    collecting ... collected 0 items / 8 errors

    ==================================== ERRORS ====================================
    __________________ ERROR collecting tests/test_device_type.py __________________
    ImportError while importing test module '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/tests/test_device_type.py'.
    Hint: make sure your test modules/packages have valid Python names.
    Traceback:
    /usr/lib/python3.13/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level) tests/test_device_type.py:3: in <module>
    from airthings_ble.device_type import AirthingsDeviceType airthings_ble/__init__.py:6: in <module>
    from .parser import (
    airthings_ble/parser.py:20: in <module>
    from bleak_retry_connector import BleakClientWithServiceCache, establish_connection
    /usr/lib/python3/dist-packages/bleak_retry_connector/__init__.py:38: in <module>
    from bluetooth_adapters import load_history_from_managed_objects
    E ModuleNotFoundError: No module named 'bluetooth_adapters' __________________ ERROR collecting tests/test_radon_level.py __________________
    ImportError while importing test module '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/tests/test_radon_level.py'.
    Hint: make sure your test modules/packages have valid Python names.
    Traceback:
    /usr/lib/python3.13/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level) tests/test_radon_level.py:1: in <module>
    from airthings_ble.parser import get_radon_level airthings_ble/__init__.py:6: in <module>
    from .parser import (
    airthings_ble/parser.py:20: in <module>
    from bleak_retry_connector import BleakClientWithServiceCache, establish_connection
    /usr/lib/python3/dist-packages/bleak_retry_connector/__init__.py:38: in <module>
    from bluetooth_adapters import load_history_from_managed_objects
    E ModuleNotFoundError: No module named 'bluetooth_adapters'
    ________________ ERROR collecting tests/test_validate_value.py _________________
    ImportError while importing test module '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/tests/test_validate_value.py'.
    Hint: make sure your test modules/packages have valid Python names.
    Traceback:
    /usr/lib/python3.13/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level) tests/test_validate_value.py:1: in <module>
    from airthings_ble.const import CO2_MAX, PERCENTAGE_MAX, PRESSURE_MAX, RADON_MAX
    airthings_ble/__init__.py:6: in <module>
    from .parser import (
    airthings_ble/parser.py:20: in <module>
    from bleak_retry_connector import BleakClientWithServiceCache, establish_connection
    /usr/lib/python3/dist-packages/bleak_retry_connector/__init__.py:38: in <module>
    from bluetooth_adapters import load_history_from_managed_objects
    E ModuleNotFoundError: No module named 'bluetooth_adapters'
    _________ ERROR collecting tests/test_wave_enhance_request_response.py _________
    ImportError while importing test module '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/tests/test_wave_enhance_request_response.py'.
    Hint: make sure your test modules/packages have valid Python names.
    Traceback:
    /usr/lib/python3.13/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level) tests/test_wave_enhance_request_response.py:2: in <module>
    from airthings_ble.wave_enhance.request import ( airthings_ble/__init__.py:6: in <module>
    from .parser import (
    airthings_ble/parser.py:20: in <module>
    from bleak_retry_connector import BleakClientWithServiceCache, establish_connection
    /usr/lib/python3/dist-packages/bleak_retry_connector/__init__.py:38: in <module>
    from bluetooth_adapters import load_history_from_managed_objects
    E ModuleNotFoundError: No module named 'bluetooth_adapters' __________________ ERROR collecting tests/test_wave_gen_1.py ___________________
    ImportError while importing test module '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/tests/test_wave_gen_1.py'.
    Hint: make sure your test modules/packages have valid Python names.
    Traceback:
    /usr/lib/python3.13/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level) tests/test_wave_gen_1.py:1: in <module>
    from airthings_ble.parser import _decode_wave_illum_accel airthings_ble/__init__.py:6: in <module>
    from .parser import (
    airthings_ble/parser.py:20: in <module>
    from bleak_retry_connector import BleakClientWithServiceCache, establish_connection
    /usr/lib/python3/dist-packages/bleak_retry_connector/__init__.py:38: in <module>
    from bluetooth_adapters import load_history_from_managed_objects
    E ModuleNotFoundError: No module named 'bluetooth_adapters' ___________________ ERROR collecting tests/test_wave_mini.py ___________________
    ImportError while importing test module '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/tests/test_wave_mini.py'.
    Hint: make sure your test modules/packages have valid Python names.
    Traceback:
    /usr/lib/python3.13/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level) tests/test_wave_mini.py:3: in <module>
    from airthings_ble.parser import WaveRadonAndPlusCommandDecode, _decode_wave_plus
    airthings_ble/__init__.py:6: in <module>
    from .parser import (
    airthings_ble/parser.py:20: in <module>
    from bleak_retry_connector import BleakClientWithServiceCache, establish_connection
    /usr/lib/python3/dist-packages/bleak_retry_connector/__init__.py:38: in <module>
    from bluetooth_adapters import load_history_from_managed_objects
    E ModuleNotFoundError: No module named 'bluetooth_adapters' ___________________ ERROR collecting tests/test_wave_plus.py ___________________
    ImportError while importing test module '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/tests/test_wave_plus.py'.
    Hint: make sure your test modules/packages have valid Python names.
    Traceback:
    /usr/lib/python3.13/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level) tests/test_wave_plus.py:3: in <module>
    from airthings_ble.parser import WaveRadonAndPlusCommandDecode, _decode_wave_plus
    airthings_ble/__init__.py:6: in <module>
    from .parser import (
    airthings_ble/parser.py:20: in <module>
    from bleak_retry_connector import BleakClientWithServiceCache, establish_connection
    /usr/lib/python3/dist-packages/bleak_retry_connector/__init__.py:38: in <module>
    from bluetooth_adapters import load_history_from_managed_objects
    E ModuleNotFoundError: No module named 'bluetooth_adapters' __________________ ERROR collecting tests/test_wave_radon.py ___________________
    ImportError while importing test module '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/tests/test_wave_radon.py'.
    Hint: make sure your test modules/packages have valid Python names.
    Traceback:
    /usr/lib/python3.13/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level) tests/test_wave_radon.py:3: in <module>
    from airthings_ble.parser import _decode_wave_radon airthings_ble/__init__.py:6: in <module>
    from .parser import (
    airthings_ble/parser.py:20: in <module>
    from bleak_retry_connector import BleakClientWithServiceCache, establish_connection
    /usr/lib/python3/dist-packages/bleak_retry_connector/__init__.py:38: in <module>
    from bluetooth_adapters import load_history_from_managed_objects
    E ModuleNotFoundError: No module named 'bluetooth_adapters' =========================== short test summary info ============================
    ERROR tests/test_device_type.py
    ERROR tests/test_radon_level.py
    ERROR tests/test_validate_value.py
    ERROR tests/test_wave_enhance_request_response.py
    ERROR tests/test_wave_gen_1.py
    ERROR tests/test_wave_mini.py
    ERROR tests/test_wave_plus.py
    ERROR tests/test_wave_radon.py
    !!!!!!!!!!!!!!!!!!! Interrupted: 8 errors during collection !!!!!!!!!!!!!!!!!!!!
    ============================== 8 errors in 0.23s ===============================
    E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=2: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build; python3.13 -m pytest --no-cov
    dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.13 returned exit code 13
    make: *** [debian/rules:5: binary] Error 25
    dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 --------------------------------------------------------------------------------

    The above is just how the build ends and not necessarily the most relevant part.
    If required, the full build log is available here:

    https://people.debian.org/~sanvila/build-logs/202504/

    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 could not 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:airthings-ble, so that this is still
    visible in the BTS web page for this package.

    Thanks.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Sun Apr 13 00:10:02 2025
    This is a multi-part message in MIME format...

    Your message dated Sat, 12 Apr 2025 18:07:55 -0400
    with message-id <87v7r92fus.fsf@debian.org>
    and subject line Closing as the FTBFS doesn't happen anymore
    has caused the Debian Bug report #1102377,
    regarding airthings-ble: FTBFS: E ModuleNotFoundError: No module named 'bluetooth_adapters'
    to be marked as done.

    This means that you claim that the problem has been dealt with.
    If this is not the case it is now your responsibility to reopen the
    Bug report if necessary, and/or fix the problem forthwith.

    (NB: If you are a system administrator and have no idea what this
    message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org
    immediately.)


    --
    1102377: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1102377
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    Received: (at submit) by bugs.debian.org; 8 Apr 2025 12:51:37 +0000 X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
    (2021-04-09) on buxtehude.debian.org
    X-Spam-Level:
    X-Spam-Status: No, score=-122.1 required=4.0 tests=ALL_TRUSTED,BAYES_00,
    BODY_INCLUDES_PACKAGE,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,
    DKIM_VALID_AU,DKIM_VALID_EF,FROMDEVELOPER,HAS_PACKAGE,SPF_HELO_PASS,
    SPF_NONE,USER_IN_DKIM_WELCOMELIST,USER_IN_DKIM_WHITELIST,X_DEBBUGS_CC
    autolearn=ham autolearn_force=no
    version=3.4.6-bugs.debian.org_2005_01_02
    X-Spam-Bayes: score:0.0000 Tokens: new, 39; hammy, 150; neutral, 194; spammy,
    0. spammytokens: hammytokens:0.000-+--python3, 0.000-+--trixie,
    0.000-+--pkgbuilddir, 0.000-+--PKGBUILDDIR, 0.000-+--sk:dh_auto Return-path: <sanvila@debian.org>
    Received: from mailly.debian.org ([2001:41b8:202:deb:6564:a62:52c3:4b72]:52906