[mythtv-users] Problem running xmltv-proc-nz from user crontab

Stephen Worthington stephen_agent at jsw.gen.nz
Mon May 3 01:30:59 UTC 2010

I have been running my EPG script manually (from user stephen) while I
tweaked it, and it was working fine.  Now, when I am trying to run it
from user stephen's crontab, xmltv-proc-nz (0.5.6) is failing:

Running xmltv-proc-nz on the Freeview data
Movies: TMDB module not found.
Traceback (most recent call last):
  File "/usr/local/bin/xmltv-proc-nz", line 551, in <module>
    tree = ElementTree.XML(data)
  File "<string>", line 86, in XML
SyntaxError: no element found: line 1, column 0
xmltv-proc-nz failed, rc = 1

The line in the script that runs xmltv-proc-nz is this:

/usr/local/bin/xmltv-proc-nz freeview.xml >temp.xml

Line 86 in the freeview.xml file is the start of the first <programme>
element after the <channel> elements.  If I again run the script
manually immediately after the crontab fails, it works correctly.

I have no experience with Python or user crontabs, so I am hoping
someone out there will be able to give me a clue as to what this might

Also, how do I manually install the TMDB Python module?  I have tried
a number of things, but Python is still not finding it.

More information about the mythtv-users mailing list