<div dir="ltr">Anyone else having this problem?</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Nov 12, 2013 at 8:33 AM, Robert Havlin <span dir="ltr"><<a href="mailto:bob.havlin@gmail.com" target="_blank">bob.havlin@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">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.<div>
I run the script and get the following message:</div>
<div><br></div><div><div><i>./find_orphans.py </i></div><div><i>Traceback (most recent call last):</i></div><div><i> File "./find_orphans.py", line 230, in <module></i></div><div><i> main()</i></div><div>
<i> File "./find_orphans.py", line 166, in main</i></div><div><i> recs, zerorecs, orphvids, orphimgs, dbbackup, unfiltered = populate(host)</i></div><div><i> File "./find_orphans.py", line 84, in populate</i></div>
<div><i> recs = list(DB.searchRecorded(**kwargs))</i></div><div><i> File "/usr/lib/python2.7/dist-packages/MythTV/utility/other.py", line 180, in __call__</i></div><div><i> yield self.handler.fromRaw(row, db=self.inst)</i></div>
<div><i> File "/usr/lib/python2.7/dist-packages/MythTV/database.py", line 131, in fromRaw</i></div><div><i> dbdata._evalwheredat()</i></div><div><i> File "/usr/lib/python2.7/dist-packages/MythTV/database.py", line 307, in _evalwheredat</i></div>
<div><i> DBData._evalwheredat(self, wheredat)</i></div><div><i> File "/usr/lib/python2.7/dist-packages/MythTV/database.py", line 145, in _evalwheredat</i></div><div><i> self._wheredat = eval(self._setwheredat)</i></div>
<div><i> File "<string>", line 0</i></div><div><i> </i></div><div><i> ^</i></div><div><i>SyntaxError: unexpected EOF while parsing</i></div></div><div><br></div><div><br></div><div>Looks like there is a python issue - this is also supported by the fact that I get an error when I run mythpython --version:</div>
<div><br></div><div><div><i>/usr/bin/mythpython --version</i></div><div><i>Traceback (most recent call last):</i></div><div><i> File "/usr/bin/mythpython", line 15, in <module></i></div><div><i> import MythTV.tmdb.tmdb_api</i></div>
<div><i>ImportError: No module named tmdb.tmdb_api</i></div></div><div><br></div><div><br></div><div>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.</div>
<div><br></div><div><i>import MythTV.tmdb<b>3</b>.tmdb_api<br></i></div><div><i>...</i></div><div><i>print_version('tmdb version', MythTV.tmdb<b>3</b>.tmdb_api.__version__)<br></i></div><div><br></div><div><br></div>
<div><u>Nevertheless, the original problem of find_orphans.py remains and the offending </u><i>recs = list(DB.searchRecorded(**kwargs))<u> statement</u></i></div><div><u>Any ideas what is the problem here? </u></div><div>
<br></div><div>Relevant system info:</div><div><br></div><div><div>mythbackend --version</div><div>Please attach all output as a file in bug reports.</div><div>MythTV Version : v0.26.1-26-ge075423</div><div>MythTV Branch : fixes/0.26</div>
<div>Network Protocol : 75</div><div>Library API : 0.26.20130225-1</div><div>QT Version : 4.8.3</div><div>Options compiled in:</div><div> 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</div>
</div><div><br></div><div><br></div><div><br></div><div><div>mythpython --version</div><div>MythTV Python Bindings</div><div> local versions</div><div> bindings version: 0.26.0.0</div><div> ttvdb version: 1.2.1</div>
<div> tmdb version: v0.6.17</div><div> external versions</div><div> lxml version: 2.3.5</div><div> MySQLdb version: 1.2.3.final.0</div><div> protocol versions</div><div> backend: 75</div>
<div> schema: 1307</div><div> music schema: 1018</div><div> netvision schema: 1007</div></div><div><br></div><div><br></div><div><br></div><div><div>dpkg --list |grep myth</div>
<div>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)</div><div>ii libmyth-0.26-0 2:0.26.1+fixes.20131111.e075423-0ubuntu0mythbuntu2 amd64 Common library code for MythTV and add-on modules (runtime)</div>
<div>ii libmyth-python 2:0.26.1+fixes.20131111.e075423-0ubuntu0mythbuntu2 all A python library to access some MythTV features</div><div>ii libmythes-1.2-0 2:1.2.2-1build1 amd64 simple thesaurus library</div>
<div>ii libmythtv-perl 2:0.26.1+fixes.20131111.e075423-0ubuntu0mythbuntu2 all A PERL library to access some MythTV features</div><div>ii mythbrowser 2:0.26.1+fixes.20131111.e075423-0ubuntu0mythbuntu2 amd64 A web browser for MythTV</div>
<div>ii mythbuntu-bare-client 2.2 all Mythbuntu Bare Client</div><div>ii mythbuntu-common 0.68 all Mythbuntu application support functions</div>
<div>ii mythbuntu-control-centre 0.63-0ubuntu2 all Mythbuntu Configuration Application</div><div>ii mythnetvision 2:0.26.1+fixes.20131111.e075423-0ubuntu0mythbuntu2 amd64 A Internet Video Player plugin for MythTV</div>
<div>ii mythtv-backend 2:0.26.1+fixes.20131111.e075423-0ubuntu0mythbuntu2 amd64 Personal video recorder application (server)</div><div>ii mythtv-backend-master 2:0.26.1+fixes.20131111.e075423-0ubuntu0mythbuntu2 all Metapackage to setup and configure a "Master Backend" profile of MythTV.</div>
<div>ii mythtv-common 2:0.26.1+fixes.20131111.e075423-0ubuntu0mythbuntu2 amd64 Personal video recorder application (common data)</div><div>ii mythtv-database 2:0.26.1+fixes.20131111.e075423-0ubuntu0mythbuntu2 all Personal video recorder application (database)</div>
<div>ii mythtv-frontend 2:0.26.1+fixes.20131111.e075423-0ubuntu0mythbuntu2 amd64 Personal video recorder application (client)</div><div>ii mythtv-transcode-utils 2:0.26.1+fixes.20131111.e075423-0ubuntu0mythbuntu2 amd64 Utilities used for transcoding MythTV tasks</div>
<div>ii mythweb 2:0.26.1+fixes.20131111.e075423-0ubuntu0mythbuntu2 all Web interface add-on module for MythTV</div><div>ii php-mythtv 2:0.26.1+fixes.20131111.e075423-0ubuntu0mythbuntu2 all PHP Bindings for MythTV</div>
</div><div><br></div></div>
</blockquote></div><br></div>