Opened 12 years ago
Closed 10 years ago
#1982 closed defect (fixed)
v.rast.stats: running generates "Unable to fetch interface description for command" error
Reported by: | neteler | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 7.0.0 |
Component: | wxGUI | Version: | svn-trunk |
Keywords: | v.rast.stats | Cc: | |
CPU: | Unspecified | Platform: | MSWindows 7 |
Description
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
Change History (4)
follow-up: 2 comment:1 by , 12 years ago
comment:2 by , 12 years ago
Replying to 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.
comment:3 by , 12 years ago
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
comment:4 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Tested, seems to be fixed by relatively recent changes in calling Python scripts.
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?