[GRASS-dev] [GRASS GIS] #2902: i.segment.hierarchical: Execution of subprocesses was not successful
GRASS GIS
trac at osgeo.org
Fri Sep 9 01:05:06 PDT 2016
#2902: i.segment.hierarchical: Execution of subprocesses was not successful
-------------------------+-------------------------------------------------
Reporter: mlennert | Owner: grass-dev@…
Type: defect | Status: new
Priority: normal | Milestone: 7.0.5
Component: Addons | Version: svn-trunk
Resolution: | Keywords: i.segment.hierarchical GridModule
CPU: | subprocesses
Unspecified | Platform: Unspecified
-------------------------+-------------------------------------------------
Comment (by mlennert):
Replying to [comment:5 mlennert]:
> The first error was solved, but now I get a new error (same message) at
the very end of an attempt to segment a fairly large image (400 mio
pixels), i.e. after the patching of all tiles. Unfortunately, I do not get
the error when setting the debug parameter, so I cannot see what exactly
is the issue.
>
I got a more concrete message:
{{{
Start patching the segments
Traceback (most recent call last):
File "/home/mlennert/.grass7/addons/scripts/i.segment.hierarchical",
line 254, in <module>
SEG.run()
File "/data/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-pc-linux-
gnu/etc/python/grass/pygrass/modules/grid/grid.py", line 567, in run
self.patch()
File "/home/mlennert/.grass7/addons/scripts/i.segment.hierarchical",
line 182, in patch
self.start_row, self.start_col, self.out_prefix)
File
"/home/mlennert/.grass7/addons/etc/i.segment.hierarchical/isegpatch.py",
line 46, in rpatch_map
rrasts[-1].open('r')
File "/data/home/mlennert/SRC/GRASS/grass_trunk/dist.x86_64-pc-linux-
gnu/etc/python/grass/pygrass/raster/__init__.py", line 210, in open
raise OpenError(str_err)
grass.exceptions.OpenError: La carte n'existe pas, impossible de l'ouvrir
en mode 'r'
}}}
Sorry for the French. In English it is: "The map does not exist, I can't
open in 'r' mode"
As indicated, this comes from the open() function of the RasterRow class
in lib/python/pygrass/raster/__init__.py, which is called in the
iseg_patch.py file of i.segment.hierarchical:
{{{
for col in range(len(rbbox)):
msgr.percent(row, nrows, 1)
rrasts.append(RasterRow(name=raster,
mapset=mset_str % (start_row + row,
start_col + col)))
rrasts[-1].open('r')
}}}
At this stage, I don't really understand which file it is and why it
doesn't exist...
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2902#comment:7>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list