[mythtvnz] Debugging epgsnoop problem.

Robin Gilks g8ecj at gilks.org
Tue Aug 12 02:12:28 BST 2008


>
>> On Tue, Aug 12, 2008 at 9:15 AM, Robin Gilks <g8ecj at gilks.org> wrote:
>>
>>> Me and epgsnoop - we do have problems!!
>>>
>>> The latest one may be related to updating to python-2.5. epgsnoop
>>> (after
>>> a
>>> re-install just in case!!) errors as follows:
>>>
>>> Traceback (most recent call last):
>>>  File "/usr/local/bin/epgsnoop", line 167, in <module>
>>>    print output(channels, programs)
>>> UnicodeEncodeError: 'ascii' codec can't encode characters in position
>>> 302228-302268: ordinal not in range(128)
>>>
>>
>> I was having the same issue. I fixed it by changing the 4th to last line
>> in
>> outputter.py to:
>>
>> return '\n'.join(output).decode('iso-8859-1',replace)
>>
>> and removing the
>>
>> ... .decode('latin-1)
>>
>> statements from the name and description sections in snooper.py.
>
> Not sure how I got my current version of epgsnoop (latest date in all the
> files is 4th March)  but it already has these changes in it :-(
>
> Since the only thing I'm aware of that has changed is the version of
> python (now at version 2.5.2), I assume its something there...

Thanks goodness for ssh links into the box at home :-)

Having got a new bzr copy, its all working again. Beats me!!


-- 
Robin Gilks





More information about the mythtvnz mailing list