Hi Ronald,

To recap, my recent roadblocks were with current macport versions of python 
2.7, wxpython 2.9.4, and py2app 0.7.3 on OS X 10.8.  The first problem occurred 
when building the standalone app with py2app.  The error seemed to arise from 
py2app or macholib: "Mach-O header is too large to relocate".  Following your 
helpful suggestions at bitbucket, I increased the file depth of the macports 
installation, and decreased the app's build directory file depth (see link 
below).  With those changes, the app built without error.  The app executed on 
OS X 10.8, but generated a memory address error on OS X 10.6 during wxpython 
initiation (another link below).  I did not discover a solution for the memory 
error.

The solution to the problems above was removing macports and building the 
python stack from binary installers (python 2.7, numpy, scipy, matplotlib, 
wxpython).  Now everything works - the app builds cleanly and executes on OS X 
10.8 and 10.6.  I'm not sure why the macport versions don't work together, but 
I'm happy to have a working solution.

Thanks for you help,
Dave


https://trac.macports.org/ticket/38163
https://bitbucket.org/ronaldoussoren/py2app/issue/93/mach-o-header-may-be-too-large-to-relocate
https://groups.google.com/forum/?fromgroups=#!topic/wxpython-users/uGzpA5rllJo


On Feb 24, 2013, at 11:00 AM, Ronald Oussoren <ronaldousso...@mac.com> wrote:

> 
> On 23 Feb, 2013, at 21:03, David Smith <drsmit...@gmail.com> wrote:
> 
>> Hello,
>> 
>> Were you able to resolve the crash problem on 10.7?  If so, can you describe 
>> your solution?  I just built an app with py2app on 10.8, and it crashes with 
>> identical exceptions on 10.6.
> 
> Which version of py2app do you use? And which version of Python?
> 
> Is this something you can reproduce with an example project? I regularly 
> build on 10.8 and deploy on 10.5.
> 
> Ronald
> 

_______________________________________________
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