[GRASS-dev] Re: [GRASS GIS] #528: wxGUI cmd: r.mapcalc fails (quoting + args with spaces)

GRASS GIS trac at osgeo.org
Sun May 24 01:07:01 EDT 2009


#528: wxGUI cmd: r.mapcalc fails (quoting + args with spaces)
-----------------------+----------------------------------------------------
  Reporter:  neteler   |       Owner:  grass-dev at lists.osgeo.org
      Type:  defect    |      Status:  new                      
  Priority:  critical  |   Milestone:  6.4.0                    
 Component:  wxGUI     |     Version:  svn-develbranch6         
Resolution:            |    Keywords:                           
  Platform:  All       |         Cpu:  All                      
-----------------------+----------------------------------------------------
Comment (by hamish):

 Replying to [comment:15 martinl]:
 > Modified path applied in trunk (r37395), devbr6 (r37396) and relbr64
 (r37397).

 thanks.

 > Testing welcomed ...

  * autoparsing is nice in theory but slows things down and breaks for non-
 grass commands. e.g. "ls -l" or "gdalinfo --version"
  * left and right arrows don't work to move the cursor

 {{{
 in the terminal:
 ls: unrecognised option `--interface-description'
 Try `ls --help' for more information.
 ...

 in the Command output tab:
 ...
 self._module = menuform.GUI().ParseInterface(cmd = cmd)
   File "/usr/src/grass/svn/develbranch_6/dist.i686-pc-linux-
 gnu/etc/wxpython/gui_modules/menuform.py", line 1809, in
 ParseInterface

 xml.sax.parseString(getInterfaceDescription(cmd[0]).decode(e
 nc).encode("utf-8"),
   File "/usr/src/grass/svn/develbranch_6/dist.i686-pc-linux-
 gnu/etc/wxpython/gui_modules/menuform.py", line 1769, in
 getInterfaceDescription

 raise IOError, _("Unable to fetch interface description for
 command '%s'.") % cmd
 IOError
 :
 Unable to fetch interface description for command 'ls'.
 }}}


 gdalinfo --version:
 {{{
   File "/usr/lib/python2.5/xml/sax/xmlreader.py", line 123,
 in parse

 self.feed(buffer)
   File "/usr/lib/python2.5/xml/sax/expatreader.py", line
 211, in feed

 self._err_handler.fatalError(exc)
   File "/usr/lib/python2.5/xml/sax/handler.py", line 38, in
 fatalError

 raise exception
 xml.sax._exceptions
 .
 SAXParseException
 :
 <unknown>:1:0: syntax error
 }}}

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/528#comment:16>
GRASS GIS <http://grass.osgeo.org>


More information about the grass-dev mailing list