[Pythonmac-SIG] Anyone having luck py2app on wxPython (wxGlade)?

Richard Bronosky richardbronosky at gmail.com
Mon Oct 22 22:30:05 CEST 2007


A few things:
##1## Here is me easy_install 'ing py2app
~$ sudo easy_install py2app
Searching for py2app
Reading http://pypi.python.org/simple/py2app/
Reading http://undefined.org/python/#py2app
Best match: py2app 0.3.6
Downloading http://pypi.python.org/packages/2.4/p/py2app/py2app-0.3.6-py2.4.egg#md5=47f572eae3f1062d87a6ea83c83d67e9
Processing py2app-0.3.6-py2.4.egg
creating /opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/py2app-0.3.6-py2.4.egg
Extracting py2app-0.3.6-py2.4.egg to
/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages
Adding py2app 0.3.6 to easy-install.pth file
Installing py2applet script to
/opt/local/Library/Frameworks/Python.framework/Versions/2.4/bin

Installed /opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/py2app-0.3.6-py2.4.egg
Processing dependencies for py2app
Finished processing dependencies for py2app

##2## Here is me trying py2app:
~/Code/src/wxGlade-0.6$
/opt/local/Library/Frameworks/Python.framework/Versions/2.4/bin/py2applet
--make-setup wxglade.pyWrote setup.py
~/Code/src/wxGlade-0.6$ cat setup.py
"""
This is a setup.py script generated by py2appletUsage:    python setup.py py2app
"""

from setuptools import setup

APP = ['wxglade.py']
DATA_FILES = []
OPTIONS = {'argv_emulation': True}

setup(
    app=APP,
    data_files=DATA_FILES,
    options={'py2app': OPTIONS},
    setup_requires=['py2app'],
)
~/Code/src/wxGlade-0.6$ python setup.py py2app
running py2app
creating /PersonalStorage/Code/src/wxGlade-0.6/build
creating ...
*** filtering dependencies ***
401 total
30 filtered
4 orphaned
371 remaining*** create binaries ***
creating ...
*** byte compile python files ***
byte-compiling ...
*** creating application bundle: wxglade ***
copying ...
creating ...
copying ...
creating ...
...
stripping ...
/usr/bin/strip: object:
/PersonalStorage/Code/src/wxGlade-0.6/dist/wxglade.app/Contents/MacOS/python
truncated or malformed object (linked_modules.offset field of
LC_PREBIND_DYLIB command 10 extends past the end of the file)
stripping saved 28091904 bytes (23179300 / 51271204)

If you need more detail on the error, see: http://rafb.net/p/m9brIu37.html

##3## Here are the vers you asked for:
/PersonalStorage/Code/src/wxGlade-0.6$ python -V
Python 2.4.4
/PersonalStorage/Code/src/wxGlade-0.6$ python -c 'import wx;print wx'
<module 'wx' from
'/opt/local/lib/python2.4/site-packages/wx-2.8-mac-unicode/wx/__init__.pyc'>


-- 
.!# RichardBronosky #!.


More information about the Pythonmac-SIG mailing list