Re: py2app issue, app crashes on 10.7.5

"Russell E. Owen" <[email protected]>
Newsgroups gmane.comp.python.apple
Organization University of Washington
Message-ID <[email protected]>
In article <[email protected]>,
 David Smith <[email protected]> wrote:

> 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.

It seems likely that the macports packages were built with an SDK that 
is not compatible with MacOS X 10.6. Your solution of using python.org 
python and binary installers is what I recommend for distributing 
software that has to run on older machines. (Though there may be some 
way of making macports build backwards-compatible packages).

-- Russell

_______________________________________________
Pythonmac-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.