[GRASS-user] help in installing GRASS in Mac

Stuart Edwards sedwards2 at cinci.rr.com
Wed May 11 09:28:03 EDT 2011


On May 11, 2011, at 4:04 AM, Severino Salmo wrote:

> Dear GRASS users,
> 
> I still can't run GRASS in my Mac OSX 10.6.7. I noticed two things: 
> 
> ln: /Users/sgsalmo2011/Library/Documentation/Help/GRASS-6.4: No such file or directory
> ValueError: unknown locale: UTF-8
> 
> I think there are errors in GUI. Any assistance will be greatly appreciated. Thank you very much.
> 
> Sev
> 
> Please find below the complete error message:
> 
> Last login: Wed May 11 15:54:24 on ttys000
> '/Applications/GRASS-6.4.app/Contents/MacOS/grass.sh'; exit
> Severino-III-Salmos-MacBook-Pro:~ sgsalmo2011$ '/Applications/GRASS-6.4.app/Contents/MacOS/grass.sh'; exit
> Rebuilding Addon HTML manual pages index...
> ln: /Users/sgsalmo2011/Library/Documentation/Help/GRASS-6.4: No such file or directory
> Rebuilding Addon menu...
> Python 2.6.1 found.
> 
> WELCOME TO GRASS              Version 6.4.1         2011
> 
>    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 641, in OnSelectLocation
>     self.listOfLocations[self.lblocations.GetSelection()]))
>   File "/Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpython/gis_set.py", line 590, in UpdateMapsets
>     self.listOfMapsets = utils.GetListOfMapsets(self.gisdbase, location)
>   File "/Users/Shared/src/GRASS/grass-6.4.1-snow/dist.i386-apple-darwin10.7.0/etc/wxpython/gui_modules/utils.py", line 629, in GetListOfMapsets
>   File "/Users/Shared/src/GRASS/grass-6.4.1-snow/dist.i386-apple-darwin10.7.0/etc/wxpython/gui_modules/utils.py", line 651, in EncodeString
>   File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/locale.py", line 459, in getdefaultlocale
>   File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/locale.py", line 391, in _parse_localename
> ValueError: unknown locale: UTF-8
> Traceback (most recent call last):
>   File "/Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpython/gis_set.py", line 703, in OnBrowse
>     self.OnSetDatabase(event)
>   File "/Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpython/gis_set.py", line 692, in OnSetDatabase
>     self.OnSelectLocation(None)
>   File "/Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpython/gis_set.py", line 641, in OnSelectLocation
>     self.listOfLocations[self.lblocations.GetSelection()]))
>   File "/Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpython/gis_set.py", line 590, in UpdateMapsets
>     self.listOfMapsets = utils.GetListOfMapsets(self.gisdbase, location)
>   File "/Users/Shared/src/GRASS/grass-6.4.1-snow/dist.i386-apple-darwin10.7.0/etc/wxpython/gui_modules/utils.py", line 629, in GetListOfMapsets
>   File "/Users/Shared/src/GRASS/grass-6.4.1-snow/dist.i386-apple-darwin10.7.0/etc/wxpython/gui_modules/utils.py", line 651, in EncodeString
>   File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/locale.py", line 459, in getdefaultlocale
>   File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/locale.py", line 391, in _parse_localename
> ValueError: unknown locale: UTF-8
> 
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user

I'm no expert on this kind of thing but it seems there's a <locale> problem?

What do you get from :

> echo $LC_ALL

I get 

> en_US.UTF-8

If that's not what you see, maybe try setting the locale by:

> LC_ALL=en_US.UTF-8

 and then start GRASS again.

Also,

> echo $LANG

on my set-up gives

> en_US.UTF-8

Not sure if the GUI is language sensitive, but it's something else to try

> LAN=en_US.UTF-8

hth

Stu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/20110511/667a7531/attachment.html


More information about the grass-user mailing list