<div dir="ltr"><div dir="ltr"><div>Running mythtv 30 with fixes + the python3 code from <a href="https://github.com/rcrdnalor/mythtv">https://github.com/rcrdnalor/mythtv</a>, develop/python3. I gather that code has been merged into Myth v31.</div><div>I have no idea if my problem is specific to these version, as I've made no serious use of the python interface before.</div><div><br></div><div>I did a --user install of the libraries (and added that location to sys.path).  It seems there are actually 2 interfaces, one based fairly directly on the Services API and one in a more pythonic style.  It's the latter I'm trying to use.</div><div><br></div><div>db=MythTV.MythDB()  # I can startup the frontend from this account, and I assume MythDB() gets info from my config</div><div>bb=db.searchRecorded(title="Blue Bloods")</div><div>a = next(bb)</div><div># various queries of a</div><div></div><div>a.delete()<br>---------------------------------------------------------------------------<br>MythDBError                               Traceback (most recent call last)<br><ipython-input-42-adfa98f44cbd> in <module>()<br>----> 1 a.delete()<br><br>/home/ross/.local/lib/python3.7/site-packages/MythTV/dataheap.py in delete(self, force, rerecord)<br>    375         """<br>    376         try:<br>--> 377             return self.getProgram().delete(force, rerecord)<br>    378         except AttributeError:<br>    379             raise MythError("Program could not be found")<br><br>/home/ross/.local/lib/python3.7/site-packages/MythTV/dataheap.py in getProgram(self)<br>    387     def getProgram(self):<br>    388         """Recorded.getProgram() -> Program object"""<br>--> 389         return Program.fromRecorded(self)<br>    390 <br>    391     def getRecordedFile(self):<br><br>/home/ross/.local/lib/python3.7/site-packages/MythTV/mythproto.py in fromRecorded(cls, rec)<br>    953     @classmethod<br>    954     def fromRecorded(cls, rec):<br>--> 955         be = FileOps(db=rec._db)<br>    956         return be.getRecording(rec.chanid, rec.starttime)<br>    957 <br><br>/home/ross/.local/lib/python3.7/site-packages/MythTV/mythproto.py in __init__(self, backend, blockshutdown, events, db)<br>     78             # no backend given, use master<br>     79             self.host = self.db.settings.NULL.MasterServerIP<br>---> 80             self.hostname = self.db._gethostfromaddr(self.host)<br>     81 <br>     82         else:<br><br>/home/ross/.local/lib/python3.7/site-packages/MythTV/database.py in _gethostfromaddr(self, addr, value)<br>   1346             else:<br>   1347                 raise MythDBError(MythError.DB_SETTING,<br>-> 1348                                     'BackendServerAddr', addr)<br>   1349 <br>   1350         with self as cursor:<br><br>MythDBError: Could not find setting 'BackendServerAddr' on host '192.168.1.10'</div><div><br></div><div>Comments:</div><div>Maybe it is expecting a name, not an IP address?  If so, how do I fix it?</div><div>OTOH, the method name is gethostfromaddr.</div><div>dig -x on the IP returns the fully qualified host name.<br></div><div>The database and myth backend are both on the same IP.<br></div></div></div>