Bug 2253406

Summary: [abrt] lirc-core: main(): lircd-setup:37:main:AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?
Product: [Fedora] Fedora Reporter: Nigel Jewell <nigel.jewell>
Component: lircAssignee: Alec Leamas <leamas.alec>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 39CC: epel-packagers-sig, hobbes1069, jarod, leamas.alec, nigel.jewell, rg4redhat, sean
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/9e17c99bfe2cfa3e8c2c9392c17bd4f39aa253a4
Whiteboard: abrt_hash:6d2dfe5acadf98aebb748f349d9160f72fa8764a;VARIANT_ID=workstation;
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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: cpuinfo
none
File: namespaces
none
File: backtrace
none
File: open_fds
none
File: environ
none
File: mountinfo
none
File: os_info none

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. ***