[Urwid] graph.py -- encoding error
Rebecca Breu
rebecca at rbreu.de
Tue Jul 25 03:20:19 EDT 2006
Zitat von Ian Ward <ian at excess.org>:
>
> Would you change util.py line 104 to:
> try:
> s = s.encode( _target_encoding )
> except UnicodeError:
> assert 0, `_use_dec_special, s`
> and post the output?
Here it is:
Traceback (most recent call last):
File "./graph.py", line 375, in ?
main()
File "./graph.py", line 372, in main
GraphController().main()
File "./graph.py", line 315, in __init__
self.view = GraphView( self )
File "./graph.py", line 129, in __init__
urwid.WidgetWrap.__init__(self, self.main_window())
File "./graph.py", line 295, in main_window
vline = urwid.AttrWrap( urwid.SolidFill(u'\u2502'), 'line')
File "./urwid/widget.py", line 91, in __init__
c = Text(fill_char).render((1,))
File "./urwid/widget.py", line 188, in render
return apply_text_layout( text, attr, trans, maxcol )
File "./urwid/canvas.py", line 353, in apply_text_layout
tseg, cs = apply_target_encoding(
File "./urwid/util.py", line 107, in apply_target_encoding
assert 0, `_use_dec_special, s`
AssertionError: (1, u'\u2502')
The machine in question is an AIX 5.3 with Python 2.2.0, to which I login via
ssh. Unfortunately, I don't know much about encodings and the like, so I have
no idea what could be wrong. But if there's something else I can do, just let
me know.
As for the other problem I posted last week -- that has to wait a few more days,
since at the moment I'm very busy. :-/
Regards,
Rebecca
More information about the Urwid
mailing list