[mythtv-users] Remotely monitor Backend is running

Barry Martin barry3martin at gmail.com
Sun Oct 10 16:24:28 UTC 2021


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' (don’t fiddle with the original until know 
it’s right!) and I’m 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 Backend’s IP). Still not finding the API services thingie.



Also, I don’t 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 mythtv’s 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 can’t guess. Plus still has to be 
looking at the other computer (the Backend).


Hope this makes sense!


Thanks!

Barry




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20211010/dfb81beb/attachment.htm>


More information about the mythtv-users mailing list