[mythtv-users] Remotely monitor Backend is running
Stephen Worthington
stephen_agent at jsw.gen.nz
Sun Oct 10 23:17:40 UTC 2021
On Sun, 10 Oct 2021 11:24:28 -0500, you wrote:
>
>Hi Stephen!
>
>> Here is the cut down version of gaps:
>>
>> http://www.jsw.gen.nz/mythtv/test-mythbackend.py
>
>
>
>Something not quite working right for me with /test-mythbackend.py
><http://www.jsw.gen.nz/mythtv/test-mythbackend.py>. Here doing from
>Terminal: python3 '/home/barry/MythTV Backend
>Scripts/Test_Mythbackend.py' (dont fiddle with the original until know
>its right!) and Im on my computer (not the Backend).
>
>
>Error is:
>
>Traceback (most recent call last):
>
>File "/home/barry/MythTV Backend Scripts/Test_Mythbackend.py", line 13,
>in <module>
>
>from MythTV.services_api import send as api
>
>ModuleNotFoundError: No module named 'MythTV'
>
>
>
>Thought maybe because (line 33) HOST = 'localhost' so changed to HOST =
>'192.168.4.3' (my Backends IP). Still not finding the API services thingie.
>
>
>
>Also, I dont have a MythTV.services_api, or at least that I could
>find. sudo service --status-all does list mythtv-backend but nothing
>with api listed.
>
>
>
>Only ones that seemed close to what the script wants:
>
>/home/barry/git/mythtv/mythtv/bindings/python/MythTV/services_api
>
> (The two mythtvs in a row is correct)
>
>/usr/lib/python2.7/dist-packages/MythTV/services_api
>
>
>(used: find / -type d -iname *api* 2>/dev/null | grep -i myth)
>
>
>
>The line 13 error
Line 13 is from MythTV.services_api import send as api
>
> no idea what is being looked for so cant guess. Plus still has to be
>looking at the other computer (the Backend).
>
>
>Hope this makes sense!
>
>
>Thanks!
>
>Barry
Since you are running MythTV v30, which uses Python 2, you will need a
Python 2 version of test-mythbackend.py (and gaps and any other Python
software that interfaces with MythTV). I will do a Python 2 version,
but it may take a few iterations to get it working properly as I do
not have any Python 2 versions of MythTV to test it with.
More information about the mythtv-users
mailing list