Opened 16 years ago

Closed 16 years ago

#108 closed defect (fixed)

wxgrass: trying to add legend gives UnicodeDecodeError

Reported by: mlennert Owned by: martinl
Priority: major Milestone: 6.4.0
Component: Python Version: svn-trunk
Keywords: wxgrass legend unicode Cc: mlennert@…, grass-dev@…
CPU: Unspecified Platform: Unspecified

Description

In the map display, clicking on "Add overlay", then on legend, then on OK in the window that appears, gives the following error:

Traceback (most recent call last):

File "/home/mlennert/SRC/GRASS/grass_trunk/dist.i486-pc-linux-

gnu/etc/wxpython/gui_modules/mapdisp.py", line 3207, in AddBarscale

self.Map.Render(force=True)

File "/home/mlennert/SRC/GRASS/grass_trunk/dist.i486-pc-linux-

gnu/etc/wxpython/gui_modules/render.py", line 654, in Render

if not layer.Render():

File "/home/mlennert/SRC/GRASS/grass_trunk/dist.i486-pc-linux-

gnu/etc/wxpython/gui_modules/render.py", line 133, in Render

stderr=None)

File "/home/mlennert/SRC/GRASS/grass_trunk/dist.i486-pc-linux-

gnu/etc/wxpython/gui_modules/gcmd.py", line 355, in init

message="%s '%s'%s%s%s %s%s" % UnicodeDecodeError : 'ascii' codec can't decode byte 0xc3 in position 17: ordinal not in range(128)

grass svn-head 20080327 python-wxgtk 2.8.7.1 python 2.4.4

Moritz

Change History (6)

comment:1 by mlennert, 16 years ago

Sorry, forgot to mention that this is on Debian/Etch GNU/Linux.

comment:2 by martinl, 16 years ago

Cc: grass-dev@… added
Owner: changed from grass-dev@… to martinl
Status: newassigned

comment:3 by martinl, 16 years ago

Should be fixed in trunk now, r30878. For adding legend you need to specify raster map name in the properties dialog. Martin

comment:4 by mlennert, 16 years ago

Seems to be fixed, but see other error (#107).

However, would it be possible to preset the raster map name to the currently selected map, if it is a raster ?

Moritz

in reply to:  4 comment:5 by martinl, 16 years ago

Replying to mlennert:

Seems to be fixed, but see other error (#107).

However, would it be possible to preset the raster map name to the currently selected map, if it is a raster ?

Implemented, see r30922. Martin

comment:6 by martinl, 16 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.