Bug 2226993

Summary: [abrt] bleachbit: module(): __init__.py:33:<module>:ImportError: cannot import name 'SafeConfigParser' from 'configparser' (/usr/lib64/python3.12/configparser.py). Did you mean: 'RawConfigParser'?
Product: [Fedora] Fedora Reporter: Ian Laurie <ian.laurie>
Component: bleachbitAssignee: Ali Erdinc Koroglu <aekoroglu>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: aekoroglu, ian.laurie, publiccontact2020
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/270199b5a30e666232f7ed100ad3d45475667ab
Whiteboard: abrt_hash:59eb19624dd541916f457ab8b489c52ec53e2fbd;VARIANT_ID=;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-07-28 17:28:20 UTC Type: ---
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
File: os_info
none
File: environ
none
File: mountinfo
none
File: open_fds
none
File: namespaces
none
File: backtrace
none
File: cpuinfo none

Description Ian Laurie 2023-07-27 10:12:35 UTC
Description of problem:
Crashed on launch.

Version-Release number of selected component:
bleachbit-4.4.2-2.fc38

Additional info:
reporter:       libreport-2.17.11
kernel:         6.5.0-0.rc3.23.fc39.x86_64
cmdline:        /usr/bin/python3 /usr/bin/bleachbit
cgroup:         0::/user.slice/user-1000.slice/session-2.scope
uid:            1000
reason:         __init__.py:33:<module>:ImportError: cannot import name 'SafeConfigParser' from 'configparser' (/usr/lib64/python3.12/configparser.py). Did you mean: 'RawConfigParser'?
executable:     /usr/bin/bleachbit
type:           Python3
package:        bleachbit-4.4.2-2.fc38
runlevel:       N 5
exception_type: ImportError
crash_function: module
interpreter:    python3-3.12.0~b4-2.fc39.x86_64
comment:        Crashed on launch.

Truncated backtrace:
#1 [/usr/share/bleachbit/__init__.py:33] <module>
#2 [/usr/bin/bleachbit:43] <module>

Comment 1 Ian Laurie 2023-07-27 10:12:38 UTC
Created attachment 1980236 [details]
File: os_info

Comment 2 Ian Laurie 2023-07-27 10:12:40 UTC
Created attachment 1980237 [details]
File: environ

Comment 3 Ian Laurie 2023-07-27 10:12:41 UTC
Created attachment 1980238 [details]
File: mountinfo

Comment 4 Ian Laurie 2023-07-27 10:12:43 UTC
Created attachment 1980239 [details]
File: open_fds

Comment 5 Ian Laurie 2023-07-27 10:12:44 UTC
Created attachment 1980240 [details]
File: namespaces

Comment 6 Ian Laurie 2023-07-27 10:12:45 UTC
Created attachment 1980241 [details]
File: backtrace

Comment 7 Ian Laurie 2023-07-27 10:12:47 UTC
Created attachment 1980242 [details]
File: cpuinfo

Comment 8 Ian Laurie 2023-07-27 23:19:51 UTC
I've tested bleachbit on another two Rawhide instances and it crashes on launch with them also.  I'm not certain how long this problem has existed, but I am reasonably certain it was working a few weeks ago.

Comment 10 publiccontact2020 2023-07-28 16:23:59 UTC
Fedora Rawhide
bleachbit-4.4.2-2.fc38.noarch
bleachbit fails to initialize: 
ImportError: cannot import name 'SafeConfigParser' from 'configparser'

verified:
/usr/bin/python Python 3.12.0b4
/usr/lib64/python3.12/ConfigParser.py
/usr/lib/python3.12/site-packages/iniparse/ConfigParser.py

proposed edit: '/usr/share/bleachbit/__init__.py'
change: 
from configparser import RawConfigParser, NoOptionError, SafeConfigParser
to:
from configparser import RawConfigParser, NoOptionError, ConfigParser #, SafeConfigParser

Comment 12 Ian Laurie 2023-07-29 00:34:12 UTC
https://bodhi.fedoraproject.org/updates/FEDORA-2023-9a7f6b80ba fixes it for me.