[mythtvnz] Python errors in tv_grab_nz-py so mythfilldatabase fails

Robin Gilks g8ecj at gilks.org
Sun Jul 3 22:11:34 BST 2011


> On Sun, 3 Jul 2011 22:44:26 +1200, you wrote:
>
>>Greetings
>>
>>Just noticed I've got only 2 days of listings left and when I run
>>mythfilldatabase I get the following from tv_grab_nz-py.
>
> [snip]
>>  File "/usr/lib64/python2.7/socket.py", line 553, in create_connection
>>    for res in getaddrinfo(host, port, 0, SOCK_STREAM):
>>socket.gaierror: [Errno -2] Name or service not known
> [snip]
>>Hope someone has some ideas...
>
> That looks like a DNS lookup failure.  What does an nslookup of
> nzepg.org show?
>

You are quite right - I generally reference my own system but reverted to
the original epg source for testing after the failures. Unfortunately, the
version of tv_grab_nz-py I have been using was old enough to have the old
'geek' URL, hence the failure. I've updated to 0.2.6 and checked with the
online epg freeview source and that is fine.

Having pointed back at my own epgsnoop generated data it appears that the
problem is extended character set usage from 'the other' channels such
that  U omlaut, pound sign, e acute accent all cause the problem below.


2011-07-04 08:46:13.298 XMLTV config file is: /home/mythtv/.mythtv/DVB.xmltv
Traceback (most recent call last):
  File "/usr/local/bin/tv_grab_nz-py", line 264, in <module>
    doc = ElementTree.parse(StringIO(text)).getroot()
  File "<string>", line 56, in parse
  File "<string>", line 35, in parse
cElementTree.ParseError: not well-formed (invalid token): line 16602,
column 78
2011-07-04 08:46:13.484 FillData, Error: xmltv returned error code 256
2011-07-04 08:46:13.485 Error in 1:1: unexpected end of file

Interesting that mythfilldatabase in '--file' mode is OK with the data so
I can at least continue to schedule stuff.

So, it appears that:
 * epgsnoop is OK generating the data,
 * tv_cat (xlmtv utility) is OK with the data,
 * tv_grab_nz-py barfs on the data,
 * mythfilldatabase is OK with the data

Sure beats me at the moment...


-- 
Robin Gilks





More information about the mythtvnz mailing list