Sunday, September 06, 2009

Python on snow leopard

Seems snow leopard comes with two version of Python. Python 2.6 and Python 2.5. Python 2.6.1 seems to be running in 64 bit mode by default. When I try to import wxPython I get the following:

ImportError: /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)

I need to have the 32 bit version of python execute. One of the methods listed in the man page is:
export VERSIONER_PYTHON_PREFER_32_BIT=yes

Adding this to my .profile leads to the 32 bit version of Python running which loads wxPython just fine.


Mozilla and hypocrisy

Right, but what about the experiences that Mozilla chooses to default for users like switching to  Yahoo and making that the default upon ...