On Sep 23, 2010, at 4:47 PM, William Kyngesburye wrote:
>> ERROR: wxGUI requires wxPython.
>> /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/wx-2.8-mac-unicode/wx/_core_.so:
>> no appropriate 64-bit architecture (see "man python" for running in 32-bit
>> mode)
>>
>>
>> Is it possible to run a 64-bit version of GRASS using 32-bit version of
>> wxPython?
>>
>> Or does GRASS compiled for 64-bit not support any GUIs?
>
> Python on OSX Snow Leopard runs 64bit by default. You need to force it to
> run in 32bit mode. This is tricky since /usr/bin/python is actually a
> special Apple python executable that will switch to 32bit mode based on some
> environment variable (I forget the name, and I don't know how reliable it is,
> or it may have had problems in GRASS when/if I tried it), BUT DOES NOT
> respond to using the arch command to do so.
>
> You need to run python with /usr/bin/python2.6, which is a symlink to the
> normal framework python executable, and responds to the arch command. But,
> run commands in the GUI don't work with a multi-word program name (ie "arch
> -i386 /usr/bin/python2.6" instead of a simple "python").
>
> This is taken care of in the Mac app build with a python wrapper. The
> wrapper is seen as a single word, thus the GUI run commands are happy. If
> you don't use the builtin Mac app build option, you won't get this wrapper (I
> thought about moving it into the general lib/init stuff so it's available to
> all Mac builds, but I either had a problem with that or got distracted).
Thanks William,
Just setting the environment variable does it for me:
export VERSIONER_PYTHON_PREFER_32_BIT=yes
Best,
Jeshua Lacock, Owner
<http://OpenOSX.com>
phone: 208.462.4171
_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev