Hey, I've seen a few messages about this error, but I'm not clear what the resolution is (if any). I'm using MacOS X 10.4.5, Intel iMac, and the bundled Python 2.3.5. For various reasons I don't want to use Python 2.4 yet.
I had been working along just fine using Python and wxPython, until I hit a problem with wxPython today. I realized that I was using an old version of wxPython, 2.5.3.1, and that it didn't support a feature I needed. So I downloaded wxPython 2.6.2.1, along with the TigerPython23Compat.pkg, and installed them both. Now when I try to run python and import wx, I get this error: >>> import wx Traceback (most recent call last): File "<stdin>", line 1, in ? File "//Library/Python/2.3/wx-2.6-mac-unicode/wx/__init__.py", line 42, in ? from wx._core import * File "//Library/Python/2.3/wx-2.6-mac-unicode/wx/_core.py", line 4, in ? import _core_ ImportError: dlopen(/Library/Python/2.3/wx-2.6-mac-unicode/wx/_core_.so, 2): no suitable image found. Did find: /Library/Python/2.3/wx-2.6-mac-unicode/wx/_core_.so: mach-o, but wrong architecture I get that wxPython is built for ppc, and that the version of python on my machine is a Universal binary, and that those aren't playing well together. My question is, can I do anything about it? Is there a way to call python so that it is forced to run under Rosetta? My goal is to run Python 2.3 and wxPython 2.6 on the Intel iMac. Is that possible yet? Thanks much for any help. A more detailed log is below if it helps. -M ---begin--- iMac:~ marc$ python Python 2.3.5 (#1, Dec 25 2005, 07:24:19) [GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import wxversion >>> print wxversion.getInstalled() ['2.6-mac-unicode', '2.5.3-mac-unicode'] >>> import wx Traceback (most recent call last): File "<stdin>", line 1, in ? File "//Library/Python/2.3/wx-2.6-mac-unicode/wx/__init__.py", line 42, in ? from wx._core import * File "//Library/Python/2.3/wx-2.6-mac-unicode/wx/_core.py", line 4, in ? import _core_ ImportError: dlopen(/Library/Python/2.3/wx-2.6-mac-unicode/wx/_core_.so, 2): no suitable image found. Did find: /Library/Python/2.3/wx-2.6-mac-unicode/wx/_core_.so: mach-o, but wrong architecture >>> ^D iMac:~ marc$ python Python 2.3.5 (#1, Dec 25 2005, 07:24:19) [GCC 4.0.1 (Apple Computer, Inc. build 5250)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import wxversion >>> wxversion.select('2.5') >>> import wx >>> print wx.VERSION_STRING 2.5.3.1 >>> ^D iMac:~ marc$ file /Library/Python/2.3/wx-2.6-mac-unicode/wx/_core_.so /Library/Python/2.3/wx-2.6-mac-unicode/wx/_core_.so: Mach-O bundle ppc iMac:~ marc$ file /System/Library/Frameworks/Python.framework/Versions/2.3/bin/python /System/Library/Frameworks/Python.framework/Versions/2.3/bin/python: Mach-O universal binary with 2 architectures /System/Library/Frameworks/Python.framework/Versions/2.3/bin/python (for architecture i386): Mach-O executable i386 /System/Library/Frameworks/Python.framework/Versions/2.3/bin/python (for architecture ppc): Mach-O executable ppc ---end--- _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig