Bug 2253406 - [abrt] lirc-core: main(): lircd-setup:37:main:AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?
Summary: [abrt] lirc-core: main(): lircd-setup:37:main:AttributeError: module 'configp...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: lirc
Version: 39
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Alec Leamas
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:6d2dfe5acadf98aebb748f349d9...
: 2279044 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-12-07 07:08 UTC by Nigel Jewell
Modified: 2024-05-04 09:31 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: ---
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)
File: cpuinfo (2.55 KB, text/plain)
2023-12-07 07:08 UTC, Nigel Jewell
no flags Details
File: namespaces (171 bytes, text/plain)
2023-12-07 07:08 UTC, Nigel Jewell
no flags Details
File: backtrace (545 bytes, text/plain)
2023-12-07 07:08 UTC, Nigel Jewell
no flags Details
File: open_fds (327 bytes, text/plain)
2023-12-07 07:08 UTC, Nigel Jewell
no flags Details
File: environ (374 bytes, text/plain)
2023-12-07 07:09 UTC, Nigel Jewell
no flags Details
File: mountinfo (2.17 KB, text/plain)
2023-12-07 07:09 UTC, Nigel Jewell
no flags Details
File: os_info (734 bytes, text/plain)
2023-12-07 07:09 UTC, Nigel Jewell
no flags Details

Description Nigel Jewell 2023-12-07 07:08:50 UTC
Description of problem:
This occurs when the service tries to start from systemd.  It looks like this has been fixed upstream, adding a condition to call configparser.SafeConfigParser or configparser.ConfigParser based upon python version.

Version-Release number of selected component:
lirc-core-0.10.0-40.fc39

Additional info:
reporter:       libreport-2.17.11
exception_type: AttributeError
interpreter:    python3-3.12.0-1.fc39.x86_64
cgroup:         0::/system.slice/lircd-setup.service
cmdline:        /usr/bin/python3 /usr/sbin/lircd-setup
type:           Python3
reason:         lircd-setup:37:main:AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?
kernel:         6.6.2-201.fc39.x86_64
comment:        This occurs when the service tries to start from systemd.  It looks like this has been fixed upstream, adding a condition to call configparser.SafeConfigParser or configparser.ConfigParser based upon python version.
crash_function: main
package:        lirc-core-0.10.0-40.fc39
runlevel:       unknown
executable:     /usr/sbin/lircd-setup
uid:            0

Truncated backtrace:
lircd-setup:37:main:AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?

Traceback (most recent call last):
  File "/usr/sbin/lircd-setup", line 51, in <module>
    main()
  File "/usr/sbin/lircd-setup", line 37, in main
    parser = configparser.SafeConfigParser()
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?

Local variables in innermost frame:
path: '/etc/lirc/lirc_options.conf'

Comment 1 Nigel Jewell 2023-12-07 07:08:54 UTC
Created attachment 2002997 [details]
File: cpuinfo

Comment 2 Nigel Jewell 2023-12-07 07:08:55 UTC
Created attachment 2002998 [details]
File: namespaces

Comment 3 Nigel Jewell 2023-12-07 07:08:57 UTC
Created attachment 2002999 [details]
File: backtrace

Comment 4 Nigel Jewell 2023-12-07 07:08:59 UTC
Created attachment 2003000 [details]
File: open_fds

Comment 5 Nigel Jewell 2023-12-07 07:09:00 UTC
Created attachment 2003001 [details]
File: environ

Comment 6 Nigel Jewell 2023-12-07 07:09:01 UTC
Created attachment 2003002 [details]
File: mountinfo

Comment 7 Nigel Jewell 2023-12-07 07:09:03 UTC
Created attachment 2003003 [details]
File: os_info

Comment 8 Richard G 2023-12-31 22:53:33 UTC
This bug is fixed in LIRC 10.0.2. See:

https://sourceforge.net/p/lirc/git/ci/b6e2de8005c263a5db38e6fe7b41befbfd92accc/

Comment 9 Nigel Jewell 2024-05-04 09:31:12 UTC
*** Bug 2279044 has been marked as a duplicate of this bug. ***


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