[Pythonmac-SIG] py2app issue with wx

Agos aragost at gmail.com
Sun Sep 11 16:52:23 CEST 2011


A quick update on my problem (reported here in awful bottom-quoting). Switching to a 32-bit only python build from python.org and 32-bit binary builds from numpy, scipy, wx and matplotlib did the trick :)

Il giorno 22/lug/2011, alle ore 01:11, Agos ha scritto:

> Hi everybody! I hope somebody can help me :)
> I have this setup:
> 
> Enthought Python Distribution 7.0-1 32 bit
> Which includes Python 2.7.1
> Running on Mac OS X 10.6.8
> My application, which uses
> - wx
> - matplotlib
> - numpy
> - scipy
> 
> What I'm trying to do is to package it as a .app with py2app. The app gets packaged ok, runs fine on my Mac, but does not run on any other Mac (educated guess: it does not run on any Mac without the Enthought Python Distribution).
> 
> Here is my setup.py:
> https://gist.github.com/1098405
> 
> Here is the ouput of the build command:
> http://dl.dropbox.com/u/365171/py2appbuildoutput.zip [warning, >1MB when uncompressed, do not open with Textmate ;)]
> 
> The output of the build command looks pretty uneventful BUT the last line reports:
> 	error: can't copy '/Library/Frameworks/Python.framework/Versions/7.0/lib/python7.0/config/Makefile': doesn't exist or not a regular file
> which I don't know if is to be expected. Is it?
> 
> Upon launch (on any Mac I've met beyond mine), this is the error I get:
> https://gist.github.com/1098413
> 
> Looking around I've found some cases of very similar errors:
> http://old.nabble.com/Problems-getting-started-with-py2app-and-wxPython-td25686278.html
> https://groups.google.com/forum/#!topic/wxpython-users/ehI8ecZqDDI
> https://groups.google.com/forum/#!topic/wxpython-users/sdIaPG_K4s0
> http://www.google.it/search?sourceid=chrome&ie=UTF-8&q=py2app+%22_core_.so%22
> 
> The proposed solutions I've found are:
> 1) update py2app. I'm using py2app-0.6.3-py2.7.egg and altgraph-0.9-py2.7.egg (from homebrew) which are to my knowledge the latest versions currently available.
> 2) do not use the “stock” python, but rather download it from python.org. I can't use the python.org one, but I think the EPD python is sufficiently non-stock.
> 
> Any idea?
> 
> I'm afraid I can't provide a minimal example to reproduce the problem. I'll try to build one this weekend. Until then, the code is here: https://github.com/Agos/BeatingModeSW (the only things missing are the aforementioned setup.py, the app icon and the good old ez_setup.py).
> A binary showing the problem is here: http://dl.dropbox.com/u/365171/bmgui.zip [warning: 40 meg download].
> 
> Any help is very appreciated.
> 
> Regards,
> 
> A.
> 
> P.S. I tried just now to add 'includes': ['wx'], but there was no difference.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20110911/76a381a3/attachment.html>


More information about the Pythonmac-SIG mailing list