Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 798786 - >=app-crypt/yubikey-manager-3.1.2: uncaught errors due to dev-python/click
Summary: >=app-crypt/yubikey-manager-3.1.2: uncaught errors due to dev-python/click
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at if you want to take care of it
Depends on:
Reported: 2021-06-26 13:51 UTC by 0xc0ffee
Modified: 2021-08-10 00:24 UTC (History)
0 users

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

emerge --info (emerge-info.txt,6.28 KB, text/plain)
2021-06-26 13:54 UTC, 0xc0ffee
Output of =app-crypt/yubikey-manager-3.1.2 (yubikey-manager-3.1.2.out.txt,2.19 KB, text/plain)
2021-06-26 13:56 UTC, 0xc0ffee
Output of =app-crypt/yubikey-manager-4.0.0 (yubikey-manager-4.0.0.out.txt,1.98 KB, text/plain)
2021-06-26 13:57 UTC, 0xc0ffee

Note You need to log in before you can comment on or make changes to this bug.
Description 0xc0ffee 2021-06-26 13:51:36 UTC
Some CLI commands (e.g. adding OAuth2 TOTP entry) result in errors being thrown when installed version of dev-python/click is >= 8.0.

This is most likely an upstream issue with newer versions of dev-python/click.

Versions Affected



Adding ">=dev-python/click-8.0" to "/etc/portage/package.mask" and downgrading to "=dev-python/click-7.1.2-r1"

Possible Solution

Update EBUILD dependency from "dev-python/click" to "<dev-python/click-8.0.0".

However, this may lead to dependency conflicts with other packages if dev-python/click is not slotted.

Reproducible: Always

Steps to Reproduce:
1. ykman oath add TestEntry

1. ykman oath accounts add TestEntry

Actual Results:  

    AttributeError: 'OATH_TYPE' object has no attribute 'upper'


    AttributeError: 'OATH_TYPE' object has no attribute 'casefold'

Expected Results:  
No output, TOTP entry successfully added to YubiKey

Issue occurs on amd64, not tested on other platforms.
Comment 1 0xc0ffee 2021-06-26 13:54:13 UTC
Created attachment 719412 [details]
emerge --info
Comment 2 0xc0ffee 2021-06-26 13:56:48 UTC
Created attachment 719415 [details]
Output of =app-crypt/yubikey-manager-3.1.2
Comment 3 0xc0ffee 2021-06-26 13:57:16 UTC
Created attachment 719418 [details]
Output of =app-crypt/yubikey-manager-4.0.0
Comment 4 David Seifert gentoo-dev 2021-07-29 15:12:44 UTC
Should be fixed in 4.0.3, I've added 4.0.5 in commit 0d5d0d8bb02f98e5bd55a69b4a80e2a29b303e0f.