[mythtv-users] lircd unreliable after Ubuntu upgrade 16.04 > 18.04

John Burroughs jw at jwb2.net
Wed Jun 24 16:58:29 UTC 2020


Stephen Worthington <stephen_agent at jsw.gen.nz> writes:

> On Wed, 24 Jun 2020 07:37:56 -0400, you wrote:
>
>>Stephen:
>>
>>Stephen Worthington <stephen_agent at jsw.gen.nz> writes:
>>

[...]

>>
>>The messages I am getting are as follows when I run your script:
>>
>>---------------------------------------------------------------
>>All prerequites are now in place, attempting to install the lirc Python 3 support...
>>WARNING: Requirement '/usr/share/lirc/lirc-0.10.0.tar.gz' looks like a filename, but the file does not exist
>>Processing /usr/share/lirc/lirc-0.10.0.tar.gz
>>ERROR: Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: '/usr/share/lirc/lirc-0.10.0.tar.gz'
>>
>>Exited - doing final cleanup
>>-------------------------------------------------------------
>>
>>When I look in /usr/share/lirc, what I see is "lirc-0.10.1.tar.gz".
>>
>>I am guessing there is a new version and the name needs only to be
>>changed, I hope. I did take a look at your script, but I was not 100%
>>sure where that change needed to be made.
>>
>>I am hoping this is the only change that is needed.
>>
>>ubuntu 20.04 wants to install lirc-0.10.1-6.ubuntu1.1
>>
>>Thanks for your help.
>>
>>John
>
> Take a step back.  What problems are you having with lirc on 20.04?
> Why do you think you need my script to fix things?  Does it give error
> messages when you run lirc-setup?

I can't get that far within Ubuntu 20.4, itself. The software centre
shows only "Application not Found".

If I run at the command line: sudo apt install lirc, it seems to install
lirc version 0.10.1-6.1ubuntu1.1.

However, when I run "sudo lirc-setup", I get the following dump;

-------------------------------------------------------------------------
/usr/lib/x86_64-linux-gnu/python3.8/site-packages/lirc-setup/mvc_control.py:13: PyGIWarning: Gtk was imported without specifying a v
ersion first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk         # pylint: disable=no-name-in-module
/usr/lib/x86_64-linux-gnu/python3.8/site-packages/lirc-setup/mvc_view.py:14: PyGIWarning: Vte was imported without specifying a vers
ion first. Use gi.require_version('Vte', '2.91') before import to ensure that the right version gets loaded.
  from gi.repository import Vte         # pylint: disable=no-name-in-module
/usr/lib/python3/dist-packages/lirc/database.py:135: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the d
efault Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
  cf = yaml.load(f.read())
/usr/lib/python3/dist-packages/lirc/database.py:69: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the de
fault Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
  cf = yaml.load(f.read())
/usr/lib/python3/dist-packages/lirc/database.py:142: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the d
efault Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
  cf = yaml.load(f.read())
/usr/lib/python3/dist-packages/lirc/database.py:161: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the d
efault Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
  cf = yaml.load(f.read())
jwb at richese:~$ sudo lirc-setup
[sudo] password for jwb:
/usr/lib/x86_64-linux-gnu/python3.8/site-packages/lirc-setup/mvc_control.py:13: PyGIWarning: Gtk was imported without specifying a v
ersion first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk         # pylint: disable=no-name-in-module
Traceback (most recent call last):
  File "/usr/bin/lirc-setup", line 16, in <module>
    import mvc_control
  File "/usr/lib/x86_64-linux-gnu/python3.8/site-packages/lirc-setup/mvc_control.py", line 16, in <module>
    import choosers
  File "/usr/lib/x86_64-linux-gnu/python3.8/site-packages/lirc-setup/choosers.py", line 11, in <module>
    import mvc_model
  File "/usr/lib/x86_64-linux-gnu/python3.8/site-packages/lirc-setup/mvc_model.py", line 14, in <module>
    from lirc.database import Database
  File "/usr/lib/python3/dist-packages/lirc/__init__.py", line 7, in <module>
    from .client import get_default_lircrc_path
  File "/usr/lib/python3/dist-packages/lirc/client.py", line 38, in <module>
    import _client
ModuleNotFoundError: No module named '_client'
-------------------------------------------------------------------------

These seem to come from a deprecated function as the default loader is
unsafe. I guess I went back to your script for the above error.

I was planning to clone the configuration and files from the older
frontend once installed here. I am prepared to update the various
configuration files by hand to match what is already working.

Is this a situation where I should send in a trouble report to the
ubuntu and/or lirc teams?

> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org

John
--
+-------------------------------------------------------
| John W. Burroughs, P. Eng. | keyid: 0x0243F7494B1A1ACD
| FPR: 0C18 84BA 182A 8A31 A062 9F88 BF68 DE42 B1D5 76EC
+-------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20200624/c45daaf1/attachment.sig>


More information about the mythtv-users mailing list