Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 953840 - app-crypt/yubikey-manager: dev-python/pyscard-2.2.2 breaks compatibility - ModuleNotFoundError: No module named 'smartcard.pcsc.PCSCContext'
Summary: app-crypt/yubikey-manager: dev-python/pyscard-2.2.2 breaks compatibility - Mo...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: mario.haustein
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-14 11:01 UTC by Anders Larsson
Modified: 2025-04-14 20:20 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anders Larsson 2025-04-14 11:01:04 UTC
After updating to dev-python/pyscard-2.2.2 it is no longer possible to run app-crypt/yubikey-manager (running 5.6.1 specifically here. I suspect 5.5.1 is just as affected though).

All crypt/yubikey-manager ebuilds should be depend on <dev-python/pyscard-2.2.2.

Downgrading to dev-python/pyscard-2.2.1 resolves the issue

Reproducible: Always

Steps to Reproduce:
1. emerge -1 '=dev-python/pyscard-2.2.2'
2. ykman
Actual Results:  
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.12/ykman", line 5, in <module>
    from ykman._cli.__main__ import main
  File "/usr/lib/python3.12/site-packages/ykman/_cli/__main__.py", line 42, in <module>
    from ..pcsc import list_devices as list_ccid, list_readers
  File "/usr/lib/python3.12/site-packages/ykman/pcsc/__init__.py", line 37, in <module>
    from smartcard.pcsc.PCSCContext import PCSCContext
ModuleNotFoundError: No module named 'smartcard.pcsc.PCSCContext'


Expected Results:  
ykman can successfully run.

Upstream issue https://github.com/Yubico/yubikey-manager/issues/666

Portage 3.0.68 (python 3.12.10-final-0, default/linux/amd64/23.0/systemd, gcc-14, glibc-2.41-r1, 6.14.0-gentoo x86_64)
=================================================================
System uname: Linux-6.14.0-gentoo-x86_64-AMD_Ryzen_7_1800X_Eight-Core_Processor-with-glibc2.41
KiB Mem:    32789276 total,  14511212 free
KiB Swap:    4194300 total,   4137912 free
Timestamp of repository gentoo: Mon, 14 Apr 2025 07:00:00 +0000
Head commit of repository gentoo: 2b9f132f22283d6178e0cedc6e492888e2143d7a
Timestamp of repository ace: Sun, 13 Apr 2025 15:50:26 +0000
Head commit of repository ace: 9853f1fc7ab456fc19786922ded87660ec4e0957

Timestamp of repository guru: Sun, 13 Apr 2025 18:05:10 +0000
Head commit of repository guru: a03896cbaecd2f987456d6699ed4b83bbe1107ae

Timestamp of repository steam-overlay: Sun, 13 Apr 2025 15:50:25 +0000
Head commit of repository steam-overlay: 7dd7a062c2f5b7327aa34d2ba2ade20d8288aa81

Timestamp of repository voyageur: Sat, 12 Apr 2025 16:53:19 +0000
Head commit of repository voyageur: 9d346b3d5da5334409f45fb1dd0ca6a6bdf7d00f

sh bash 5.2_p37
ld GNU ld (Gentoo 2.44 p1) 2.44.0
ccache version 4.11.2 [enabled]
app-misc/pax-utils:        1.3.8::gentoo
app-shells/bash:           5.2_p37::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.72-r1::gentoo
dev-build/automake:        1.16.5-r2::gentoo, 1.17-r2::gentoo
dev-build/cmake:           3.31.7::gentoo
dev-build/libtool:         2.5.4::gentoo
dev-build/make:            4.4.1-r100::gentoo
dev-build/meson:           1.7.2::gentoo
dev-java/java-config:      2.3.4::gentoo
dev-lang/perl:             5.40.2::gentoo
dev-lang/python:           3.12.10::gentoo, 3.13.3::gentoo
dev-lang/rust:             1.85.0-r1::gentoo, 1.85.1::gentoo, 1.86.0-r1::gentoo
dev-util/ccache:           4.11.2::gentoo
llvm-core/clang:           19.1.7::gentoo, 20.1.2::gentoo
llvm-core/lld:             19.1.7::gentoo
llvm-core/llvm:            19.1.7::gentoo, 20.1.2::gentoo
sys-apps/baselayout:       2.17::gentoo
sys-apps/sandbox:          2.46::gentoo
sys-apps/systemd:          257.5::gentoo
sys-devel/binutils:        2.44::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/gcc:             14.2.1_p20250301::gentoo
sys-devel/gcc-config:      2.12.1::gentoo
sys-kernel/linux-headers:  6.14::gentoo (virtual/os-headers)
sys-libs/glibc:            2.41-r1::gentoo
sys-libs/libselinux:       3.8.1::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: False
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts:
    sync-rsync-verify-max-age: 3

ace
    location: /var/db/repos/ace
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/ace.git
    masters: gentoo
    volatile: False

anders-larsson
    location: /var/db/repos/anders-larsson
    masters: gentoo
    volatile: True

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo
    volatile: False

steam-overlay
    location: /var/db/repos/steam-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
    masters: gentoo
    volatile: False

voyageur
    location: /var/db/repos/voyageur
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/voyageur.git
    masters: gentoo
    volatile: False

Installed sets: @dev, @fonts, @gaming, @gui, @portage-tools, @sway, @work, @yubikey
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y --complete-graph y --jobs=5 --load-average=7 --quiet-build"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live ccache config-protect-if-modified distlocks ebuild-locks export-pms-vars fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="https://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
LINGUAS="en_GB en_US en sv sv_SE"
MAKEOPTS="-j10"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/zsh"
USE="X acl alsa amd64 bzip2 cet crypt dbus gdbm gtk iconv ipv6 libnotify libtirpc llvm-libunwind multilib ncurses nls openmp pam pcre pgo pipewire pulseaudio readline screencast seccomp ssl systemd test-rust truetype udev unicode vdpau vim-syntax wayland xattr zlib" ABI_X86="64" ADA_TARGET="gcc_14" ALSA_CARDS="hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en-GB en-US en sv sv-SE" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LLVM_TARGETS="X86" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres17" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" QEMU_SOFTMMU_TARGETS="x86_64 i386" QEMU_USER_TARGETS="x86_64 i386" RUBY_TARGETS="ruby32" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS