Opened 5 years ago

Last modified 5 years ago

#11160 accepted defect

wxPython breaks on new OS X Snow Leopard

Reported by: PN Owned by: robind
Priority: normal Milestone:
Component: wxPython Version: 2.8.x
Keywords: OS X Snow Leopard breaks wxPython no 64bit binaries Cc:
Blocked By: Blocking:
Patch: no

Description

OS X Snow Leopard now includes Python 2.6.1 in 64bit mode by default on all Macs.

The Mac OS X Binaries for wxPython do not include 64bit compilations resulting in the following error when trying to run any Python program that uses wxPython on OS X Snow Leopard:

ImportError: /usr/local/lib/wxPython-unicode-2.8.10.1/lib/python2.6/site-packages/wx-2.8-mac-unicode/wx/_core_.so: no appropriate 64-bit architecture

While a stop gap measure is to try and force the system Python to run into 32bit mode this is not default setting and this error will be obvious on every default installation of OS X Snow Leopard as the OS.

Change History (2)

comment:1 Changed 5 years ago by robind

  • Owner set to robind
  • Status changed from new to accepted

Currently wxPython is using Carbon so it can not be 64-bit. That will come later in the 2.9 or 3.0 release series once we switch to Cocoa by default.

In the meantime you should be able to install MacPython from python.org and use that with the newer wxPython releases instead of the Python provided by Apple.

comment:2 Changed 5 years ago by cariaso

While I don't have Snow Leopard to verify and I'm eager for the long term fix
http://stephenhucker.com/2009/08/31/python-on-snow-leopard/
suggests the easiest workaround may be to launch "Terminal" and type this command.

defaults write com.apple.versioner.python Prefer-32-Bit -bool yes

Note: See TracTickets for help on using tickets.