[mythtv-users] Error running find_orphans.py

Stephen Worthington stephen_agent at jsw.gen.nz
Tue Sep 1 04:50:56 UTC 2015


On Sun, 30 Aug 2015 14:02:31 -0400, you wrote:

>Hi -
>
>I did a fresh download of this script from the wiki at
>https://www.mythtv.org/wiki/Find_orphans.py   but getting the following
>error:
>
>Any thoughts?
>
> python2 find_orphans.py
>Traceback (most recent call last):
>  File "find_orphans.py", line 221, in <module>
>    DB = MythDB()
>  File "/usr/local/lib/python2.7/dist-packages/MythTV/database.py", line
>1271, in __init__
>    elif self._testconfig(tmpconfig):
>  File "/usr/local/lib/python2.7/dist-packages/MythTV/database.py", line
>1301, in _testconfig
>    self._schema_name)
>  File "/usr/local/lib/python2.7/dist-packages/MythTV/database.py", line
>1324, in _check_schema
>    sver = int(cursor.fetchone()[0])
>  File "/usr/local/lib/python2.7/dist-packages/MythTV/_conn_mysqldb.py",
>line 107, in __exit__
>    self.commit()
>  File "/usr/local/lib/python2.7/dist-packages/MythTV/_conn_mysqldb.py",
>line 98, in commit
>    def commit(self): self.connection.commit()
>AttributeError: 'weakref' object has no attribute 'commit'

What version of MythTV are you running?  Find_orphans.py only supports
up to 0.27, so if you are running 0.28 that might explain the problem.


More information about the mythtv-users mailing list