[mythtv-commits] Ticket #11951: MythTV 0.26 find_orphans.py not working

MythTV noreply at mythtv.org
Sun Nov 17 19:00:07 UTC 2013


#11951: MythTV 0.26 find_orphans.py not working
-------------------------------------+-------------------------------------
     Reporter:  bob.havlin@…         |      Owner:  mdean
         Type:  Bug Report -         |     Status:  new
  General                            |  Milestone:  unknown
     Priority:  minor                |    Version:  0.26-fixes
    Component:  Contributed Scripts  |   Keywords:  find_orphans.py python
  & Apps                             |  orphans
     Severity:  medium               |
Ticket locked:  0                    |
-------------------------------------+-------------------------------------
 I have previously used this script successfully, and it worked well (even
 on 0.26).   This time, after a drive failure, I have a lot of missing
 recordings that I wanted to clean up.
 I run the script and get the following message:

 ./find_orphans.py
 {{{#!python
 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 84, in populate
     recs = list(DB.searchRecorded(**kwargs))
   File "/usr/lib/python2.7/dist-packages/MythTV/utility/other.py", line
 180, in __call__
     yield self.handler.fromRaw(row, db=self.inst)
   File "/usr/lib/python2.7/dist-packages/MythTV/database.py", line 131, in
 fromRaw
     dbdata._evalwheredat()
   File "/usr/lib/python2.7/dist-packages/MythTV/database.py", line 307, in
 _evalwheredat
     DBData._evalwheredat(self, wheredat)
   File "/usr/lib/python2.7/dist-packages/MythTV/database.py", line 145, in
 _evalwheredat
     self._wheredat = eval(self._setwheredat)
   File "<string>", line 0

     ^
 SyntaxError: unexpected EOF while parsing
 }}}

 Looks like there is a python issue - this is also supported by the fact
 that I get an error when I run mythpython --version:

 /usr/bin/mythpython --version
 {{{#!python
 Traceback (most recent call last):
   File "/usr/bin/mythpython", line 15, in <module>
     import MythTV.tmdb.tmdb_api
 ImportError: No module named tmdb.tmdb_api
 }}}

 If I change the following lines to include the "3" in tmdb (as is the
 proper directory name for: /usr/lib/python2.7/dist-packages/MythTV/tmdb3/)
 - it works as is shown in attached.


 ''import MythTV.tmdb'''3'''.tmdb_api
 ...
 print_version('tmdb version', MythTV.tmdb'''3'''.tmdb_api.__version__)''


 Nevertheless, the original problem of find_orphans.py remains and the
 offending ''recs = list(DB.searchRecorded(* *kwargs))'' statement

 Any ideas what is the problem here?

--
Ticket URL: <http://code.mythtv.org/trac/ticket/11951>
MythTV <http://www.mythtv.org>
MythTV Media Center


More information about the mythtv-commits mailing list