[Pkg-auth-maintainers] Bug#1103211: Upstream fix for ykman incomplete - tests failing.

Patrick Winnertz patrick at winnertz.eu
Tue Apr 15 19:24:00 BST 2025


forcemerge 1103211 1103039
thanks

Hey,
There is a partial fix upstream available however they lock the version 
to <2.2.2 which won't help us within debian right now. So - sadly no fix 
available upstream yet.

With the patch currently in salsa the build still fails like this:

I: pybuild base:311: cd 
/build/yubikey-manager-5.6.1+repack1/.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: /build/yubikey-manager-5.6.1+repack1/.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:39: in <module>
     from fido2.pcsc import CtapPcscDevice
/usr/lib/python3/dist-packages/fido2/pcsc.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.30s 
=========================
<sys>:0: DeprecationWarning: builtin type swigvarlink has no __module__ 
attribute
E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=2: 
cd /build/yubikey-manager-5.6.1+repack1/.pybuild/cpython3_3.13/build; 
python3.13 -m pytest tests

I guess we've either to fix the issue in ykman ourselfs or wait for a 
upstream fix (so close to the freeze).

With best regards
Patrick

-- 
Dr. Patrick Winnertz
Leostraße 26
68789 St. Leon-Rot
Tel: +49 163 253 636 9

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0xC6D50A4188C70E43.asc
Type: application/pgp-keys
Size: 13437 bytes
Desc: OpenPGP public key
URL: <http://alioth-lists.debian.net/pipermail/pkg-auth-maintainers/attachments/20250415/52a13cf6/attachment-0001.asc>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-auth-maintainers/attachments/20250415/52a13cf6/attachment-0001.sig>


More information about the Pkg-auth-maintainers mailing list