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

Glynn Clements glynn at gclements.plus.com
Fri Mar 19 06:31:53 EDT 2010


Helmut Kudrnovsky wrote:

> 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>


More information about the grass-dev mailing list