[GRASS-dev] Re: [GRASS GIS] #1181: r.le.setup fails on WinGRASS due to missing xterm

GRASS GIS trac at osgeo.org
Tue Feb 7 05:38:11 EST 2012


#1181: r.le.setup fails on WinGRASS due to missing xterm
----------------------------------+-----------------------------------------
 Reporter:  msieczka              |       Owner:  grass-dev@…              
     Type:  defect                |      Status:  new                      
 Priority:  normal                |   Milestone:  6.4.3                    
Component:  wxGUI                 |     Version:  svn-releasebranch64      
 Keywords:  wingrass, r.le.setup  |    Platform:  MSWindows XP             
      Cpu:  All                   |  
----------------------------------+-----------------------------------------

Comment(by hamish):

 ghelp.py pops up a message explaining that you have to run the command
 from the terminal for OnXTerm.

 how to detect if we're on win32 but running cygwin?

 currently the native wingrass error for r.le.setup is:
 {{{
 Traceback...
    File "c:\program files\grass ...\wxpython\lmgr\frame.py" line 1148, in
 OnXTerm

 xmon = xmonlist[0]
 IndexError
 :
 list index out of range
 }}}

 seems like that would be reasonably easy to catch, and it should do, but
 it's pretty easy to just not build the two problematic programs if X11 is
 not present. (done in devbr6 in r50699, please test)

 technically r.le.setup is interactive on the Xmon and interactive in the
 terminal; and r.le.trace draws to the graphics driver but is not
 interactive with it, but does use G_yes() so needs to run from an
 interactive terminal.


 the r.li ones are all successfully greyed out as they were never built.

 r.digit and i.class are not built, so greyed out successfully.


 g.setproj on native WinGrass fails with a Traceback error (KerError in
 OnXTerm: `del self.data[key.upper()]`  Global name 'Command' is not
 defined); but should be present and should work from the command prompt.


 Hamish

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/1181#comment:7>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list