Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 798786

Summary: >=app-crypt/yubikey-manager-3.1.2: uncaught errors due to dev-python/click
Product: Gentoo Linux Reporter: 0xc0ffee <victor>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED OBSOLETE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
Output of =app-crypt/yubikey-manager-3.1.2
Output of =app-crypt/yubikey-manager-4.0.0

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
-----------------

=app-crypt/yubikey-manager-3.1.2
=app-crypt/yubikey-manager-4.0.0

----------
Workaround
----------

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:
=app-crypt/yubikey-manager-3.1.2:
1. ykman oath add TestEntry

=app-crypt/yubikey-manager-4.0.0:
1. ykman oath accounts add TestEntry

Actual Results:  
=app-crypt/yubikey-manager-3.1.2:

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

=app-crypt/yubikey-manager-4.0.0:

    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.