Bug 2224393

Summary: setroubleshoot plugins fail using clean install of Fedora Rawhide with Python3-12, "No Module named 'imp'"
Product: [Fedora] Fedora Reporter: Garth Rees <garthrees1960>
Component: setroubleshootAssignee: Petr Lautrbach <plautrba>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: urgent    
Version: rawhideCC: dwalsh, matt.fagnani, mmalik, plautrba, vmojzis
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: setroubleshoot-3.3.32-6.fc39 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-07-25 10:09:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Advice from Python of module imp deprecation/removal none

Description Garth Rees 2023-07-20 16:10:59 UTC
Created attachment 1976758 [details]
Advice from Python of module imp deprecation/removal

Description of problem:
SEtroubleshoot fails to start, fails to initialize plugins: No module named 'imp'

Version-Release number of selected component (if applicable):
setroubleshoot.x86_64 3.3.32-4.fc39 rawhide

How reproducible:
Always

Steps to Reproduce:
1.Install clean version of Fedora Rawhide, with only Python 3.12, after kernel 6.5.0-0.rc2
2.Start setroubleshootd


Actual results:
setroubleshootd fails to start

Expected results:
setroubleshootd should start and be available

Additional info:

Python 3 imp module has been deprecated since Python 3.4, and has been removed in python 3.12, in favor of importlib

Please update setroubleshoot to use the correct library importlib - a patch ASAP would be appreciated to allow me to resolve other problems.

Comment 1 Petr Lautrbach 2023-07-24 10:46:07 UTC
*** Bug 2223791 has been marked as a duplicate of this bug. ***

Comment 4 Fedora Update System 2023-07-25 10:06:08 UTC
FEDORA-2023-f4d0d0cdee has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2023-f4d0d0cdee

Comment 5 Fedora Update System 2023-07-25 10:09:22 UTC
FEDORA-2023-f4d0d0cdee has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.