[GRASS-dev] [GRASS GIS] #1565: wxGUI: command console with no map display open causes error

GRASS GIS trac at osgeo.org
Mon Feb 6 00:26:42 EST 2012


#1565: wxGUI: command console with no map display open causes error
-----------------------------+----------------------------------------------
 Reporter:  hamish           |       Owner:  grass-dev@…              
     Type:  defect           |      Status:  new                      
 Priority:  minor            |   Milestone:  6.4.2                    
Component:  wxGUI            |     Version:  svn-releasebranch64      
 Keywords:  command console  |    Platform:  Linux                    
      Cpu:  x86-64           |  
-----------------------------+----------------------------------------------
 Hi,

 if you close all map display windows so you only have the layer manager
 open, switch to the command console tab, and run 'v.info roads' or
 'r.univar elevation.dem' etc the module runs fine but an error is printed
 after it:
 {{{
 Traceback (most recent call last):
   File ".../svn/relbr_6_4/dist.x86_64
 -unknown-linux-gnu/etc/wxpython/gui_modules/goutput.py",
 line 789, in OnCmdDone

 display = self.parent.GetLayerTree().GetMapDisplay()
   File ".../svn/relbr_6_4/dist.x86_64
 -unknown-linux-gnu/etc/wxpython/wxgui.py", line 441, in
 GetLayerTree

 return self.curr_page.maptree
 AttributeError
 :
 'NoneType' object has no attribute 'maptree'
 }}}


 thanks,
 Hamish

 ps- in the grey bar between the top output pane and the bottom input pane,
 could there be some text like "Enter command below:"? otherwise new users
 just see a bunch of empty white boxes and don't know where they should
 click. 6.4.1 had some "Cmd> " text to the left of the input box which
 helped as a cue.

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



More information about the grass-dev mailing list