Opened 14 years ago
Closed 11 years ago
#1015 closed defect (fixed)
WinGrass7: starting grass by grass70.py fails
| Reported by: | hellik | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 7.0.0 |
| Component: | Default | Version: | svn-trunk |
| Keywords: | wingrass, python | Cc: | |
| CPU: | x86-32 | Platform: | MSWindows Vista |
Description
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>
Change History (5)
follow-up: 2 comment:1 by , 14 years ago
follow-up: 3 comment:2 by , 14 years ago
| Component: | wxGUI → default |
|---|---|
| Keywords: | wx-gui removed |
comment:3 by , 14 years ago
Replying to glynn:
Replying to 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
Note:
See TracTickets
for help on using tickets.

Replying to hellik:
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 nameor 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