[GRASS-user] Error when I start GRASS

William Kyngesburye woklist at kyngchaos.com
Sun Jun 3 12:28:15 PDT 2012


This is a common problem (search the list for details) - I have yet to find the source of the problem, but the solution is to set LC_CTYPE in your ~/.bash_profile:

export LC_CTYPE=en_US.UTF-8

If you want a different language, you need to know what your language code is.  'locale' might help (one of the other LC_* or LANG values), but that's where the problem is.

On Jun 3, 2012, at 12:27 PM, Prof. Ricardo Zúñiga wrote:

>  I appreciate your help to correct the following error when I start GRASS on my Mac.:
> 
> Mac-Ricardo:~ ricardoflaviozunigacorzo$ '/Applications/GRASS-6.4.app/Contents/MacOS/grass.sh'; exit
> Rebuilding Addon HTML manual pages index...
> Rebuilding Addon menu...
> Python 2.6.7 found.
> 
> WELCOME TO GRASS              Version 6.4.2         2012
> 
>    1) Have at your side all available GRASS tutorials
> 
>    2) When working on your location, the following materials
>       are extremely useful:
>       - A topo map of your area
>       - Current catalog of available computer maps
> 
>    3) Check the GRASS webpages for feedback mailinglists and more:
>       http://www.grass-gis.org
>       http://grass.osgeo.org
> 
> Hit RETURN to continue
> 
> Starting GRASS ...
> Traceback (most recent call last):
>   File "/Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpython/gis_set.py", line 894, in <module>
>     GRASSStartUp = StartUp(0)
>   File "/Applications/GRASS-6.4.app/Contents/MacOS/etc/python/wx/_core.py", line 7981, in __init__
>     self._BootstrapApp()
>   File "/Applications/GRASS-6.4.app/Contents/MacOS/etc/python/wx/_core.py", line 7555, in _BootstrapApp
>     return _core_.PyApp__BootstrapApp(*args, **kwargs)
>   File "/Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpython/gis_set.py", line 865, in OnInit
>     StartUp = GRASSStartup()
>   File "/Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpython/gis_set.py", line 57, in __init__
>     self.grassrc  = self._readGisRC()
>   File "/Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpython/gis_set.py", line 393, in _readGisRC
>     grassrc[key.strip()] = utils.DecodeString(val.strip())
>   File "/Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpython/gui_modules/utils.py", line 667, in DecodeString
>     enc = locale.getdefaultlocale()[1]
>   File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/locale.py", line 478, in getdefaultlocale
>   File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/locale.py", line 410, in _parse_localename
> ValueError: unknown locale: UTF-8
> Error in GUI startup. If necessary, please
> report this error to the GRASS developers.
> Switching to text mode now.
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"This is a question about the past, is it? ... How can I tell that the past isn't a fiction designed to account for the discrepancy between my immediate physical sensations and my state of mind?"

- The Ruler of the Universe




More information about the grass-user mailing list