[GRASS-dev] [GRASS GIS] #1982: v.rast.stats: running generates "Unable to fetch interface description for command" error

#1982: v.rast.stats: running generates "Unable to fetch interface description for
command" error
--------------------------+-------------------------------------------------
Reporter: neteler | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: svn-trunk
Keywords: v.rast.stats | Platform: MSWindows 7
      Cpu: Unspecified |
--------------------------+-------------------------------------------------
Recent winGRASS 7 standalone installer - running v.rast.stats
generates this error:

{{{
Traceback (most recent call last):
   File "C:\Program Files\GRASS GIS
7.0.svn\etc\gui\wxpython\lmgr\frame.py", line 737, in
OnMenuCmd

cmd = self.GetMenuCmd(event)
   File "C:\Program Files\GRASS GIS
7.0.svn\etc\gui\wxpython\lmgr\frame.py", line 722, in
GetMenuCmd

input = GUI().GetCommandInputMapParamKey(cmdlist[0])
   File "C:\Program Files\GRASS GIS
7.0.svn\etc\gui\wxpython\gui_core\forms.py", line 2296, in
GetCommandInputMapParamKey

tree =
etree.fromstring(gtask.get_interface_description(cmd))
   File "C:\Program Files\GRASS GIS
7.0.svn\etc\python\grass\script\task.py", line 464, in
get_interface_description

"\n\nDetails: %(det)s") % { 'cmd' : cmd, 'det' :
decode(cmderr) }
grass.script.core
.
ScriptError
:
Unable to fetch interface description for command
'v.rast.stats'.
Details: C:\Program Files\GRASS GIS
7.0.svn\extrabin\python.exe: can't open file 'v.rast.stats':
[Errno 2] No such file or directory
}}}

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

#1982: v.rast.stats: running generates "Unable to fetch interface description for
command" error
--------------------------+-------------------------------------------------
Reporter: neteler | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: svn-trunk
Keywords: v.rast.stats | Platform: MSWindows 7
      Cpu: Unspecified |
--------------------------+-------------------------------------------------

Comment(by annakrat):

You run it from menu? (It is always better to include the information
where you run the command from.) Is the version recent enough? Are there
any other python scripts not running?

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

#1982: v.rast.stats: running generates "Unable to fetch interface description for
command" error
--------------------------+-------------------------------------------------
Reporter: neteler | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: svn-trunk
Keywords: v.rast.stats | Platform: MSWindows 7
      Cpu: Unspecified |
--------------------------+-------------------------------------------------

Comment(by neteler):

Replying to [comment:1 annakrat]:
> You run it from menu?

Yes (it was not my own machine but from a course participant)

> Is the version recent enough?

Two days old.

> Are there any other python scripts not running?

Other look fine. It is the v.rast.stats script which gave problems on
various
machines. From the error I don't know what to look for or check on the
user's
machine.

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

#1982: v.rast.stats: running generates "Unable to fetch interface description for
command" error
--------------------------+-------------------------------------------------
Reporter: neteler | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: svn-trunk
Keywords: v.rast.stats | Platform: MSWindows 7
      Cpu: Unspecified |
--------------------------+-------------------------------------------------

Comment(by hamish):

perhaps g.parser is looking for "v.rast.stats" but only "v.rast.stats.py"
exists in the %PATH%, and it is missing the ".py" extension association?
(that only works in the DOSbox window, not the MSys one AFAIK, and GRASS7
doesn't have the .bat file wrappers in bin/)

what does "set" say at the GRASS cmd.exe prompt? is ";.PY" known?

do other python scripts like r3.in.xyz work there?

Hamish

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

#1982: v.rast.stats: running generates "Unable to fetch interface description for
command" error
--------------------------+-------------------------------------------------
  Reporter: neteler | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: svn-trunk
Resolution: fixed | Keywords: v.rast.stats
  Platform: MSWindows 7 | Cpu: Unspecified
--------------------------+-------------------------------------------------
Changes (by annakrat):

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

Comment:

Tested, seems to be fixed by relatively recent changes in calling Python
scripts.

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