[GRASS-user] Problems with grass for OSX
William Kyngesburye
woklist at kyngchaos.com
Wed Dec 14 12:15:01 EST 2011
You need to edit it. But not in the root account home. Use pico or nano in the Terminal, or TextWrangler.app is also a good text editor for this (edit ~/.bash_profile).
On Dec 14, 2011, at 11:05 AM, José Carlos Guerrero Antúnez wrote:
> Hi,
>
> How to remove that setting, this is the mesage when I write in Terminal window, I have all privileges as administrator.
>
> ~/.bash_profile
>
> sh: /var/root/.bash_profile: No such file or directory
>
> Thank you,
>
> El 14 de diciembre de 2011 13:10, William Kyngesburye <woklist at kyngchaos.com> escribió:
> You need to find out where that is set. Most likely in your ~/.bash_profile. Then remove that setting.
>
> And since your LANG is not set, you also need to check your Terminal preferences. In Settings:Advanced for your default setting, check the International "Set locale environment variables on startup" option.
>
> On Dec 14, 2011, at 9:00 AM, José Carlos Guerrero Antúnez wrote:
>
> > Hi,
> >
> > I did the return in a new Terminal window and
> > env | grep LANG
> >
> > env | grep LC_
> > LC_CTYPE=UTF-8
> >
> > So how I can make the change?
> >
> > Many thanks again,
> >
> > Jose Guerrero
> >
> >
> > El 14 de diciembre de 2011 12:44, William Kyngesburye <woklist at kyngchaos.com> escribió:
> > Maybe your shell language isn't set right? What do these return in a new Terminal window:
> >
> > env | grep LANG
> > env | grep LC_
> >
> > OS X automatically sets LANG, but there are others that are checked first: LC_ALL and LC_CTYPE. Python is expecting them to be in the form:
> >
> > language.encoding
> >
> > ie, the default US english is "en_US.UTF-8".
> >
> > If any of those are just the encoding (the "UTF-8" in your error), then maybe you added something to your ~/.bash_profile to set them?
> >
> > On Dec 14, 2011, at 8:14 AM, José Carlos Guerrero Antúnez wrote:
> >
> > > Hello again,
> > >
> > > When I make double-click to open GRASS in the first terminal window show the following message,
> > >
> > > '/Applications/GRASS-6.4.app/Contents/MacOS/grass.sh'; exit
> > > Last login: Wed Dec 14 08:45:59 on console
> > > torre-b-024:~ joseca_IMac$ '/Applications/GRASS-6.4.app/Contents/MacOS/grass.sh'; exit
> > > Rebuilding Addon HTML manual pages index...
> > > 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
> > >
> > > When I make RETURN, the message is "GRASS needs a directory in which to store its data. Create one now if you have not already done so. A popular choice is "grassdata", located in your home directory."
> > >
> > > I do OK, and Choose a folder and then occurs as I mentioned in the previous mail.
> > >
> > > This problem as I have working with an Imac10,1, Intel Core Duo, 3,06 GHz, RAM Memory 4 Gb. These The strangest thing for me I can do the program on another machine (MacBook Pro, ODX 10.6.8)
> > >
> > > I did the installation and updated according to the procedure from Kyngchaos webpage. I have no doubt that there is some component that is in conflict but which?
> > >
> > > Now, what can I do?
> > >
> > > Many thanks for your help
> > >
> > >
> > >
> > > 2011/12/10 Ralf Schäfer <senator at ecotoxicology.de>
> > > Dear Jose,
> > >
> > > when did your problem occur? After installation/updating or haphazardly?
> > >
> > > I had a similar problem with the Python GUI but after I updated all frameworks it worked fine. In case you use the GRASS version from Kyngchaos can you update the GDAL complete framework, free type and cairo and report whether the error still occurs?
> > >
> > > Regards
> > > Ralf
> > >
> > >
> > >
> > > Am 10.12.2011 um 05:20 schrieb grass-user-request at lists.osgeo.org:
> > >
> > >> Message: 3
> > >>
> > >> Date: Fri, 9 Dec 2011 17:04:12 -0200
> > >> From: Jos? Carlos Guerrero Ant?nez <jcgantunez at gmail.com>
> > >> Subject: [GRASS-user] Problems with grass for OSX
> > >> To: grass-user at lists.osgeo.org
> > >> Message-ID:
> > >> <CAEO28jeO+PyOtLMWNn8bGnY3S6c-zAxWRwL2L97Y4iryJUMY0A at mail.gmail.com>
> > >> Content-Type: text/plain; charset="iso-8859-1"
> > >>
> > >> Hi,
> > >>
> > >> I can not boot properly grass and this is the message that appears in Terminal
> > >> window.
> > >>
> > >> OSX 10.6.8
> > >>
> > >> Thanks in advance,
> > >>
> > >>
> > >> torre-b-024:~ joseca_IMac$
> > >> '/Applications/GRASS-6.4.app/Contents/MacOS/grass.sh'; exit
> > >> Rebuilding Addon HTML manual pages index...
> > >> 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
> > >> 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
> > >> Traceback (most recent call last):
> > >> File
> > >> "/Applications/GRASS-6.4.app/Contents/MacOS/etc/wxpython/gis_set.py", line
> > >> 858, 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
> > >> 843, in OnInit
> > >> StartUp.OnBrowse(None)
> > >> 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
> > >> 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...
> > >>
> > >>
> > >>
> > >> --
> > >> ################################################################
> > >> Dr. José Carlos Guerrero
> > >> Laboratorio de Desarrollo Sustentable y Gestión Ambiental del Territorio
> > >> (LDSGAT)
> > >> Instituto de Ecología y Ciencias Ambientales (IECA)
> > >> Facultad de Ciencias
> > >> Universidad de la República
> > >> Montevideo-URUGUAY
> > >> ################################################################
> > >
> > >
> > >
> > >
> > > --
> > > ################################################################
> > > Dr. José Carlos Guerrero
> > > Laboratorio de Desarrollo Sustentable y Gestión Ambiental del Territorio (LDSGAT)
> > > Instituto de Ecología y Ciencias Ambientales (IECA)
> > > Facultad de Ciencias
> > > Universidad de la República
> > > Montevideo-URUGUAY
> > > ################################################################
> > >
> > > _______________________________________________
> > > 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/
> >
> > Earth: "Mostly harmless"
> >
> > - revised entry in the HitchHiker's Guide to the Galaxy
> >
> >
> >
> > _______________________________________________
> > 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/
>
> "Mon Dieu! but they are all alike. Cheating, murdering, lying, fighting, and all for things that the beasts of the jungle would not deign to possess - money to purchase the effeminate pleasures of weaklings. And yet withal bound down by silly customs that make them slaves to their unhappy lot while firm in the belief that they be the lords of creation enjoying the only real pleasures of existence....
>
> - the wisdom of Tarzan
>
>
>
>
>
> _______________________________________________
> 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