[mythtvnz] Problem running xmltv-proc-nz from user crontab

Robin Gilks g8ecj at gilks.org
Tue May 4 02:46:56 BST 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 job 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
> mean.
>
> Also, how do I install the TMDB Python module?  I have tried a number
> of things, but Python is still not finding it.  Is there a directory I
> can just copy TMDB.py to, or is there something else I need to do to
> get Python to recognise the module?  I am using Mythbuntu 9.10.

Welcome to the confused...

I've had exactly the same problem and have given up for now although I did
discover that the tmdb module is NOT the one that comes with MythTV but a
third party one. Can't remember where is comes from now but if you check
back in the archive about the start of Dec last year when Hads first
announced xmltv-proc-nz then you should find the link.

I've had the same problem with xmltv-join as well and had to go back to
using tv_cat from the xmltv utils.

There is probably some magic $PYTHONPATH that has to be set somewhere...

-- 
Robin Gilks





More information about the mythtvnz mailing list