Thanks much for the additional information. Where I've run into the
multiple python issue the most is in building from source. But I've
also occasionally had people with issues when they attempted to run a
binary. Bundling wxPython should help to solve that. Same with numpy.
Any instructions on how to bundle wxPython in a binary app? I'd be
happy to give it a go. Ultimately, we should probably also bundle a
Python runtime to make a self-contained package.
Once my MacBook is fixed next week maybe I can finally start back to
fixing bugs and even adding new modules to GRASS 7.
Michael
______________________________
C. Michael Barton, Professor of Anthropology
Director of Graduate Studies, School of Human Evolution & Social Change
Director, Center for Social Dynamics & Complexity
Arizona State University
Tempe, AZ 85287-2402
USA
voice: 480-965-6262; fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton
On Jun 12, 2009, at 11:50 AM, William Kyngesburye wrote:
welcome back...
On Jun 12, 2009, at 12:33 PM, Michael Barton wrote:
Hi,
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 this.
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.
I now bundle wxPython in my binary distribution, to avoid confusion if
a user has installed another version. Also Apple's version is a bit
old now, though it satisfies the minimum version GRASS needs. For
those building GRASS from source, an up-to-date version of wxPython
can be installed and used with the system Python.
Another thing I just added in RC5 and SVN (for the OSX app build) is
the ability to attempt to use a version of Python that wxPython is
built for. This only works for when wxPython in bundled in the app,
and is hardwired (requires editing grass.sh.in in the macosx app
source). This helps for GRASS distributions (like mine) where a user
might have other Python versions installed that may cause trouble.
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 line:
install numpy
OR
sudo install numpy
I also now include an up-to-date version of numpy in my GDAL framework
(it's used there also). The system version is a very old 1.0.1, and
GRASS requirements say at least 1.0.4.
You should not longer need to install PyOpenGL, but can do so if
needed using install pyopengl.
Regards
Michael
On Jun 9, 2009, at 7:05 PM, [email protected] wrote:
Message: 1
Date: Tue, 9 Jun 2009 15:19:33 -0500
From: William Kyngesburye <[email protected]>
Subject: Re: [GRASS-user] Can I just get rid of Wish?
To: Michael Margolis <[email protected]>
Cc: [email protected]
Message-ID: <[email protected]>
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
_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user
-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/
The equator is so long, it could encircle the earth completely once.
_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user