<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p><br>
</p>
<div class="moz-cite-prefix">Hi Stephen!<br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<blockquote type="cite"
cite="mid:mailman.5.1633867202.4770.mythtv-users@mythtv.org">
<pre class="moz-quote-pre" wrap="">Here is the cut down version of gaps:
<a class="moz-txt-link-freetext" href="http://www.jsw.gen.nz/mythtv/test-mythbackend.py" moz-do-not-send="true">http://www.jsw.gen.nz/mythtv/test-mythbackend.py</a>
</pre>
</blockquote>
<p><br>
</p>
<p> </p>
<p style="margin-bottom: 0in; line-height: 100%"><br>
</p>
<p style="margin-bottom: 0in; line-height: 100%">Something not quite
working right for me with “<a
href="http://www.jsw.gen.nz/mythtv/test-mythbackend.py">/test-mythbackend.py</a>”.
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).</p>
<p style="margin-bottom: 0in; line-height: 100%"><br>
</p>
<p style="margin-bottom: 0in; line-height: 100%">Error is:</p>
<p style="margin-left: 0.49in; margin-bottom: 0in; line-height:
100%">
Traceback (most recent call last):</p>
<p style="margin-left: 0.49in; margin-bottom: 0in; line-height:
100%"> File "/home/barry/MythTV Backend
Scripts/Test_Mythbackend.py",
line 13, in <module></p>
<p style="margin-left: 0.49in; margin-bottom: 0in; line-height:
100%"> from MythTV.services_api import send as api</p>
<p style="margin-left: 0.49in; margin-bottom: 0in; line-height:
100%">
ModuleNotFoundError: No module named 'MythTV'</p>
<p style="margin-bottom: 0in; line-height: 100%"><br>
</p>
<p style="margin-bottom: 0in; line-height: 100%"><br>
</p>
<p style="margin-bottom: 0in; line-height: 100%">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.</p>
<p style="margin-bottom: 0in; line-height: 100%"><br>
</p>
<p style="margin-bottom: 0in; line-height: 100%"><br>
</p>
<p style="margin-bottom: 0in; line-height: 100%">Also, I don’t have
a “ MythTV.services_api”, or at least that I could find. <font
face="Liberation Mono, monospace">sudo service --status-all</font>
does list ‘mythtv-backend‘ but nothing with ‘api’
listed.</p>
<p style="margin-bottom: 0in; line-height: 100%"><br>
</p>
<p style="margin-bottom: 0in; line-height: 100%"><br>
</p>
<p style="margin-bottom: 0in; line-height: 100%">Only ones that
seemed close to what the script wants:</p>
<p style="margin-bottom: 0in; line-height: 100%">
/home/barry/git/mythtv/mythtv/bindings/python/MythTV/services_api</p>
<p style="margin-bottom: 0in; line-height: 100%"> (The two
mythtv’s
in a row is correct)</p>
<p style="margin-bottom: 0in; line-height: 100%">
/usr/lib/python2.7/dist-packages/MythTV/services_api</p>
<p style="margin-bottom: 0in; line-height: 100%"><br>
</p>
<p style="margin-bottom: 0in; line-height: 100%">(used: find / -type
d -iname *api* 2>/dev/null | grep -i myth)</p>
<p style="margin-bottom: 0in; line-height: 100%"><br>
</p>
<p style="margin-bottom: 0in; line-height: 100%"><br>
</p>
<p style="margin-bottom: 0in; line-height: 100%">The ‘line 13
error’ … Line 13 is <font face="Liberation Mono, monospace">from
MythTV.services_api import send as api</font></p>
<p style="margin-bottom: 0in; line-height: 100%">– no idea what is
being looked for so can’t guess. Plus still has to be looking at
the other computer (the Backend).</p>
<p style="margin-bottom: 0in; line-height: 100%"><br>
</p>
<p style="margin-bottom: 0in; line-height: 100%">Hope this makes
sense!</p>
<p style="margin-bottom: 0in; line-height: 100%"><br>
</p>
<p style="margin-bottom: 0in; line-height: 100%">Thanks!</p>
<p style="margin-bottom: 0in; line-height: 100%">Barry </p>
<p style="margin-bottom: 0in; line-height: 100%"><br>
</p>
<p>
<style type="text/css">p { margin-bottom: 0.1in; line-height: 115% }a:link { so-language: zxx }</style></p>
<p><br>
</p>
<p><br>
</p>
</body>
</html>