Ticket #108 (closed defect: fixed)

Opened 5 years ago

Last modified 5 years ago

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@…
Platform: CPU:

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

  Changed 5 years ago by mlennert

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

  Changed 5 years ago by martinl

  • cc grass-dev@… added
  • owner changed from grass-dev@… to martinl
  • status changed from new to assigned

  Changed 5 years ago by martinl

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

follow-up: ↓ 5   Changed 5 years ago by 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 ?

Moritz

in reply to: ↑ 4   Changed 5 years ago by martinl

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

  Changed 5 years ago by martinl

  • status changed from assigned to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.