[GRASS-dev] [GRASS GIS] #3596: d.rast.edit: aspect map editing broken with AttributeError: 'module' object has no attribute 'NamedColor'

GRASS GIS trac at osgeo.org
Sun Jun 24 02:56:02 PDT 2018


#3596: d.rast.edit: aspect map editing broken with AttributeError: 'module' object
has no attribute 'NamedColor'
-------------------------+---------------------------------
 Reporter:  neteler      |      Owner:  grass-dev@…
     Type:  defect       |     Status:  new
 Priority:  normal       |  Milestone:  7.4.2
Component:  wxGUI        |    Version:  svn-releasebranch74
 Keywords:  d.rast.edit  |        CPU:  Unspecified
 Platform:  Unspecified  |
-------------------------+---------------------------------
 At time no editing of an aspect map is possible:

 {{{
 GRASS 7.4.1svn (nc_spm_08_grass7): >

 # create aspect map
 r.slope.aspect elev=elev_lid792_1m asp=elev_lid792_1m_asp

 # run editing of it
 d.rast.edit input=elev_lid792_1m aspect=elev_lid792_1m_asp
 output=elev_lid792_1m_modified
 ...scripts/d.rast.edit:211: wxPyDeprecationWarning: Call to deprecated
 item.
   self.SetVirtualSizeHints(50, 50)

 Traceback (most recent call last):
   File "/home/mneteler/software/grass74/dist.x86_64-pc-linux-
 gnu/scripts/d.rast.edit", line 342, in OnPaint2
     self.paint_rect(dc, x, y, w, h)
   File "/home/mneteler/software/grass74/dist.x86_64-pc-linux-
 gnu/scripts/d.rast.edit", line 323, in paint_rect
     self.paint_cell(dc, r, c)
   File "/home/mneteler/software/grass74/dist.x86_64-pc-linux-
 gnu/scripts/d.rast.edit", line 304, in paint_cell
     r, g, b = wx.NamedColor(fill)
 AttributeError: 'module' object has no attribute 'NamedColor'
 ...
 }}}

 In addition, when the aspect map does not exist, the error is not properly
 trapped in Python.

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/3596>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list