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
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-26 13:51 UTC by 0xc0ffee
Modified: 2021-11-17 13:01 UTC (History)
0 users

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


Attachments
emerge --info (emerge-info.txt,6.28 KB, text/plain)
2021-06-26 13:54 UTC, 0xc0ffee
Details
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
Details
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
Details

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

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