Le 14/04/2025 à 08:38, Michael Musenbrock a écrit :
Package: python3-pyscard
Version: 2.2.2-1
Severity: normal
Hi,
Hello,
unfortunately the latest update of python3-pyscard from 2.2.1-2 to 2.2.2-1
broke ykman (yubikey-manager).
$ ykman list
Traceback (most recent call last):
File "/usr/bin/ykman", line 5, in <module>
from ykman._cli.__main__ import main
File "/usr/lib/python3/dist-packages/ykman/_cli/__main__.py", line 42, in
<module>
from ..pcsc import list_devices as list_ccid, list_readers
File "/usr/lib/python3/dist-packages/ykman/pcsc/__init__.py", line 37, in
<module>
from smartcard.pcsc.PCSCContext import PCSCContext
ModuleNotFoundError: No module named 'smartcard.pcsc.PCSCContext'
$ ls -l /usr/lib/python3/dist-packages/smartcard/pcsc/
total 72
-rw-r--r-- 1 root root 0 Apr 13 17:30 __init__.py
-rw-r--r-- 1 root root 12894 Apr 13 17:30 PCSCCardConnection.py
-rw-r--r-- 1 root root 17676 Apr 13 17:30 PCSCCardRequest.py
-rw-r--r-- 1 root root 4040 Apr 13 17:30 PCSCExceptions.py
-rw-r--r-- 1 root root 9263 Apr 13 17:30 PCSCPart10.py
-rw-r--r-- 1 root root 4129 Apr 13 17:30 PCSCReaderGroups.py
-rw-r--r-- 1 root root 5150 Apr 13 17:30 PCSCReader.py
drwxr-xr-x 2 root root 4096 Apr 14 00:31 __pycache__
Downgrading to 2.2.1-2 fixes the issue.
If the removal of PCSCContext is intentional and yubikey-manager should not
have accessed PCSCContext in the first place,
please re-assign the bug-report.
It is a problem caused by the latest version of pyscard but that should
be fixed in ykman and fido2.
The problem is already fixed upstream:
- for ykman:
https://github.com/Yubico/yubikey-manager/commit/b951fcd0c6e916a5ccf751307b8dcdf71149b38a
- for fido2:
https://github.com/Yubico/python-fido2/commit/e2eb7d4a52a762795c1a8aa9804f184b11b5e64d
I will reassign this ticket to both Debian packages.
This problem was not expected. Sorry to break two packages so close to
the trixie release.
Bye
--
Dr. Ludovic Rousseau