[QGIS-trac] Re: [Quantum GIS] #1748: (windows) GRASS gui does not show if GRASS was run with wxpyhton interface

Quantum GIS qgis at qgis.org
Wed Feb 10 08:39:48 EST 2010


#1748: (windows) GRASS gui does not show if GRASS was run with wxpyhton interface
-------------------------------------+--------------------------------------
        Reporter:  pcav              |         Owner:  nobody       
            Type:  bug               |        Status:  new          
        Priority:  minor: annoyance  |     Milestone:  Version 1.5.0
       Component:  GRASS             |       Version:  HEAD         
      Resolution:                    |      Keywords:               
Platform_version:                    |      Platform:  Windows      
        Must_fix:  No                |   Status_info:  0            
-------------------------------------+--------------------------------------
Changes (by lutra):

  * priority:  major: does not work as expected => minor: annoyance
  * summary:  GRASS shell non functional on Windows => (windows) GRASS gui
              does not show if GRASS was run with wxpyhton
              interface

Comment:

 Hi,

 I tested again qgis-dev (r12903) installed with osgeo4w (there was
 recently an update of the GRASS packages) and the good news it that
 apparently, now issuing a GRASS command -with no parameters, in the qgis
 GRASS shell- make the program to correctly open the native tcl-tk GRASS
 interface.

 A problem still remains:
 if for some reasons GRASS is launched with the new wxpython interface
 then, when a command (with no paramters) is issued in the qgis GRASS
 shell, an error is returned


 {{{
 C:\>v.in.ogr
 Traceback (most recent call last):
   File
 "C:\OSGeo4W\apps\grass\GRASS-~1.0SV/etc/wxpython/gui_modules/menuform.py"
 , line 1942, in <module>
     GrassGUIApp( grassTask( sys.argv[1] ) ).MainLoop()
   File
 "C:\OSGeo4W\apps\grass\GRASS-~1.0SV/etc/wxpython/gui_modules/menuform.py"
 , line 334, in __init__
     xml.sax.parseString( getInterfaceDescription( grassModule ) ,
 processTask( s
 elf ) )
   File
 "C:\OSGeo4W\apps\grass\GRASS-~1.0SV/etc/wxpython/gui_modules/menuform.py"
 , line 1762, in getInterfaceDescription
     cmdout = p.sub(globalvar.ETCDIR + r'/grass-interface.dtd', cmdout)
   File "C:\OSGeo4W\apps\Python25\lib\re.py", line 269, in _subx
     template = _compile_repl(template, pattern)
   File "C:\OSGeo4W\apps\Python25\lib\re.py", line 256, in _compile_repl
     raise error, v # invalid expression
 sre_constants.error: bad group name

 }}}


 to overcome this problem is enough to re-run GRASS with the tcl-tk
 interface.

-- 
Ticket URL: <https://trac.osgeo.org/qgis/ticket/1748#comment:8>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats


More information about the QGIS-trac mailing list