Bug 2332424

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: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 41CC: epel-packagers-sig, hobbes1069, leamas.alec, nigel.jewell, 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: lirc-0.10.2-1.fc42 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-07-05 16:00:51 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: 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 2024-12-14 21:00:37 UTC
Description of problem:


Version-Release number of selected component:
lirc-core-0.10.0-44.fc41

Additional info:
reporter:       libreport-2.17.15
exception_type: AttributeError
interpreter:    python3-3.13.0-1.fc41.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.11.11-300.fc41.x86_64
comment:        
crash_function: main
package:        lirc-core-0.10.0-44.fc41
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'

Potential duplicate: bug 2253406

Comment 1 Nigel Jewell 2024-12-14 21:00:40 UTC
Created attachment 2062496 [details]
File: cpuinfo

Comment 2 Nigel Jewell 2024-12-14 21:00:41 UTC
Created attachment 2062497 [details]
File: namespaces

Comment 3 Nigel Jewell 2024-12-14 21:00:43 UTC
Created attachment 2062498 [details]
File: backtrace

Comment 4 Nigel Jewell 2024-12-14 21:00:44 UTC
Created attachment 2062499 [details]
File: open_fds

Comment 5 Nigel Jewell 2024-12-14 21:00:46 UTC
Created attachment 2062500 [details]
File: environ

Comment 6 Nigel Jewell 2024-12-14 21:00:47 UTC
Created attachment 2062501 [details]
File: mountinfo

Comment 7 Nigel Jewell 2024-12-14 21:00:48 UTC
Created attachment 2062502 [details]
File: os_info

Comment 8 Sean Young 2024-12-16 09:18:31 UTC
This is fixed upstream in lirc 0.10.2.

I have patches ready to update the lirc package to 0.10.2 but cannot upload them due to https://pagure.io/packager-sponsors/issue/693

Comment 9 Sean Young 2025-06-27 15:06:08 UTC
This is fixed in update-testing: https://bodhi.fedoraproject.org/updates/FEDORA-2025-26036d2f3f

Please confirm

Comment 10 Nigel Jewell 2025-06-28 09:47:43 UTC
Thanks Sean. Is there any possibility of a build for fc42? Will happily test and confirm then.

Comment 11 Sean Young 2025-06-28 11:39:00 UTC
If it is broken, then I rather not have a broken version in both f42 and f43. Is it possible to test this in f43, in a container/vm or so. Thank you

Comment 12 Nigel Jewell 2025-06-29 16:45:17 UTC
Fair enough!

I've tried it in f43 and it appears fixed. Many thanks.

If possible it would be great to have the f42 package fixed as well, but not the end of the world if it isn't.

Comment 13 Sean Young 2025-06-29 21:16:40 UTC
Ok, I've upgraded the f42 packages too. They should be hitting updates-testing soon. Please can you test and add karma, thank you.

On a separate note, this issue can be closed, right?

Comment 14 Fedora Update System 2025-06-30 09:08:09 UTC
FEDORA-2025-c714245b6c (lirc-0.10.2-1.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-c714245b6c

Comment 15 Fedora Update System 2025-07-04 01:34:04 UTC
FEDORA-2025-c714245b6c has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-c714245b6c`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-c714245b6c

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 16 Nigel Jewell 2025-07-04 17:17:46 UTC
Downloaded and installed on f42 from updates-testing. It is working fine. The issue can be closed as far as I am concerned. Thanks for your help.

Comment 17 Sean Young 2025-07-05 16:00:51 UTC
Thank you for reporting and testing Nigel

Comment 18 Fedora Update System 2025-07-06 01:10:53 UTC
FEDORA-2025-c714245b6c (lirc-0.10.2-1.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.