[GRASS-dev] [GRASS GIS] #2599: PyGRASS Raster execution error

#2599: PyGRASS Raster execution error
--------------------+-------------------------------------------------------
Reporter: aandre | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone:
Component: Python | Version: svn-releasebranch70
Keywords: raster | Platform: All
      Cpu: All |
--------------------+-------------------------------------------------------
Hello,

creating my first ticket, i hope it's relevant and the way to do it.

I get 2 errors while executing Python scripts.

source:/branches/releasebranch_7_0/lib/python/pygrass/raster/__init__.py#L415

source:/branches/releasebranch_7_0/lib/python/pygrass/raster/__init__.py#L416

I attached a diff file.

Regards,

Adrien

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

#2599: PyGRASS Raster execution error
--------------------+-------------------------------------------------------
Reporter: aandre | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone:
Component: Python | Version: svn-releasebranch70
Keywords: raster | Platform: All
      Cpu: All |
--------------------+-------------------------------------------------------

Comment(by wenzeslaus):

Replying to [ticket:2599 aandre]:
> creating my first ticket, i hope it's relevant and the way to do it.

This is definitively the way. Tickets with patch attached are greatly
appreciated. There is few things you can improve.

> I get 2 errors while executing Python scripts.

It would be good if you can post what are the steps to reproduce the error
you got. In your case probably your Python code but not the whole thing,
just minimal piece of code which produces the error (e.g. taken from
interactive command line). Use data from [http://grass.osgeo.org/download
/sample-data/ GRASS GIS NC sample dataset] to help others easily reproduce
the problem you have. In ideal case, your code can be used to create a
test case which would now expose the error and later serve as a failsafe
that the error won't happen again.

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

#2599: PyGRASS Raster execution error
--------------------+-------------------------------------------------------
Reporter: aandre | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone:
Component: Python | Version: svn-releasebranch70
Keywords: raster | Platform: All
      Cpu: All |
--------------------+-------------------------------------------------------

Comment(by aandre):

Thank you for your guidance,

i attached a Python script that generates the error and the error log.

The script is launched with `python /path/to/r.test.py elevation=elev`.

`elev` can be any raster map.

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

#2599: PyGRASS Raster execution error
---------------------+---------------------------------
  Reporter: aandre | Owner: grass-dev@…
      Type: defect | Status: new
  Priority: normal | Milestone: 7.0.1
Component: Python | Version: svn-releasebranch70
Resolution: | Keywords: raster
       CPU: All | Platform: All
---------------------+---------------------------------
Changes (by lucadelu):

* milestone: 6.4.6 => 7.0.1

Comment:

Replying to [comment:2 aandre]:
> Thank you for your guidance,
>
> i attached a Python script that generates the error and the error log.
>
> The script is launched with `python /path/to/r.test.py elevation=elev`.
>
> `elev` can be any raster map.

I commit (r65714) your patch in GRASS 7.1 (trunk), please try it.

After some tests should be backported.

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