[mythtv-users] Error running find_orphans.py

Andrew Berridge andrew.berridge at gmail.com
Thu Sep 3 17:36:16 UTC 2015


No worries - sorted. My DB server had crashed, unbeknownst to me!

On Thu, Sep 3, 2015 at 6:29 PM, Andrew Berridge <andrew.berridge at gmail.com>
wrote:

> Ooops! Yes. Thank you.
>
> 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
>
> Andrew
>
> On Thu, Sep 3, 2015 at 6:11 PM, Roger Siddons <dizygotheca at ntlworld.com>
> wrote:
>
>> On Thu, 03 Sep 2015 17:30:53 +0100, Andrew Berridge <
>> andrew.berridge at gmail.com> wrote:
>>
>> Thank you. That helps, but the solution doesn't work for rollback. I have
>> changed rollback code to match, but get:
>>
>> ./find_orphans.py
>> Traceback (most recent call last):
>>   File "./find_orphans.py", line 230, in <module>
>>     main()
>>   File "./find_orphans.py", line 166, in main
>>     recs, zerorecs, orphvids, orphimgs, dbbackup, unfiltered =
>> populate(host)
>>   File "./find_orphans.py", line 71, in populate
>>     for sg in DB.getStorageGroup():
>>   File "/usr/lib/python2.7/site-packages/MythTV/database.py", line 1397,
>> in getStorageGroup
>>     yield StorageGroup.fromRaw(row, self)
>>   File "/usr/lib/python2.7/site-packages/MythTV/_conn_mysqldb.py", line
>> 105, in __exit__
>>     self.rollback()
>>   File "/usr/lib/python2.7/site-packages/MythTV/_conn_mysqldb.py", line
>> 99, in rollback
>>     def rollback(self): self.get_db().rollback()
>> AttributeError: 'LoggedCursor' object has no attribute 'get_db'
>>
>> I have "passed" that function for now.
>>
>> I am using Fedora 22 like the original bug reporter.
>>
>>
>> Shouldn't that be self._get_db().rollback() ? ie. leading underscore
>>
>> _______________________________________________
>> mythtv-users mailing list
>> mythtv-users at mythtv.org
>> http://lists.mythtv.org/mailman/listinfo/mythtv-users
>> http://wiki.mythtv.org/Mailing_List_etiquette
>> MythTV Forums: https://forum.mythtv.org
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20150903/fedacf6e/attachment.html>


More information about the mythtv-users mailing list