[GRASS-dev] [GRASS GIS] #108: wxgrass: trying to add legend gives UnicodeDecodeError

#108: wxgrass: trying to add legend gives UnicodeDecodeError
------------------------------------+---------------------------------------
Reporter: mlennert | Owner: grass-dev@lists.osgeo.org
     Type: defect | Status: new
Priority: major | Milestone: 6.4.0
Component: Python | Version: svn-trunk
Keywords: wxgrass legend unicode |
------------------------------------+---------------------------------------
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

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/108&gt;
GRASS GIS <http://grass.osgeo.org>
GRASS Geographic Information System (GRASS GIS) - http://grass.osgeo.org/

#108: wxgrass: trying to add legend gives UnicodeDecodeError
-----------------------+----------------------------------------------------
  Reporter: mlennert | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: major | Milestone: 6.4.0
Component: Python | Version: svn-trunk
Resolution: | Keywords: wxgrass legend unicode
-----------------------+----------------------------------------------------
Comment (by mlennert):

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

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/108#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>
GRASS Geographic Information System (GRASS GIS) - http://grass.osgeo.org/

#108: wxgrass: trying to add legend gives UnicodeDecodeError
-----------------------+----------------------------------------------------
  Reporter: mlennert | Owner: martinl
      Type: defect | Status: assigned
  Priority: major | Milestone: 6.4.0
Component: Python | Version: svn-trunk
Resolution: | Keywords: wxgrass legend unicode
-----------------------+----------------------------------------------------
Changes (by martinl):

  * status: new => assigned
  * owner: grass-dev@lists.osgeo.org => martinl
* cc: grass-dev@lists.osgeo.org (added)

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/108#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>
GRASS Geographic Information System (GRASS GIS) - http://grass.osgeo.org/

#108: wxgrass: trying to add legend gives UnicodeDecodeError
-----------------------+----------------------------------------------------
  Reporter: mlennert | Owner: martinl
      Type: defect | Status: assigned
  Priority: major | Milestone: 6.4.0
Component: Python | Version: svn-trunk
Resolution: | Keywords: wxgrass legend unicode
-----------------------+----------------------------------------------------
Comment (by martinl):

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

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/108#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>
GRASS Geographic Information System (GRASS GIS) - http://grass.osgeo.org/

#108: wxgrass: trying to add legend gives UnicodeDecodeError
-----------------------+----------------------------------------------------
  Reporter: mlennert | Owner: martinl
      Type: defect | Status: assigned
  Priority: major | Milestone: 6.4.0
Component: Python | Version: svn-trunk
Resolution: | Keywords: wxgrass legend unicode
-----------------------+----------------------------------------------------
Comment (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

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/108#comment:4&gt;
GRASS GIS <http://grass.osgeo.org>
GRASS Geographic Information System (GRASS GIS) - http://grass.osgeo.org/

#108: wxgrass: trying to add legend gives UnicodeDecodeError
-----------------------+----------------------------------------------------
  Reporter: mlennert | Owner: martinl
      Type: defect | Status: assigned
  Priority: major | Milestone: 6.4.0
Component: Python | Version: svn-trunk
Resolution: | Keywords: wxgrass legend unicode
-----------------------+----------------------------------------------------
Comment (by martinl):

Replying to [comment:4 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

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/108#comment:5&gt;
GRASS GIS <http://grass.osgeo.org>
GRASS Geographic Information System (GRASS GIS) - http://grass.osgeo.org/

#108: wxgrass: trying to add legend gives UnicodeDecodeError
-----------------------+----------------------------------------------------
  Reporter: mlennert | Owner: martinl
      Type: defect | Status: closed
  Priority: major | Milestone: 6.4.0
Component: Python | Version: svn-trunk
Resolution: fixed | Keywords: wxgrass legend unicode
-----------------------+----------------------------------------------------
Changes (by martinl):

  * status: assigned => closed
  * resolution: => fixed

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/108#comment:6&gt;
GRASS GIS <http://grass.osgeo.org>
GRASS Geographic Information System (GRASS GIS) - http://grass.osgeo.org/