[mythtvnz] Debugging epgsnoop problem.

Hadley Rich hads at nice.net.nz
Tue Aug 12 00:07:14 BST 2008


On Tue, 2008-08-12 at 10:59 +1200, Steve Hodge wrote:
> 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.
> 

As you can probably tell I know little about unicode/character
encodings/etc.

I find it odd that I don't see the same issue here with the same code. I
will make some time to look into the issue (again) but it won't be for a
couple of weeks unfortunately as I'm busy with a conference for the next
little while.

hads

-- 
http://nicegear.co.nz
VoIP, DVB and other Linux compatible hardware.




More information about the mythtvnz mailing list