• Bug#1103211: yubikey-manager: FTBFS: E ModuleNotFoundError: No module n

    From Santiago Vila@21:1/5 to All on Tue Apr 15 02:30:02 2025
    Package: src:yubikey-manager
    Version: 5.6.1-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 --with python3 --buildsystem=pybuild
    dh_auto_clean -O--buildsystem=pybuild
    dh_autoreconf_clean -O--buildsystem=pybuild
    dh_clean -O--buildsystem=pybuild
    debian/rules binary
    dh binary --with python3 --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...
    Successfully built yubikey_manager-5.6.1-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 tests
    ============================= test session starts ==============================
    platform linux -- Python 3.13.3, pytest-8.3.5, pluggy-1.5.0
    rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build
    configfile: pyproject.toml
    collected 52 items / 1 error

    ==================================== ERRORS ====================================
    ________________________ ERROR collecting tests/device _________________________
    /usr/lib/python3.13/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
    <frozen importlib._bootstrap>:1387: in _gcd_import
    ???
    <frozen importlib._bootstrap>:1360: in _find_and_load
    ???
    <frozen importlib._bootstrap>:1331: in _find_and_load_unlocked
    ???
    <frozen importlib._bootstrap>:935: in _load_unlocked
    ???
    /usr/lib/python3/dist-packages/_pytest/assertion/rewrite.py:185: in exec_module
    exec(co, module.__dict__)
    tests/device/conftest.py:1: in <module>
    from ykman.device import list_all_devices, read_info
    ykman/device.py:42: in <module>
    from .pcsc import list_devices as _list_ccid_devices ykman/pcsc/__init__.py:37: in <module>
    from smartcard.pcsc.PCSCContext import PCSCContext
    E ModuleNotFoundError: No module named 'smartcard.pcsc.PCSCContext' =============================== warnings summary ===============================
    <frozen importlib._bootstrap>:488
    <frozen importlib._bootstrap>:488: DeprecationWarning: builtin type SwigPyPacked has no __module__ attribute

    <frozen importlib._bootstrap>:488
    <frozen importlib._bootstrap>:488: DeprecationWarning: builtin type SwigPyObject has no __module__ attribute

    -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================
    ERROR tests/device - ModuleNotFoundError: No module named 'smartcard.pcsc.PCS...
    !!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
    ========================= 2 warnings, 1 error in 0.21s =========================
    <sys>:0: DeprecationWarning: builtin type swigvarlink has no __module__ attribute
    E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=2: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build; python3.13 -m pytest tests
    dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.13 returned exit code 13
    make: *** [debian/rules:4: 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:yubikey-manager, 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 Santiago Vila@21:1/5 to All on Tue Apr 15 14:40:01 2025
    Hello.

    I did a debbisect and this is what I found:

    bisection finished successfully
    last good timestamp: 20250413T085924Z
    first bad timestamp: 20250413T204319Z
    the following packages differ between the last good and first bad timestamp:
    libperl5.40:amd64 5.40.1-2 -> 5.40.1-3
    perl 5.40.1-2 -> 5.40.1-3
    perl-base 5.40.1-2 -> 5.40.1-3
    perl-modules-5.40 5.40.1-2 -> 5.40.1-3
    python3-pyscard 2.2.1-2 -> 2.2.2-1

    So, if this is a bug in some build-depends, it might be python3-pyscard.

    Ludovic, could you please look at this?

    Thanks.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)