[GRASS-dev] [GRASS GIS] #1015: WinGrass7: starting grass by grass70.py fails

#1015: WinGrass7: starting grass by grass70.py fails
--------------------------------------+-------------------------------------
Reporter: hellik | Owner: grass-dev@lists.osgeo.org
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: svn-trunk
Keywords: wingrass, wx-gui, python | Platform: MSWindows Vista
      Cpu: x86-32 |
--------------------------------------+-------------------------------------
from the dev-ml:

{{{
> grass7 (r41470) self compiled in the osgeo4w-stack
>
> the osgeo4w-python is Python 2.5.2
>
> opened the osgeo4w-command-line and typed in:
>
> python grass70.py
>
> the starting wx-window of grass is opening and I'm able to choose the
location and mapset,
> but then following error message comes up:
>
> "Traceback (most recent call last):
>
> File "grass70.py", line 921, in <module>
> check_shell()
> File "grass70.py", line 550, in check_shell
> sh = os.path.basename(os.getenv('SHELL'))
> File "C:\OSGeo4W\apps\Python25\lib\ntpath.py", line 200, in basename
> return split(p)[1]
> File "C:\OSGeo4W\apps\Python25\lib\ntpath.py", line 164, in split
> d, p = splitdrive(p)
> File "C:\OSGeo4W\apps\Python25\lib\ntpath.py", line 119, in splitdrive
> if p[1:2] == ':':
> TypeError: 'NoneType' objects is unsubscriptable

Try r41475.
--
Glynn Clements <glynn at gclements.plus.com>

}}}

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

#1015: WinGrass7: starting grass by grass70.py fails
------------------------------+---------------------------------------------
  Reporter: hellik | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: normal | Milestone: 7.0.0
Component: wxGUI | Version: svn-trunk
Resolution: | Keywords: wingrass, wx-gui, python
  Platform: MSWindows Vista | Cpu: x86-32
------------------------------+---------------------------------------------
Comment (by hellik):

Replying to [ticket:1015 hellik]:
> Try r41475.

trying r41475 i get one step further, layer manager and map display are
starting.

but adding a raster

{{{
Traceback (most recent call last):
   File "c:\osgeo4w\usr\src\grass_trunk\dist.i686-pc-
mingw32\etc\wxpython\wxgui.py", line 1200, in OnAddRaster

self.AddRaster(event)
   File "c:\osgeo4w\usr\src\grass_trunk\dist.i686-pc-
mingw32\etc\wxpython\wxgui.py", line 1325, in AddRaster

self.curr_page.maptree.AddLayer('raster')
   File "c:/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
mingw32/etc/wxpython/gui_modules/wxgui_utils.py", line 792,
in AddLayer

self.PropertiesDialog(layer, show=True)
   File "c:/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
mingw32/etc/wxpython/gui_modules/wxgui_utils.py", line 860,
in PropertiesDialog

parentframe=self)
   File "c:/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
mingw32/etc/wxpython/gui_modules/menuform.py", line 1948, in
ParseCommand

self.grass_task = self.ParseInterface(cmd)
   File "c:/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
mingw32/etc/wxpython/gui_modules/menuform.py", line 1918, in
ParseInterface

tree = etree.fromstring(getInterfaceDescription(cmd[0]))
   File "c:/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
mingw32/etc/wxpython/gui_modules/menuform.py", line 1876, 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
}}}

or vector

{{{
Traceback (most recent call last):
   File "c:\osgeo4w\usr\src\grass_trunk\dist.i686-pc-
mingw32\etc\wxpython\wxgui.py", line 1200, in OnAddRaster

self.AddRaster(event)
   File "c:\osgeo4w\usr\src\grass_trunk\dist.i686-pc-
mingw32\etc\wxpython\wxgui.py", line 1325, in AddRaster

self.curr_page.maptree.AddLayer('raster')
   File "c:/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
mingw32/etc/wxpython/gui_modules/wxgui_utils.py", line 792,
in AddLayer

self.PropertiesDialog(layer, show=True)
   File "c:/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
mingw32/etc/wxpython/gui_modules/wxgui_utils.py", line 860,
in PropertiesDialog

parentframe=self)
   File "c:/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
mingw32/etc/wxpython/gui_modules/menuform.py", line 1948, in
ParseCommand

self.grass_task = self.ParseInterface(cmd)
   File "c:/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
mingw32/etc/wxpython/gui_modules/menuform.py", line 1918, in
ParseInterface

tree = etree.fromstring(getInterfaceDescription(cmd[0]))
   File "c:/osgeo4w/usr/src/grass_trunk/dist.i686-pc-
mingw32/etc/wxpython/gui_modules/menuform.py", line 1876, 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
}}}

{{{
g.gisenv -n
MAPSET=g7
GISDBASE=C:\gisdata\grassdata
LOCATION_NAME=nc_spm_08
GRASS_GUI=wxpython
}}}

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

#1015: WinGrass7: starting grass by grass70.py fails
------------------------------+---------------------------------------------
  Reporter: hellik | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: normal | Milestone: 7.0.0
Component: default | Version: svn-trunk
Resolution: | Keywords: wingrass, python
  Platform: MSWindows Vista | Cpu: x86-32
------------------------------+---------------------------------------------
Changes (by glynn):

  * keywords: wingrass, wx-gui, python => wingrass, python
  * component: wxGUI => default

Comment:

Replying to [comment:1 hellik]:

> > Try r41475.
>
> trying r41475 i get one step further, layer manager and map display are
starting.
>
> but adding a raster

This is a different issue. Please open a separate bug report for it.

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

#1015: WinGrass7: starting grass by grass70.py fails
------------------------------+---------------------------------------------
  Reporter: hellik | Owner: grass-dev@lists.osgeo.org
      Type: defect | Status: new
  Priority: normal | Milestone: 7.0.0
Component: default | Version: svn-trunk
Resolution: | Keywords: wingrass, python
  Platform: MSWindows Vista | Cpu: x86-32
------------------------------+---------------------------------------------
Comment (by hellik):

Replying to [comment:2 glynn]:
> Replying to [comment:1 hellik]:
>
> > > Try r41475.
> >
> > trying r41475 i get one step further, layer manager and map display
are starting.
> >
> > but adding a raster
>
> This is a different issue. Please open a separate bug report for it.

so with r41475 starting grass by grass70.py in the (osgeo4w)-windows-
commandline is working.

I'll open another ticket for the second issue.

Helmut

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

#1015: WinGrass7: starting grass by grass70.py fails
------------------------------+---------------------------------------------
Reporter: hellik | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.0.0
Component: default | Version: svn-trunk
Keywords: wingrass, python | Platform: MSWindows Vista
      Cpu: x86-32 |
------------------------------+---------------------------------------------

Comment(by neteler):

See #1137 for explanation of "bad group name".

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

#1015: WinGrass7: starting grass by grass70.py fails
------------------------------+---------------------------------------------
  Reporter: hellik | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.0.0
Component: Default | Version: svn-trunk
Resolution: fixed | Keywords: wingrass, python
  Platform: MSWindows Vista | Cpu: x86-32
------------------------------+---------------------------------------------
Changes (by neteler):

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

Comment:

Appears to be solved, closing.

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