<div dir="ltr">No worries - sorted. My DB server had crashed, unbeknownst to me!</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 3, 2015 at 6:29 PM, Andrew Berridge <span dir="ltr"><<a href="mailto:andrew.berridge@gmail.com" target="_blank">andrew.berridge@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Ooops! Yes. Thank you.<div><br></div><div>now I have a problem with it not finding the DB credentials, even though I have /usr/share/mythv/config.xml and .mythtv/config.xml</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Andrew</div></font></span></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Thu, Sep 3, 2015 at 6:11 PM, Roger Siddons <span dir="ltr"><<a href="mailto:dizygotheca@ntlworld.com" target="_blank">dizygotheca@ntlworld.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><u></u>


<div><span>On Thu, 03 Sep 2015 17:30:53 +0100, Andrew Berridge <<a href="mailto:andrew.berridge@gmail.com" target="_blank">andrew.berridge@gmail.com</a>> wrote:<br><br><blockquote style="margin:0 0 0.80ex;border-left:#0000ff 2px solid;padding-left:1ex"><div dir="ltr">Thank you. That helps, but the solution doesn't work for rollback. I have changed rollback code to match, but get:<div><br></div><div><div>./find_orphans.py</div><div>Traceback (most recent call last):</div><div>  File "./find_orphans.py", line 230, in <module></div><div>    main()</div><div>  File "./find_orphans.py", line 166, in main</div><div>    recs, zerorecs, orphvids, orphimgs, dbbackup, unfiltered = populate(host)</div><div>  File "./find_orphans.py", line 71, in populate</div><div>    for sg in DB.getStorageGroup():</div><div>  File "/usr/lib/python2.7/site-packages/MythTV/database.py", line 1397, in getStorageGroup</div><div>    yield StorageGroup.fromRaw(row, self)</div><div>  File "/usr/lib/python2.7/site-packages/MythTV/_conn_mysqldb.py", line 105, in __exit__</div><div>    self.rollback()</div><div>  File "/usr/lib/python2.7/site-packages/MythTV/_conn_mysqldb.py", line 99, in rollback</div><div>    def rollback(self): self.get_db().rollback()</div><div>AttributeError: 'LoggedCursor' object has no attribute 'get_db'</div></div><div><br></div><div>I have "passed" that function for now.</div><div><br></div><div>I am using Fedora 22 like the original bug reporter.</div></div></blockquote><div><br></div></span><div>Shouldn't that be self._get_db().rollback() ? ie. leading underscore</div></div><br></div></div><span class="">_______________________________________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org" target="_blank">mythtv-users@mythtv.org</a><br>
<a href="http://lists.mythtv.org/mailman/listinfo/mythtv-users" rel="noreferrer" target="_blank">http://lists.mythtv.org/mailman/listinfo/mythtv-users</a><br>
<a href="http://wiki.mythtv.org/Mailing_List_etiquette" rel="noreferrer" target="_blank">http://wiki.mythtv.org/Mailing_List_etiquette</a><br>
MythTV Forums: <a href="https://forum.mythtv.org" rel="noreferrer" target="_blank">https://forum.mythtv.org</a><br>
<br></span></blockquote></div><br></div>
</blockquote></div><br></div>