Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

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 Doug Newgard (Scimmia) - Monday, 16 April 2018, 04:30 GMT
Task Type Bug Report
Category Upstream Bugs
Status Assigned
Assigned To Lukas Fleischer (lfleischer)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 1
Private No

Details

Description:

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

if HAVE_PYTHON35
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

Comment by Clemmitt Sigler (cmsigler) - Sunday, 19 August 2018, 02:14 GMT
Hi,

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 :)

Clemmitt
Comment by Ben Wolsieffer (lopsided98) - Saturday, 06 October 2018, 20:19 GMT

Loading...