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

Richard Bronosky BrunosJunk at Bronosky.com
Wed Oct 24 17:33:20 CEST 2007


After looking more deeply into this, I believe that there are some
lower level issues that need to be resolved.  Doing so may bubble up
to fix the py2app+wxGlade issue.  Please  give me an opinion on my
system described below.  I have tried so may things to get py2app to
work that I may have left my system in an inconsistent state.

On 10/24/07, Ronald Oussoren <ronaldoussoren at mac.com> wrote:
> I haven't followed this discussion so far, but what version is
> being used? Is the the macports one, if so which version?
Yes, I have the Macports python2.4 and python2.5 installed.  Quite
honestly I'm always very confused as to which gets used, and what the
module path is.  Here are the pythons I have on my system:
/System/Library/Frameworks/Python.framework/Versions/2.3/bin/python2.3
/opt/local/Library/Frameworks/Python.framework/Versions/2.4/bin/python2.4
/opt/local/bin/python ->
/opt/local/Library/Frameworks/Python.framework/Versions/2.4/bin/python
/opt/local/bin/python2.5
/opt/local/var/macports/software/python24/2.4.4_1+darwin_8/opt/local/Library/Frameworks/Python.framework/Versions/2.4/bin/python2.4
/opt/local/var/macports/software/python25/2.5.1_1+darwin_8/opt/local/bin/python2.5

my env has:
PYTHONPATH=/Users/rbronosky/Code/python/site-packages

and finally there is:
python -c 'import sys;print sys.path'
[
       '',
       '/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/geopy-0.93-py2.4.egg',
       '/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/UNKNOWN-0.0.0-py2.4.egg',
       '/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/configobj-4.4.0-py2.4.egg',
       '/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/py2app-0.3.6-py2.4.egg',
       '/Users/rbronosky/Code/python/site-packages',
       '/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python24.zip',
       '/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4',
       '/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/plat-darwin',
       '/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/plat-mac',
       '/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/plat-mac/lib-scriptpackages',
       '/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-tk',
       '/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/lib-dynload',
       '/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages',
       '/opt/local/lib/python2.4/site-packages',
       '/opt/local/lib/python2.4/site-packages/Numeric',
       '/opt/local/lib/python2.4/site-packages/PyObjC',
       '/opt/local/lib/python2.4/site-packages/wx-2.8-mac-unicode'
]


>
> Which OS are you running on?
10.4.10

>
> >
> >
> > Also, can you turn off stripping with py2app?
>
> python setup.py py2app --no-strip
>
> You might also try 'python setup.py py2app -A'. This will build an
> alias bundle which depends on the source tree and the local python
> installation, but is a convenient way of building during development.
> It does make it a lot easier to quickly check if you have packaged all
> resources (icons, xml files, ...) that the application needs.

I tried the aliased build on a simple py that I generated with
wxGlade.  The resulting app, when launched, gives me this error:
ImportError: No module named wx


-- 
.!# RichardBronosky #!.


More information about the Pythonmac-SIG mailing list