<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.3.1634385602.29546.mythtv-users@mythtv.org">
<pre class="moz-quote-pre" wrap="">That message means that you did not use the -n option to tell it which
PC to talk to, so it tried to find a database on the local PC to get
the address and port number from. As there is no local database, it
was unable to connect to it and gives you that message. Getting that
message means that you have all the required Python modules, so that
is good news.
</pre>
<blockquote type="cite" style="color: #007cff;">
<pre class="moz-quote-pre" wrap="">Try changing HOST= ?localhost? to using the IP address of the Backend?.
same error.
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">I am not sure what you did there - what you need to do is use -n <IP
address> on the command line.
</pre>
</blockquote>
<p><br>
</p>
<p> </p>
<p style="margin-bottom: 0in; line-height: 100%">Last part first:
within the python script I had changed</p>
<p style="margin-bottom: 0in; line-height: 100%"><br>
</p>
<p style="margin-left: 0.49in; margin-bottom: 0in; line-height:
100%">
HOST = 'localhost'</p>
<p style="margin-left: 0.49in; margin-bottom: 0in; line-height:
100%">
PORT = 6544</p>
<p style="margin-bottom: 0in; line-height: 100%"><br>
</p>
<p style="margin-bottom: 0in; line-height: 100%">to</p>
<p style="margin-bottom: 0in; line-height: 100%"><br>
</p>
<p style="margin-bottom: 0in; line-height: 100%"> HOST =
‘192.168.4.3’</p>
<p style="margin-bottom: 0in; line-height: 100%"> PORT = 6544</p>
<p style="margin-bottom: 0in; line-height: 100%"><br>
</p>
<p style="margin-bottom: 0in; line-height: 100%">The IP address
being
that of the Backend. </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%">Back to the first
section, adding the -n switch…</p>
<p style="margin-bottom: 0in; line-height: 100%"><br>
</p>
<p style="margin-bottom: 0in; line-height: 100%">From your Python
script:</p>
<p style="margin-bottom: 0in; line-height: 100%"><font
face="Liberation Mono, monospace"><font style="font-size: 10pt"
size="2">parser.add_argument('-n',
'--host', action='store', help='MythTV backend hostname or IP
address
(default: '+host+')')</font></font></p>
<p style="margin-bottom: 0in; line-height: 100%"><br>
</p>
<p style="margin-bottom: 0in; line-height: 100%">Well, that’s where
the -n comes from (my ‘cookbook’ learning and patching together
isn’t the best way!) </p>
<p style="margin-bottom: 0in; line-height: 100%"><br>
</p>
<p style="margin-bottom: 0in; line-height: 100%"><font
face="Liberation Mono, monospace"><font style="font-size: 10pt"
size="2">python
'/home/barry/MythTV Backend
Scripts/test-mythbackend_v1_3-101421.py'
-n 192.168.4.3</font></font></p>
<p style="margin-bottom: 0in; line-height: 100%">Unable to get
BackendStatusPort settings from MythTV database, using defaults</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%"><font
face="Liberation Mono, monospace"><font style="font-size: 10pt"
size="2">python
'/home/barry/MythTV Backend
Scripts/test-mythbackend_v1_3-101421.py
-n 192.168.4.3'</font></font></p>
<p style="margin-bottom: 0in; line-height: 100%">python: can't open
file '/home/barry/MythTV Backend
Scripts/test-mythbackend_v1_3-101421.py -n 192.168.4.3': [Errno 2]
No
such file or directory</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%"><font
face="Liberation Mono, monospace"><font style="font-size: 10pt"
size="2">python
'/home/barry/MythTV Backend
Scripts/test-mythbackend_v1_3-101421.py'
-n --host 192.168.4.3</font></font></p>
<p style="margin-bottom: 0in; line-height: 100%">Unable to get
BackendStatusPort settings from MythTV database, using defaults</p>
<p style="margin-bottom: 0in; line-height: 100%">usage:
test-mythbackend_v1_3-101421.py [-h] [-V] [-n HOST] [-p PORT]</p>
<p style="margin-bottom: 0in; line-height: 100%">test-mythbackend_v1_3-101421.py:
error: argument -n/--host: expected one argument</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%"><font
face="Liberation Mono, monospace"><font style="font-size: 10pt"
size="2">python
'/home/barry/MythTV Backend
Scripts/test-mythbackend_v1_3-101421.py'
-n --host '192.168.4.3'</font></font></p>
<p style="margin-bottom: 0in; line-height: 100%">Unable to get
BackendStatusPort settings from MythTV database, using defaults</p>
<p style="margin-bottom: 0in; line-height: 100%">usage:
test-mythbackend_v1_3-101421.py [-h] [-V] [-n HOST] [-p PORT]</p>
<p style="margin-bottom: 0in; line-height: 100%">test-mythbackend_v1_3-101421.py:
error: argument -n/--host: expected one argument</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%"><font
face="Liberation Mono, monospace"><font style="font-size: 10pt"
size="2">python
'/home/barry/MythTV Backend
Scripts/test-mythbackend_v1_3-101421.py'
-n 192.168.4.3</font></font></p>
<p style="margin-bottom: 0in; line-height: 100%">Unable to get
BackendStatusPort settings from MythTV database, using defaults</p>
<p style="margin-bottom: 0in; line-height: 100%"><br>
</p>
<p style="margin-bottom: 0in; line-height: 100%">- - -</p>
<p style="margin-bottom: 0in; line-height: 100%"><br>
</p>
<p style="margin-bottom: 0in; line-height: 100%"><font
face="Liberation Mono, monospace"><font style="font-size: 10pt"
size="2">python
'/home/barry/MythTV Backend
Scripts/test-mythbackend_v1_3-101421.py'
-h</font></font></p>
<p style="margin-bottom: 0in; line-height: 100%">Unable to get
BackendStatusPort settings from MythTV database, using defaults</p>
<p style="margin-bottom: 0in; line-height: 100%">usage:
test-mythbackend_v1_3-101421.py [-h] [-V] [-n HOST] [-p PORT]</p>
<p style="margin-bottom: 0in; line-height: 100%"><br>
</p>
<p style="margin-bottom: 0in; line-height: 100%">Test that
mythbackend is running and responding to API calls (Version: 1.3)</p>
<p style="margin-bottom: 0in; line-height: 100%"><br>
</p>
<p style="margin-bottom: 0in; line-height: 100%">optional arguments:</p>
<p style="margin-bottom: 0in; line-height: 100%"> -h, --help show
this help message and exit</p>
<p style="margin-bottom: 0in; line-height: 100%"> -V, --version</p>
<p style="margin-bottom: 0in; line-height: 100%"> display the
version number and exit</p>
<p style="margin-bottom: 0in; line-height: 100%"> -n HOST, --host
HOST</p>
<p style="margin-bottom: 0in; line-height: 100%"> MythTV backend
hostname or IP address (default: localhost)</p>
<p style="margin-bottom: 0in; line-height: 100%"> -p PORT, --port
PORT</p>
<p style="margin-bottom: 0in; line-height: 100%"> MythTV backend API
port number (default: 6544)</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%"><font
face="Liberation Mono, monospace"><font style="font-size: 10pt"
size="2">python
'/home/barry/MythTV Backend
Scripts/test-mythbackend_v1_3-101421.py'
-V</font></font></p>
<p style="margin-bottom: 0in; line-height: 100%">Unable to get
BackendStatusPort settings from MythTV database, using defaults</p>
<p style="margin-bottom: 0in; line-height: 100%">Version 1.3</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%">It seems like from
Terminal I’m not passing the host’s IP address on to the Python
script. </p>
<p style="margin-bottom: 0in; line-height: 100%"><br>
</p>
<p style="margin-bottom: 0in; line-height: 100%">For ‘fun’ cd’d
to the subdirectory so I’m working where the Python script is –
same error.</p>
<p style="margin-bottom: 0in; line-height: 100%"><br>
</p>
<p style="margin-bottom: 0in; line-height: 100%">OK, now you get to
tell me what simple little thing I’m overlooking! And just for
more fun checked:</p>
<p style="margin-bottom: 0in; line-height: 100%"><br>
</p>
<p style="margin-bottom: 0in; line-height: 100%"><font
face="Liberation Mono, monospace"><font style="font-size: 10pt"
size="2">barry@NZXT:~/MythTV
Backend Scripts$ ping -c2 192.168.4.3</font></font></p>
<p style="margin-bottom: 0in; line-height: 100%"><font
face="Liberation Mono, monospace"><font style="font-size: 10pt"
size="2">PING
192.168.4.3 (192.168.4.3) 56(84) bytes of data.</font></font></p>
<p style="margin-bottom: 0in; line-height: 100%"><font
face="Liberation Mono, monospace"><font style="font-size: 10pt"
size="2">64
bytes from 192.168.4.3: icmp_seq=1 ttl=64 time=0.206 ms</font></font></p>
<p style="margin-bottom: 0in; line-height: 100%"><font
face="Liberation Mono, monospace"><font style="font-size: 10pt"
size="2">64
bytes from 192.168.4.3: icmp_seq=2 ttl=64 time=0.150 ms</font></font></p>
<p style="margin-bottom: 0in; line-height: 100%"><br>
</p>
<p style="margin-bottom: 0in; line-height: 100%"><font
face="Liberation Mono, monospace"><font style="font-size: 10pt"
size="2">---
192.168.4.3 ping statistics ---</font></font></p>
<p style="margin-bottom: 0in; line-height: 100%"><font
face="Liberation Mono, monospace"><font style="font-size: 10pt"
size="2">2
packets transmitted, 2 received, 0% packet loss, time 1005ms</font></font></p>
<p style="margin-bottom: 0in; line-height: 100%"><font
face="Liberation Mono, monospace"><font style="font-size: 10pt"
size="2">rtt
min/avg/max/mdev = 0.150/0.178/0.206/0.028 ms</font></font></p>
<p style="margin-bottom: 0in; line-height: 100%"> </p>
<p style="margin-bottom: 0in; line-height: 100%"><font
face="Liberation Mono, monospace"><font style="font-size: 10pt"
size="2">barry@NZXT:~/MythTV
Backend Scripts$ ping -c2 192.168.4.3 -p 6544</font></font></p>
<p style="margin-bottom: 0in; line-height: 100%"><font
face="Liberation Mono, monospace"><font style="font-size: 10pt"
size="2">PATTERN:
0x6544</font></font></p>
<p style="margin-bottom: 0in; line-height: 100%"><font
face="Liberation Mono, monospace"><font style="font-size: 10pt"
size="2">PING
192.168.4.3 (192.168.4.3) 56(84) bytes of data.</font></font></p>
<p style="margin-bottom: 0in; line-height: 100%"><font
face="Liberation Mono, monospace"><font style="font-size: 10pt"
size="2">64
bytes from 192.168.4.3: icmp_seq=1 ttl=64 time=0.184 ms</font></font></p>
<p style="margin-bottom: 0in; line-height: 100%"><font
face="Liberation Mono, monospace"><font style="font-size: 10pt"
size="2">64
bytes from 192.168.4.3: icmp_seq=2 ttl=64 time=0.193 ms</font></font></p>
<p style="margin-bottom: 0in; line-height: 100%"><br>
</p>
<p style="margin-bottom: 0in; line-height: 100%"><font
face="Liberation Mono, monospace"><font style="font-size: 10pt"
size="2">---
192.168.4.3 ping statistics ---</font></font></p>
<p style="margin-bottom: 0in; line-height: 100%"><font
face="Liberation Mono, monospace"><font style="font-size: 10pt"
size="2">2
packets transmitted, 2 received, 0% packet loss, time 1007ms</font></font></p>
<p style="margin-bottom: 0in; line-height: 100%"><font
face="Liberation Mono, monospace"><font style="font-size: 10pt"
size="2">rtt
min/avg/max/mdev = 0.184/0.188/0.193/0.014 ms</font></font></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 type="text/css">p { margin-bottom: 0.1in; line-height: 115% }a:link { so-language: zxx }</style></p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
</body>
</html>