[GRASS-user] Can I just get rid of Wish?

Michael Barton michael.barton at asu.edu
Fri Jun 12 13:33:20 EDT 2009


I've been out of the country and had a problem with my laptop. So I  
haven't been able to answer sooner.

I want to add to William's information a bit of my own experience with  

If you are running Leopard AKA as OS X 10.5.x (and it seems like you  
are), I strongly recommend that you uninstall any other Python except  
the one that comes with Leopard. This also means looking at  
your .profile and .bashrc files to get rid of any lines about  
PYTHONPATH. Then deinstall and reinstall wxPython so that it links to  
the native Mac Python installation.

We have built the GUI in Python 2.5. I can't vouch for Python 2.6  
working with everything.

This OUGHT to solve a lot of your Python and wxPython issues.

Also, you cannot get rid of wish, at least not if you want to run  
NVIZ. It still requires TclTk. It is now built with the aqua version,  
however. So you need TclTk aqua. You can download and install binaries  
from ActiveStates.

I'm pretty sure that native Python comes with numpy. This is needed  
for profiling and some other graphing. If you don't have numpy, you'll  
need to install it. You can do so by first installing  
"setuptools-0.6c9-py2.5.egg" from the Python packages page (http://pypi.python.org/pypi 
). Follow the instructions to install it (you run the downloaded  
package as a script). Then all you have to do is type from the command  

install numpy


sudo install numpy

You should not longer need to install PyOpenGL, but can do so if  
needed using install pyopengl.


On Jun 9, 2009, at 7:05 PM, grass-user-request at lists.osgeo.org wrote:

> Message: 1
> Date: Tue, 9 Jun 2009 15:19:33 -0500
> From: William Kyngesburye <woklist at kyngchaos.com>
> Subject: Re: [GRASS-user] Can I just get rid of Wish?
> To: Michael Margolis <mmargoli at gettysburg.edu>
> Cc: grass-user at lists.osgeo.org
> Message-ID: <348E04D0-7511-4BFB-842F-5B507E25D91D at kyngchaos.com>
> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
> On Jun 9, 2009, at 2:34 PM, Michael Margolis wrote:
>> My OS version is 10.5.7.  I don't know how to tell for sure if I got
>> the
>> right build, but I think so. I followed the link entitled MacOSX from
>> http://grass.itc.it/download/index.php, and after installing some
>> frameworks
>> went on to http://www.kyngchaos.com/software:grass/. I recall going
>> over to
>> the Apple site to find out whether I was Leopard or Tiger, so I
>> probably got
>> that right.
> 10.5.7 is Leopard.  The readmes with the GRASS installers say 10.5
> (Leopard) and 10.4 (Tiger), so you should be able to figure it out
> (though Mac users tend to not read readmes ;)
>> Just today I installed a new Python 2.6.2, which seemed to make no
>> difference.
> I don't know about the compatibility of the GUI with 2.6, one of the
> GUI developers could better answer that.  But the wxpython that it
> uses has binary components that are compiled for a specific version of
> Python and may not work as expected for another version.  The wxPython
> that I bundle expects Python 2.5.x.  wx is usually in the python path
> of the python it's good for, but my bundled wx will be seen by any
> python.
> Normally GRASS will use the first Python it finds in your shell PATH,
> which will now be 2.6.2.  you can override this by setting
> GRASS_PYTHON in your shell, and to make this work with the OSX app
> startup, it needs to be set in your ~/.bash_profile:
> export GRASS_PYTHON=/usr/bin/python
> I should add this to my binaries since they expect a 2.5 version and
> many users might have installed 2.6 or even 3.0.
>>> Hmmm, what OSX version?  Did you install the GRASS build matching
>>> your
>>> system version? Which GRASS installer version (ie: is it the latest
>>> rc4-1)?  If OSX Leopard (10.5), did you install Python (it's OK not
>>> to, since the system Python is reasonably recent).
>>> I have seen problems getting the GUI to start automatically vs
>>> starting it manually with g.gui, though the wxpython GUI seems to
>>> work
>>> now on startup.
> -----
> William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
> http://www.kyngchaos.com/
> "I ache, therefore I am.  Or in my case - I am, therefore I ache."
> - Marvin

More information about the grass-user mailing list