FS#58232 - [lirc] lirc 0.10.1-1/testing gives Python import lirc error

Attached to Project: Arch Linux
Opened by Clemmitt Sigler (cmsigler) - Sunday, 15 April 2018, 01:55 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:22 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Lukas Fleischer (lfleischer)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No



Using python3 `import lirc' fails with testing version lirc 0.10.1-1. Error thrown:

Traceback (most recent call last):
File "./myguiprogram.py", line 4, in <module>
import wx, wx.adv, re, threading, subprocess, shlex, lirc, argparse
File "/usr/lib/python3.6/site-packages/lirc/__init__.py", line 7, in <module>
from .client import get_default_lircrc_path
File "/usr/lib/python3.6/site-packages/lirc/client.py", line 37, in <module>
import lirc.config
ModuleNotFoundError: No module named 'lirc.config'

For me, an additional patch is needed to fix this: Makefile-am.patch --
======== CUT HERE ========
--- src/lirc-0.10.0/Makefile.am.orig 2017-08-12 02:37:11.000000000 -0400
+++ src/lirc-0.10.0/Makefile.am 2018-02-08 14:44:29.241721957 -0500
@@ -78,9 +78,10 @@
py_pkg_lircdir = $(pkgdatadir)/python-pkg/lirc
py_PYTHON = python-pkg/lirc/__init__.py \
python-pkg/lirc/database.py \
- python-pkg/lirc/paths.py
+ python-pkg/lirc/paths.py \
+ python-pkg/lirc/config.py

-nodist_py_pkg_PYTHON = python-pkg/lirc/config.py
+#nodist_py_pkg_PYTHON = python-pkg/lirc/config.py

py_PYTHON += python-pkg/lirc/async_client.py \
======== CUT HERE ========

Additional info:
lirc 0.10.1-1 in testing

Steps to reproduce:
1.) Install lirc 0.10.1-1 from testing
2.) Run a python3 script which uses `import lirc'

Please let me know if something is wrong here or you need more from me. HTH.

Clemmitt Sigler
This task depends upon

Closed by  Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:22 GMT
Reason for closing:  Moved
Additional comments about closing:  https://gitlab.archlinux.org/archlinux/p ackaging/packages/lirc/issues/2
Comment by Clemmitt Sigler (cmsigler) - Sunday, 19 August 2018, 02:14 GMT

A new lirc release came out almost two weeks ago. This bug still hasn't been fixed. Anyone who needs to use the lirc python module is SOL without the above patch added to PKGBUILD.

Are there any developers following this bug? Perhaps foutrelis who is the very last packager? Any chance a new non-maintainer bugfix release could be issued with this patch? TIA :)

Comment by Ben Wolsieffer (lopsided98) - Saturday, 06 October 2018, 20:19 GMT Comment by Buggy McBugFace (bugbot) - Tuesday, 08 August 2023, 19:11 GMT
This is an automated comment as this bug is open for more then 2 years. Please reply if you still experience this bug otherwise this issue will be closed after 1 month.
Comment by Toolybird (Toolybird) - Wednesday, 20 September 2023, 07:04 GMT
Fix merged upstream.