python 2.7, import wx says "wrong architecture"

Ryan Schmidt ryandesign at macports.org
Thu Mar 22 01:15:11 PDT 2012


On Mar 22, 2012, at 02:59, Dave Curtis wrote:

> 
> On Mar 22, 2012, at 12:36 AM, Dave Curtis wrote:
> 
>> 
>> On Mar 22, 2012, at 12:32 AM, Ryan Schmidt wrote:
>> 
>>> 
>>> On Mar 22, 2012, at 02:24, Dave Curtis wrote:
>>> 
>>>> david-curtiss-macbook:capek2 dave$ arch -i386 idle2.7
>>>> ** IDLE can't import Tkinter.  Your Python may not be configured for Tk. **
>>>> 
>>>> which is very annoying.  Because idle2.7 starts up perfectly fine in 64 bits.
>>> 
>>> Have you installed the py27-tkinter port with the +universal variant as well?
>> 
>> That idea occurred to me about 3 minutes ago, so it is cooking away at rebuilding dependencies +universal.
> 
> And.... not quite.
> 
> 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.

I'm afraid I don't even know what "idle" is, nor much about python at all.



More information about the macports-users mailing list