Bug 2226993 - [abrt] bleachbit: module(): __init__.py:33:<module>:ImportError: cannot import name 'SafeConfigParser' from 'configparser' (/usr/lib64/python3.12/configparser.py). Did you mean: 'RawConfigParser'?
Summary: [abrt] bleachbit: module(): __init__.py:33:<module>:ImportError: cannot impor...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: bleachbit
Version: rawhide
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ali Erdinc Koroglu
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:59eb19624dd541916f457ab8b48...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-27 10:12 UTC by Ian Laurie
Modified: 2023-07-29 00:34 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-07-28 17:28:20 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: os_info (693 bytes, text/plain)
2023-07-27 10:12 UTC, Ian Laurie
no flags Details
File: environ (1.52 KB, text/plain)
2023-07-27 10:12 UTC, Ian Laurie
no flags Details
File: mountinfo (2.69 KB, text/plain)
2023-07-27 10:12 UTC, Ian Laurie
no flags Details
File: open_fds (329 bytes, text/plain)
2023-07-27 10:12 UTC, Ian Laurie
no flags Details
File: namespaces (171 bytes, text/plain)
2023-07-27 10:12 UTC, Ian Laurie
no flags Details
File: backtrace (8.41 KB, text/plain)
2023-07-27 10:12 UTC, Ian Laurie
no flags Details
File: cpuinfo (2.18 KB, text/plain)
2023-07-27 10:12 UTC, Ian Laurie
no flags Details

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.


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