[mythtv-users] MythTV 0.26 find_orphans.py not working

Robert Havlin bob.havlin at gmail.com
Tue Nov 12 16:33:23 UTC 2013


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 *
*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*
*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 at the end.


*import MythTV.tmdb3.tmdb_api*
*...*

*print_version('tmdb version', MythTV.tmdb3.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?  *

Relevant system info:

mythbackend --version
Please attach all output as a file in bug reports.
MythTV Version : v0.26.1-26-ge075423
MythTV Branch : fixes/0.26
Network Protocol : 75
Library API : 0.26.20130225-1
QT Version : 4.8.3
Options compiled in:
 linux profile use_hidesyms using_alsa using_oss using_pulse
using_pulseoutput using_backend using_bindings_perl using_bindings_python
using_bindings_php using_crystalhd using_dvb using_firewire using_frontend
using_hdhomerun using_ceton using_hdpvr using_iptv using_ivtv
using_joystick_menu using_libcec using_libcrypto using_libdns_sd
using_libxml2 using_lirc using_mheg using_opengl_video using_qtwebkit
using_qtscript using_qtdbus using_v4l2 using_x11 using_xrandr using_xv
using_bindings_perl using_bindings_python using_bindings_php
using_mythtranscode using_opengl using_vaapi using_vdpau
using_ffmpeg_threads using_live using_mheg using_libass using_libxml2



mythpython --version
MythTV Python Bindings
  local versions
    bindings version:         0.26.0.0
    ttvdb version:            1.2.1
    tmdb version:             v0.6.17
  external versions
    lxml version:             2.3.5
    MySQLdb version:          1.2.3.final.0
  protocol versions
    backend:                  75
    schema:                   1307
    music schema:             1018
    netvision schema:         1007



dpkg --list |grep myth
rc  libmyth-0.25-0
 2:0.25.2+fixes.20120802.46cab93-0ubuntu1.12.10     amd64        Common
library code for MythTV and add-on modules (runtime)
ii  libmyth-0.26-0
 2:0.26.1+fixes.20131111.e075423-0ubuntu0mythbuntu2 amd64        Common
library code for MythTV and add-on modules (runtime)
ii  libmyth-python
 2:0.26.1+fixes.20131111.e075423-0ubuntu0mythbuntu2 all          A python
library to access some MythTV features
ii  libmythes-1.2-0                           2:1.2.2-1build1
                     amd64        simple thesaurus library
ii  libmythtv-perl
 2:0.26.1+fixes.20131111.e075423-0ubuntu0mythbuntu2 all          A PERL
library to access some MythTV features
ii  mythbrowser
2:0.26.1+fixes.20131111.e075423-0ubuntu0mythbuntu2 amd64        A web
browser for MythTV
ii  mythbuntu-bare-client                     2.2
                     all          Mythbuntu Bare Client
ii  mythbuntu-common                          0.68
                      all          Mythbuntu application support functions
ii  mythbuntu-control-centre                  0.63-0ubuntu2
                     all          Mythbuntu Configuration Application
ii  mythnetvision
2:0.26.1+fixes.20131111.e075423-0ubuntu0mythbuntu2 amd64        A Internet
Video Player plugin for MythTV
ii  mythtv-backend
 2:0.26.1+fixes.20131111.e075423-0ubuntu0mythbuntu2 amd64        Personal
video recorder application (server)
ii  mythtv-backend-master
2:0.26.1+fixes.20131111.e075423-0ubuntu0mythbuntu2 all          Metapackage
to setup and configure a "Master Backend" profile of MythTV.
ii  mythtv-common
2:0.26.1+fixes.20131111.e075423-0ubuntu0mythbuntu2 amd64        Personal
video recorder application (common data)
ii  mythtv-database
2:0.26.1+fixes.20131111.e075423-0ubuntu0mythbuntu2 all          Personal
video recorder application (database)
ii  mythtv-frontend
2:0.26.1+fixes.20131111.e075423-0ubuntu0mythbuntu2 amd64        Personal
video recorder application (client)
ii  mythtv-transcode-utils
 2:0.26.1+fixes.20131111.e075423-0ubuntu0mythbuntu2 amd64        Utilities
used for transcoding MythTV tasks
ii  mythweb
2:0.26.1+fixes.20131111.e075423-0ubuntu0mythbuntu2 all          Web
interface add-on module for MythTV
ii  php-mythtv
 2:0.26.1+fixes.20131111.e075423-0ubuntu0mythbuntu2 all          PHP
Bindings for MythTV
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mythtv.org/pipermail/mythtv-users/attachments/20131112/72ed1f38/attachment.html>


More information about the mythtv-users mailing list