#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.1
Component: wxGUI | Version: svn-releasebranch64
Keywords: | Platform: MSWindows XP
Cpu: All |
----------------------+-----------------------------------------------------
In the most recent 6.4 nightly build http://josef.fsv.cvut.cz/wingrass/grass64/WinGRASS-6.4.SVN-r43715-1-Setup.exe
r.le.setup called from wxGUI fails in following way:
{{{
Traceback (most recent call last):
File "c:/Program
Files/GRASS-64-SVN/etc/wxpython/wxgui.py", line 1011, in
OnXTerm
del os.environ['GRASS_RENDER_IMMEDIATE']
File "C:\Program Files\GRASS-64-SVN\Python25\lib\os.py",
line 441, in __delitem__
del self.data[key.upper()]
KeyError
:
'GRASS_RENDER_IMMEDIATE'
}}}
On Debian Squeeze, built from r43697 of releasebranch_6_4, it starts, but
some error crops out too:
{{{
Traceback (most recent call last):
File "/usr/lib64/python2.6/dist-
packages/wx-2.8-gtk2-unicode/wx/lib/agw/flatnotebook.py",
line 3989, in OnLeftDown
if self._pagesInfoVec[tabIdx].GetEnabled():
IndexError
:
list index out of range
}}}
#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.