Opened 13 years ago

Closed 13 years ago

#31182 closed defect (duplicate)

python27, py27-wxpython: wrong architecture

Reported by: haoweipeng@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc:
Port: py27-wxpython

Description (last modified by ryandesign (Ryan Carsten Schmidt))

# python
Python 2.7.2 (default, Sep  8 2011, 14:27:30) 
[GCC 4.2.1 (Apple Inc. build 5664)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/wx-2.8-mac-unicode/wx/__init__.py", line 45, in <module>
    from wx._core import *
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/wx-2.8-mac-unicode/wx/_core.py", line 4, in <module>
    import _core_
ImportError: dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/wx-2.8-mac-unicode/wx/_core_.so, 2): no suitable image found.  Did find:
	/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/wx-2.8-mac-unicode/wx/_core_.so: mach-o, but wrong architecture

Change History (3)

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)

Use WikiFormatting please.

comment:2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

py27-wxpython is only installed i386, because its dependency wxWidgets can only install i386. No 64-bit version is available from the developers of wxWidgets. So if you're on a 64-bit Mac, you have to forcibly run the 32-bit version of python instead of the 64-bit one you'd get by default. So instead of running python2.7, run arch -i386 python2.7.

comment:3 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Port: py27-wxpython added
Resolution: duplicate
Status: newclosed

Duplicate of #30568.

Note: See TracTickets for help on using tickets.