[GRASS-dev] Re: [GRASS GIS] #995: WxGUI startup screen fails if GISDBASE path contains non-latin characters

GRASS GIS trac at osgeo.org
Thu Sep 1 12:44:33 EDT 2011


#995: WxGUI startup screen fails if GISDBASE path contains non-latin characters
----------------------------+-----------------------------------------------
 Reporter:  marisn          |       Owner:  martinl            
     Type:  defect          |      Status:  assigned           
 Priority:  critical        |   Milestone:  6.4.2              
Component:  wxGUI           |     Version:  svn-releasebranch64
 Keywords:  wingrass, i18n  |    Platform:  MSWindows Vista    
      Cpu:  Unspecified     |  
----------------------------+-----------------------------------------------

Comment(by marisn):

 Trying to launch GRASS 6.4 on a fresh install causes python to crash.
 Windows Vista 32bit.
 WinGRASS-6.4.SVN-r47993-1-Setup.exe
 Output I got by running GRASS from CMD:
 {{{
 C:\Program Files\GRASS 6.4.SVN>grass64svn.bat
 Traceback (most recent call last):
   File "C:/Program Files/GRASS 6.4.SVN/etc/wxpython/gis_set.py", line 863,
 in <m
 odule>
     GRASSStartUp = StartUp(0)
   File "c:\OSGeo4W\apps\Python25\lib\site-packages\wx-2.8-msw-
 unicode\wx\_core.p
 y", line 7935, in __init__
   File "c:\OSGeo4W\apps\Python25\lib\site-packages\wx-2.8-msw-
 unicode\wx\_core.p
 y", line 7509, in _BootstrapApp
   File "C:/Program Files/GRASS 6.4.SVN/etc/wxpython/gis_set.py", line 834,
 in On
 Init
     StartUp = GRASSStartup()
   File "C:/Program Files/GRASS 6.4.SVN/etc/wxpython/gis_set.py", line 166,
 in __
 init__
     self._set_properties()
   File "C:/Program Files/GRASS 6.4.SVN/etc/wxpython/gis_set.py", line 216,
 in _s
 et_properties
     not os.path.isdir(os.path.join(self.gisdbase, location)):
   File "C:\Program Files\GRASS 6.4.SVN\Python25\lib\ntpath.py", line 67,
 in join

     elif isabs(b):
   File "C:\Program Files\GRASS 6.4.SVN\Python25\lib\ntpath.py", line 53,
 in isab
 s
     s = splitdrive(s)[1]
   File "C:\Program Files\GRASS 6.4.SVN\Python25\lib\ntpath.py", line 119,
 in spl
 itdrive
     if p[1:2] == ':':
 TypeError: 'NoneType' object is unsubscriptable
 KŽ█DA:G_getenv(): Variable LOCATION_NAME not set
 KŽ█DA:G_getenv(): Variable LOCATION_NAME not set
 KŽ█DA:G_getenv(): Variable LOCATION_NAME not set
 }}}
 Here's .grassrc6 file contents it creates:
 {{{
 GISDBASE: C:/Users/Māris
 LOCATION_NAME: <UNKNOWN>
 MAPSET: <UNKNOWN>
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/995#comment:14>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list