[GRASS-dev] [GRASS GIS] #2091: r.series error in GRASS7 wxGUI

#2091: r.series error in GRASS7 wxGUI
-----------------------------+----------------------------------------------
Reporter: richardc | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: unspecified
Keywords: r.series, wxGui | Platform: Linux
      Cpu: x86-32 |
-----------------------------+----------------------------------------------
Hi,

The following error occurs when attempting to sum 8 rasters in r.series
from the wxGUI.

However, I'm able to run r.series from the GRASS terminal window.

Cheers,
Richard
GRASS v57721 (on Linux Mint 13/Ubuntu Precise)

Traceback (most recent call last):
   File "/home/rcooper/grass7/grass7_trunk/dist.i686-pc-
linux-gnu/etc/gui/wxpython/gui_core/forms.py", line 698, in
OnRun

ret = self._gconsole.RunCmd(cmd, onDone = self.OnDone)
   File "/home/rcooper/grass7/grass7_trunk/dist.i686-pc-
linux-gnu/etc/gui/wxpython/core/gconsole.py", line 497, in
RunCmd

task = GUI(show=None).ParseCommand(command)
   File "/home/rcooper/grass7/grass7_trunk/dist.i686-pc-
linux-gnu/etc/gui/wxpython/gui_core/forms.py", line 2307, in
ParseCommand

mapset = grass.find_file(value, element)['mapset']
KeyError
:
'mapset'

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2091&gt;
GRASS GIS <http://grass.osgeo.org>

#2091: r.series error in GRASS7 wxGUI
-----------------------------+----------------------------------------------
Reporter: richardc | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: unspecified
Keywords: r.series, wxGui | Platform: Linux
      Cpu: x86-32 |
-----------------------------+----------------------------------------------

Comment(by richardc):

Related to this issue? http://trac.osgeo.org/grass/ticket/1808

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2091#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#2091: r.series error in GRASS7 wxGUI
-----------------------------+----------------------------------------------
Reporter: richardc | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: svn-trunk
Keywords: r.series, wxGui | Platform: Linux
      Cpu: x86-32 |
-----------------------------+----------------------------------------------
Changes (by richardc):

  * version: unspecified => svn-trunk

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2091#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#2091: r.series error in GRASS7 wxGUI
-----------------------------+----------------------------------------------
Reporter: richardc | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: svn-trunk
Keywords: r.series, wxGui | Platform: Linux
      Cpu: x86-32 |
-----------------------------+----------------------------------------------

Comment(by annakrat):

I am not able to reproduce the error (Ubuntu 12.04). Does this happen
always? What about different number of maps?

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2091#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>

#2091: r.series error in GRASS7 wxGUI
-----------------------------+----------------------------------------------
Reporter: richardc | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: svn-trunk
Keywords: r.series, wxGui | Platform: Linux
      Cpu: x86-32 |
-----------------------------+----------------------------------------------

Comment(by richardc):

I discovered r.series in wxgui works if 7 maps are input, but not 8?

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2091#comment:4&gt;
GRASS GIS <http://grass.osgeo.org>

#2091: r.series error in GRASS7 wxGUI
-----------------------------+----------------------------------------------
Reporter: richardc | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: svn-trunk
Keywords: r.series, wxGui | Platform: Linux
      Cpu: x86-32 |
-----------------------------+----------------------------------------------

Comment(by annakrat):

Should be fixed in r57950. It's connected to #1808 and #1814, so these
should be fixed now. The problem is that the gui dialog attempts to add
mapset to the map name if missing. But in case of multiple maps the mapset
is considered to be everything after the first @ which can be too long and
then g.findfile crashes. So now it doesn't try to add mapset in case of
multiple maps. It could add mapset for each of the maps but in case of a
lot of maps it could slow down everything and I don't really know if
adding mapsets is needed at all.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2091#comment:5&gt;
GRASS GIS <http://grass.osgeo.org>

#2091: r.series error in GRASS7 wxGUI
-----------------------+----------------------------------------------------
  Reporter: richardc | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: svn-trunk
Resolution: fixed | Keywords: r.series, wxGui
  Platform: Linux | Cpu: x86-32
-----------------------+----------------------------------------------------
Changes (by annakrat):

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

Comment:

It's probably fixed and I am closing the related tickets too.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2091#comment:6&gt;
GRASS GIS <http://grass.osgeo.org>