[Pythonmac-SIG] Bad installer for wxPython2.8-osx-ansi-2.8.12.1-universal-py2.7

Kevin Walzer kw at codebykevin.com
Sun Jan 5 04:51:23 CET 2014


On 1/4/14, 10:44 PM, Tony Cappellini wrote:
>
> ---------- Forwarded message ----------
> From: Ned Deily <nad at acm.org <mailto:nad at acm.org>>
> To: pythonmac-sig at python.org <mailto:pythonmac-sig at python.org>
> Cc:
> Date: Sat, 28 Dec 2013 15:15:55 -0800
> Subject: Re: [Pythonmac-SIG] Bad installer for
> wxPython2.8-osx-ansi-2.8.12.1-universal-py2.7
> In article <nad-86DEA0.13454428122013 at news.gmane.org
> <mailto:nad-86DEA0.13454428122013 at news.gmane.org>>,
>   Ned Deily <nad at acm.org <mailto:nad at acm.org>> wrote:
>
>
>>>sudo installer -pkg
>>>/Volumes/wxPython2.9-osx-2.9.4.0-cocoa-py2.7/wxPython2.9-osx-cocoa-py2.7.
>>>pkg -target /
>
> Ok- thanks. This worked.
> I was able to run the installer- without problems.
>
> I do have one issue though. I am under the impression that
> "universal-py2.7" means it will run under both 32 & 64 bit systems.
>
> When I imported wx
>
> import wx
> Traceback (most recent call last):
>    File "<stdin>", line 1, in <module>
>    File
> "/usr/local/lib/wxPython-ansi-2.8.12.1/lib/python2.7/site-packages/wx-2.8-mac-ansi/wx/__init__.py",
> line 45, in <module>
>      from wx._core import *
>    File
> "/usr/local/lib/wxPython-ansi-2.8.12.1/lib/python2.7/site-packages/wx-2.8-mac-ansi/wx/_core.py",
> line 4, in <module>
>      import _core_
> ImportError:
> /usr/local/lib/wxPython-ansi-2.8.12.1/lib/python2.7/site-packages/wx-2.8-mac-ansi/wx/_core_.so:
> no appropriate 64-bit architecture (see "man python" for running in
> 32-bit mode)
>
> I am using the default version of Python (2.7.5) that comes with Mavericks
>

If you look at the version of wxPython referenced in the stack trace, 
it's 2.8, not the 2.9. one you installed. 2.8 is 32-bit only. Looks like 
Python is confused about which version to load. You may simply want to 
remove the 2.8 one altogether to avoid the conflict.

--Kevin

-- 
Kevin Walzer
Code by Kevin/Mobile Code by Kevin
http://www.codebykevin.com
http://www.wtmobilesoftware.com


More information about the Pythonmac-SIG mailing list