[GRASS-user] Grass GUI does not start (anymore) in MacOs
William Kyngesburye
woklist at kyngchaos.com
Tue Mar 27 09:16:51 EDT 2012
I forgot to add a bash_profile example:
export LC_ALL=en_US.UTF-8
substitute your language code for en_US.
On Mar 27, 2012, at 8:11 AM, William Kyngesburye wrote:
> Hmm, this is becoming quite an issue on non-English systems, I don't know why it started. Python expects the locale to be in the form language.encoding. ie english is "en_US.UTF-8".
>
> Normally the option in the Terminal to set this automatically takes care of this in the LANG variable, but Python checks LC_CTYPE and LC_ALL first and somehow one of those is getting set on non-english systems.
>
> The fix is to set LC_ALL in your ~/.bash_profile like LANG is set for your language (turn on the "Set locale env variables on startup" option in the advanced Settings in Terminal Preferences, then check "env" in a Terminal).
>
> Note: the Adobe Unit Types error is harmless noise, you just have a very old Photoshop installed.
>
> On Mar 27, 2012, at 2:55 AM, jbogdani wrote:
>
>> Hello,
>> I've a problem with GRASS on Snow Leopard. I've used successfully GRASS in
>> the past, but it does not start in the GUI mode anymore. I can use it throw
>> QGIS anyway.
>> Here is the error it produces on stratup:
>>
>> 2012-03-27 09:52:23.326 osascript[534:903] Error loading
>> /Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit
>> Types: dlopen(/Library/ScriptingAdditions/Adobe Unit
>> Types.osax/Contents/MacOS/Adobe Unit Types, 262): no suitable image found.
>> Did find:
>> /Library/ScriptingAdditions/Adobe Unit Types.osax/Contents/MacOS/Adobe Unit
>> Types: no matching architecture in universal wrapper
>> osascript: OpenScripting.framework - scripting addition
>> "/Library/ScriptingAdditions/Adobe Unit Types.osax" declares no loadable
>> handlers.
>> Python 2.6.1 found.
>>
>> And then, after hitting RETURN:
>> 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
>> "/Users/Shared/unix/wxpython-snow/lib/python2.6/site-packages/wx-2.8-mac-unicode/wx/_core.py",
>> line 7981, in __init__
>> File
>> "/Users/Shared/unix/wxpython-snow/lib/python2.6/site-packages/wx-2.8-mac-unicode/wx/_core.py",
>> line 7555, in _BootstrapApp
>> 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
>> "/Users/Shared/src/GRASS/grass-6.4.2-snow/dist.i386-apple-darwin11.3.0/etc/wxpython/gui_modules/utils.py",
>> line 667, in DecodeString
>> File
>> "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/locale.py",
>> line 459, in getdefaultlocale
>> return _parse_localename(localename)
>> File
>> "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/locale.py",
>> line 391, in _parse_localename
>> raise ValueError, 'unknown locale: %s' % 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.
>> Hit RETURN to continue...
>>
>>
>> After this I can use GRASS only from terminal....
>> Any help?
>>
>> --
>> View this message in context: http://osgeo-org.1560.n6.nabble.com/Grass-GUI-does-not-start-anymore-in-MacOs-tp4659784p4659784.html
>> Sent from the Grass - Users mailing list archive at Nabble.com.
>> _______________________________________________
>> 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/
>
> "Those people who most want to rule people are, ipso-facto, those least suited to do it."
>
> - A rule of the universe, from the HitchHiker's Guide to the Galaxy
>
>
-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/
"History is an illusion caused by the passage of time, and time is an illusion caused by the passage of history."
- Hitchhiker's Guide to the Galaxy
More information about the grass-user
mailing list