|unable to run wxPython on Lion||Alex||10/3/11 8:18 AM|
I am trying to run a program using wxPython on Lion. I get a strange traceback:
Alexs-Mac-mini:bookshare mehgcap$ python dbc.py
Traceback (most recent call last):
File "dbc.py", line 1, in <module>
import dialogs, globals, lbc
File "/Volumes/BOOTCAMP/prog/bookshare/dialogs.py", line 1, in <module>
import globals, lbc, pybookshare
File "/Volumes/BOOTCAMP/prog/bookshare/globals.py", line 1, in <module>
import configobj, lbc, os, sys, zipfile
File "/Volumes/BOOTCAMP/prog/bookshare/lbc.py", line 11, in <module>
File "/usr/local/lib/wxPython-unicode-18.104.22.168/lib/python2.7/site-packages/wx-2.8-mac-unicode/wx/__init__.py", line 45, in <module>
from wx._core import *
File "/usr/local/lib/wxPython-unicode-22.214.171.124/lib/python2.7/site-packages/wx-2.8-mac-unicode/wx/_core.py", line 4, in <module>
ImportError: dlopen(/usr/local/lib/wxPython-unicode-126.96.36.199/lib/python2.7/site-packages/wx-2.8-mac-unicode/wx/_core_.so, 2): no suitable image found. Did find:
/usr/local/lib/wxPython-unicode-188.8.131.52/lib/python2.7/site-packages/wx-2.8-mac-unicode/wx/_core_.so: no matching architecture in universal wrapper
If anyone can tell me what is going on and how to fix this, I would really appreciate it. This is Lion, 10.7.1, with Python 2.7 and wxPython 2.8.
|Re: [wxPython-users] unable to run wxPython on Lion||kevin...@theolliviers.com||10/3/11 9:07 AM|
Are you using a 32-bit Python or have you set it to prefer / load 32-bit extensions? Otherwise, you'll run into a problem because wxPython 2.8 is 32-bit only.
|Re: [wxPython-users] unable to run wxPython on Lion||Alex||10/3/11 9:15 AM|
I could be wrong, but I think there was only one installer for mac.
How do I set it to 32-bit mode? I found a forum post talking about
writing a preference, but the mac says that the command is not found.
|Re: [wxPython-users] unable to run wxPython on Lion||kevin...@theolliviers.com||10/3/11 9:41 AM|
There are two installers on python.org for Mac, if that is where you got it from.
|Re: [wxPython-users] unable to run wxPython on Lion||Alex||10/3/11 9:47 AM|
Alright, I'll uninstall this one and make sure I find the 32-bit
installer then. Thanks.
|Re: [wxPython-users] unable to run wxPython on Lion||Robin Dunn||10/3/11 10:44 AM|
On 10/3/11 9:47 AM, Alex Hall wrote:
If you want or need to keep the 64-bit version of Python for some reason
|Re: [wxPython-users] unable to run wxPython on Lion||Alex||10/3/11 11:04 AM|
I don't really need 64 bit, but is there a way to always use 32-bit
mode so I don't have to re-install python and all my third-party
packages? By the way, sorry for top-posting, this website (gMail
mobile) won't let me do an in-line reply.
|Re: [wxPython-users] unable to run wxPython on Lion||Robin Dunn||10/4/11 11:25 AM|
On 10/3/11 11:04 AM, Alex Hall wrote:
If you have a python-32 binary then you can use that. Otherwise I'm not
|Re: [wxPython-users] unable to run wxPython on Lion||Alex||10/4/11 11:33 AM|
That's okay, I just installed 32 bit. I thought there was only one
because the site has a file for 10.6+ and one for up to 10.6, and the
10.6+ file says 36-64 bit so I thought it would be fine. I now have to
older one and my app runs... well, it runs, but with delays of a
minute or so and much locking up, but that's another thread.