On 2 Aug, 2012, at 7:39, Mark Livingstone <livingstonem...@gmail.com> wrote:

> Hi Guys,
> 
> OK, taking Chris' advice, I installed on a Snow Leopard machine:
> 
> cheyenne:dist marklivingstone$ ls ~/Downloads/
> About Downloads.lpdf
> numpy-1.6.2-py2.7-python.org-macosx10.3.dmg
> wxMac-2.8.12.tar
> matplotlib-1.1.0-py2.7-python.org-macosx10.3.dmg
> python-2.7.3-macosx10.6.dmg
> wxPython2.8-osx-docs-demos-2.8.12.1-universal-py2.7.dmg
> mercurial-2.2.3_20120707-py2.7-macosx10.7
> scipy-0.11.0rc1-py2.7-python.org-macosx10.6.dmg
> wxPython2.8-osx-unicode-2.8.12.1-universal-py2.7.dmg
> 
> Then I went to Ronald's Bitbucket and built a current py2app setup.

The stub executables in the repository need to be updated, although the old 
ones should work fine (some of them are currently out of sync w.r.t. the source 
code).

> 
> I tried a build but got this:
> 
> python ../mac-setup/setup_py2app.py py2app
> Traceback (most recent call last):
>  File "../mac-setup/setup_py2app.py", line 1, in <module>
>    import wx
>  File 
> "/usr/local/lib/wxPython-unicode-2.8.12.1/lib/python2.7/site-packages/wx-2.8-mac-unicode/wx/__init__.py",
> line 45, in <module>
>    from wx._core import *
>  File 
> "/usr/local/lib/wxPython-unicode-2.8.12.1/lib/python2.7/site-packages/wx-2.8-mac-unicode/wx/_core.py",
> line 4, in <module>
>    import _core_
> ImportError: 
> dlopen(/usr/local/lib/wxPython-unicode-2.8.12.1/lib/python2.7/site-packages/wx-2.8-mac-unicode/wx/_core_.so,
> 2): no suitable image found.  Did find:
>        
> /usr/local/lib/wxPython-unicode-2.8.12.1/lib/python2.7/site-packages/wx-2.8-mac-unicode/wx/_core_.so:
> no matching architecture in universal wrapper
> cheyenne:src marklivingstone$

This looks like an installation of wx that's not in sync with Python. In 
particular, the python interpreter supports a different CPU architecture than 
wxPython.

The quickest solution based on the list of packages you installed is to 
download the 32-bit installer for Python (not the intel-only installer for OSX 
10.6 or later).

Ronald

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG

Reply via email to