[GRASS-dev] [GRASS GIS] #3685: pygrass GridModule: ERROR: Unable to open element file <windows>

GRASS GIS trac at osgeo.org
Sat Oct 20 02:18:36 PDT 2018

#3685: pygrass GridModule: ERROR: Unable to open element file <windows>
  Reporter:  mlennert     |      Owner:  grass-dev@…
      Type:  defect       |     Status:  closed
  Priority:  normal       |  Milestone:  7.6.0
 Component:  PyGRASS      |    Version:  svn-trunk
Resolution:  fixed        |   Keywords:  GridModule
       CPU:  Unspecified  |   Platform:  Unspecified
Changes (by mlennert):

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


 Replying to [comment:2 mmetz]:
 > I think this is related to `gscript.use_temp_region()`. The error
 messages are all related to a region named `tmp.grid_test.py.498`, but
 this region does not exist in the subsequently created temporary mapset.
 This temporary region is defined in the current mapset and only valid in
 the current mapset. Other temporary mapsets created later on in the script
 can not access this temporary region definition, thus the ERRORs searching
 for `tmp.grid_test.py.498` in different mapsets.

 Yes, that's it. Thanks to both of you and sorry for the noise. I'm busy
 with too many things in parallel and forgot that I had only added
 use_temp_region() recently into this script.

 Don't know if it is worth trying to fit GridModule with use_temp_region(),
 so closing.

Ticket URL: <https://trac.osgeo.org/grass/ticket/3685#comment:3>
GRASS GIS <https://grass.osgeo.org>

More information about the grass-dev mailing list