New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #30568 (closed defect: wontfix)

Opened 22 months ago

Last modified 12 months ago

py27-wxpython : wrong architecture

Reported by: marc.schlaich@… Owned by: jwa@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: mcm@…, haoweipeng@…, jjstickel@…
Port: py27-wxpython

Description (last modified by jmr@…) (diff)

After installing this package i cannot import it.

$ python
Python 2.7.2 (default, Jul 29 2011, 00:57:57) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] 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

comment:1 Changed 22 months ago by jmr@…

  • Cc jwa@… removed
  • Owner changed from macports-tickets@… to jwa@…
  • Description modified (diff)

I'd assume your python is universal i386+x86_64, and since wxWidgets can only build for 32-bit archs, you would have to specifically run python in 32-bit mode to use it. e.g.

arch -i386 python2.7

So there's probably nothing that can be fixed here, unless you want to argue that python should re-execute itself as a different arch when it can't load a .so.

comment:2 Changed 22 months ago by mcm@…

  • Cc mcm@… added

Cc Me!

comment:3 Changed 20 months ago by ryandesign@…

  • Cc haoweipeng@… added

Has duplicate #31182.

comment:4 Changed 19 months ago by jjstickel@…

  • Cc jjstickel@… added

Cc Me!

comment:5 Changed 12 months ago by jmr@…

  • Status changed from new to closed
  • Resolution set to wontfix

Closing as per comment:1. Can't be fixed until wxWidgets is 64-bit.

Note: See TracTickets for help on using tickets.