[Pkg-auth-maintainers] Bug#998641: python-yubico-tools: yubikey-totp broken with Python 3.9 (Debian bullseye)

Marc Donges marc.donges at 1und1.de
Fri Nov 5 13:03:37 GMT 2021


Package: python-yubico-tools
Version: 1.3.3-0.3
Severity: important
X-Debbugs-Cc: pere at hungry.com

yubikey-totp is broken with the version of Python (3.9) that is current in Debian bullseye. Petter Reinholdtsen discovered this in a discussion of bug #965059 [1] and provided a patch there [2]. With the patch it works fine for me.

Output from yubikey-totp:

----->8
% yubikey-totp
Traceback (most recent call last):
  File "/usr/bin/yubikey-totp", line 132, in <module>
    sys.exit(main())
  File "/usr/bin/yubikey-totp", line 120, in main
    otp = make_totp(args)
  File "/usr/bin/yubikey-totp", line 106, in make_totp
    secret = struct.pack("> Q", args.time / args.step).ljust(64, chr(0x0))
struct.error: required argument is not an integer
%
----->8

Expected output (output after patch):

----->8
% yubikey-totp
----->8

Here it waits for a keypress on the hardware token.

I set the severity to important because yubikey-totp is unusable.

Kind regards
Marc

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=965059#15

[2] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=965059#20


-- System Information:
Debian Release: 11.1
  APT prefers stable-updates
  APT policy: (600, 'stable-updates'), (600, 'stable-security'), (600, 'stable'), (400, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-9-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=C.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages python-yubico-tools depends on:
ii  python3-yubico  1.3.3-0.3

python-yubico-tools recommends no packages.

python-yubico-tools suggests no packages.

-- no debconf information



More information about the Pkg-auth-maintainers mailing list