python 2.7, import wx says "wrong architecture"

Ned Deily nad at acm.org
Thu Mar 22 10:49:20 PDT 2012


In article <E23B25BB-F603-458D-83FF-D891F168CD4A at dave-curtis.com>,
 Dave Curtis <dave at dave-curtis.com> wrote:
> arch -i386 idle2.7 
> 
> now works!  But it appears to start a 64 bit version of Python in a 32 bit 
> IDE, because when I
> 
> import wx
> 
> it gives me the "wrong arch" message.
> How do I force 32 bit idle2.7 to start 32 bit python? 
> Or for that matter, shouldn't I be able to get 64 bit idle to start 32 bit 
> python? That probably makes a little more sense.

The easiest way is to tell IDLE to run without a subprocess using its -n 
argument:

$ arch -i386 idle2.7 -n

OTOH, I'm not sure that running wx applications under IDLE (a Tk 
application) is a good idea.

-- 
 Ned Deily,
 nad at acm.org



More information about the macports-users mailing list