Bug 2192664 - RHEL 9 is missing required python3-qrcode-core imaging dependency qrcode.image.pil
Summary: RHEL 9 is missing required python3-qrcode-core imaging dependency qrcode.imag...
Keywords:
Status: NEW
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: python-qrcode
Version: 9.1
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: rc
: ---
Assignee: Florence Blanc-Renaud
QA Contact: Kaleem
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-05-02 16:48 UTC by Christopher A. Snapp
Modified: 2023-06-27 06:12 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker FREEIPA-9837 0 None None None 2023-05-02 16:49:55 UTC
Red Hat Issue Tracker RHELPLAN-156232 0 None None None 2023-05-02 16:49:59 UTC

Description Christopher A. Snapp 2023-05-02 16:48:39 UTC
Description of problem:

Multi-Factor Authentication (MFA) does not work on RHEL 9 due to missing qrcode.image.pil module.

MFA works properly on RHEL 8 systems when python3-qrcode and python3-pillow packages are installed.



Version-Release number of selected component (if applicable):

RHEL 9



How reproducible:

Always



Actual results:

Receive the following error when attempting to use Multi-Factor Authentication (MFA) on RHEL 9:

    No module named 'qrcode.image.pil'



Expected results:

MFA works properly on RHEL 9 systems when python3-qrcode-* package(s) are installed.

Comment 5 Miro Hrončok 2023-05-26 19:28:14 UTC
OK, as far as I understand things, the Multi-Factor Authentication might not need pillow, it only needs a way to export a QR code image.

RHEL 9 includes python-qrcode 6.1 which requires pillow for generating such images.

Later python-qrcode version uses pypng to generate PNG images and has support for pillow for more features that are likely not needed here.

If we backported this pypng support (or rebased python-qrcode to a later version) and added pypng to RHEL 9, this would likely make generating QR code images possible for the Multi-Factor Authentication use case as well.

https://github.com/lincolnloop/python-qrcode/commit/e0af4f0d878f6f8d30fe46c25c112266cbb39d40

https://src.fedoraproject.org/rpms/python-pypng

(This comment does not represent a promise of doing this, it merely introduces a possible technical solution.)


Note You need to log in before you can comment on or make changes to this bug.