Bug 2224393 - setroubleshoot plugins fail using clean install of Fedora Rawhide with Python3-12, "No Module named 'imp'"
Summary: setroubleshoot plugins fail using clean install of Fedora Rawhide with Python...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: setroubleshoot
Version: rawhide
Hardware: x86_64
OS: Linux
urgent
high
Target Milestone: ---
Assignee: Petr Lautrbach
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 2223791 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-20 16:10 UTC by Garth Rees
Modified: 2023-07-25 10:09 UTC (History)
5 users (show)

Fixed In Version: setroubleshoot-3.3.32-6.fc39
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-07-25 10:09:22 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Advice from Python of module imp deprecation/removal (60.80 KB, image/png)
2023-07-20 16:10 UTC, Garth Rees
no flags Details

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.


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