[mythtv-users] Problem running find_orphans.py
crow.jamesm at gmail.com
Fri Jan 7 20:47:27 UTC 2011
On Fri, Jan 7, 2011 at 3:40 PM, James Crow <crow.jamesm at gmail.com> wrote:
> Hello list,
> I am trying to clean up my recording files and database meta data. I
> use the mythwikiscript to download the find_orphans.py script. When I
> run find_orphans.py it shows me several shows that have meta data, but
> no file is found. If I try to delete the meta data the script bombs.
> Some of the other script functions completed ok. It is only "Delete
> orphaned recording entries" that is failing.
> I am running Mythbuntu 10.04 amd64.
> james at james-desktop:~/bin$ dpkg -l |grep myth | egrep "(python|backend)"
> ii libmyth-python
> 2:0.24.0+fixes.20110106.c6c50df-0ubuntu0mythbuntu1 A python library to
> access some MythTV features
> ii mythtv-backend
> 2:0.24.0+fixes.20110106.c6c50df-0ubuntu0mythbuntu1 A personal video
> recorder application (server)
> james at james-desktop:~/bin$ mythbackend --version
> Please attach all output as a file in bug reports.
> MythTV Version : v0.24-101-gc6c50df
> MythTV Branch : fixes/0.24
> Network Protocol : 63
> Library API : 0.24.20101129-1
> QT Version : 4.6.2
> Options compiled in:
> linux debug using_alsa using_jack using_oss using_pulse
> using_pulseoutput using_backend using_bindings_perl
> using_bindings_python using_directfb using_dvb using_firewire
> using_frontend using_hdhomerun using_hdpvr using_iptv using_ivtv
> using_joystick_menu using_lirc using_mheg using_opengl_video
> using_opengl_vsync using_qtdbus using_qtwebkit using_v4l using_x11
> using_xrandr using_xv using_bindings_perl using_bindings_python
> using_mythtranscode using_opengl using_vdpau using_ffmpeg_threads
> using_live using_mheg
> This is the output from find_orphans.py:
> <-- snip initial program output -->
> Please select from the following
> 1. Delete orphaned recording entries
> 2. Delete zero byte recordings
> 3. Refresh list
> The following recordings will be deleted
> james-desktop: Barney & Friends - The Big Garden; Get Happy!
> james-desktop: Barney & Friends - The Magic Lamp, a Travel Adventure
> <-- snip many rows of output -->
> james-desktop: The Talk
> james-desktop: The Talk
> james-desktop: Two and a Half Men - Big Flappy Bastards
> Count: 79
> Are you sure you want to continue?
> Traceback (most recent call last):
> File "./find_orphans.py", line 225, in <module>
> File "./find_orphans.py", line 209, in main
> File "./find_orphans.py", line 129, in delete_recs
> rec.delete(True, True)
> File "/usr/lib/pymodules/python2.6/MythTV/dataheap.py", line 215, in delete
> return self.getProgram().delete(force, rerecord)
> AttributeError: 'NoneType' object has no attribute 'delete'
> james at james-desktop:~/bin$
> Any help appreciated.
I ran the script again and now it shows only 15 recordings with
missing files. Something is still running and removing the meta data.
The first recording in the list has a ! in the name. I wonder if that
could be why it crashed?
I waited a few minutes longer and now all recordings with missing
files have been removed.
Not sure why the script crashed (and three times in a row at that),
but it appears to have completed.
More information about the mythtv-users