<div dir="ltr">I have the same issue - has anyone figured it out yet?<div><br></div><div>I am using myth  v0.27.4-64-g8fd277b</div><div><br></div><div>Andrew</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 1, 2015 at 12:24 PM, Michael T. Dean <span dir="ltr"><<a href="mailto:mtdean@thirdcontact.com" target="_blank">mtdean@thirdcontact.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 08/30/2015 02:02 PM, Dave Badia wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi -<br>
<br>
I did a fresh download of this script from the wiki at <a href="https://www.mythtv.org/wiki/Find_orphans.py" rel="noreferrer" target="_blank">https://www.mythtv.org/wiki/Find_orphans.py</a>   but getting the following error:<br>
<br>
Any thoughts?<br>
<br>
 python2 find_orphans.py<br>
Traceback (most recent call last):<br>
  File "find_orphans.py", line 221, in <module><br>
    DB = MythDB()<br>
  File "/usr/local/lib/python2.7/dist-packages/MythTV/database.py", line 1271, in __init__<br>
    elif self._testconfig(tmpconfig):<br>
  File "/usr/local/lib/python2.7/dist-packages/MythTV/database.py", line 1301, in _testconfig<br>
    self._schema_name)<br>
  File "/usr/local/lib/python2.7/dist-packages/MythTV/database.py", line 1324, in _check_schema<br>
    sver = int(cursor.fetchone()[0])<br>
  File "/usr/local/lib/python2.7/dist-packages/MythTV/_conn_mysqldb.py", line 107, in __exit__<br>
    self.commit()<br>
  File "/usr/local/lib/python2.7/dist-packages/MythTV/_conn_mysqldb.py", line 98, in commit<br>
    def commit(self): self.connection.commit()<br>
AttributeError: 'weakref' object has no attribute 'commit'<br>
</blockquote>
<br></div></div>
I'm pretty sure you're using a newer version of Python oursql or MySQLdb than is supported.  There's some tiny change required to make it work with the newer (and it should work with the older even after the change), but I have no clue what that change is--I can't find the reference I saw that showed the required change (it was a bug report/patch somewhere, but I think it was on one of the distro trackers and it doesn't seem to have been reported to our Trac).  I think it's something about changing the commit() call to be on the connection or something like that.<br>
<br>
Mike<div class="HOEnZb"><div class="h5"><br>
_______________________________________________<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>
</div></div></blockquote></div><br></div>