[Pythonmac-SIG] using py2app with scipy (Russell E. Owen)
Russell E. Owen
rowen at uw.edu
Fri Aug 12 20:45:20 CEST 2011
<CACayY8V2RPgdzxuSQYFWG88z6HSH-upEj_-UdnS-RxvzPOEXFA at mail.gmail.com>,
Michael Schmidt <elmickerino at gmail.com> wrote:
> Thanks for the quick response. Unfortunately I can't get this to work, now
> for other reasons. I've attached the updated setup.py file and my simple
> test program (test_app.py) to this email.
> The problem seems to lie with pytz:
> ] python setup.py py2app
> ....(lots of byte-compiling messages here)....
> ] byte-compiling /Users/maschmidt/test_app.py to test_app.pyc
> ] error: cannot copy tree
> '/Library/Python/2.6/site-packages/pytz-2011h-py2.6.egg/pytz/zoneinfo': not
> a directory
This may be a problem that bit me awhile ago. If so, it was a bug in
py2app that has since been fixed.
I suggest you install the most recent version of py2app. I also suggest
you install matplotlib 1.0.1 (I believe you said you were using 1.0?)
using the binary installer; that will give you a fresh pytz.
If you really want to play it safe:
- Save an archived copy of your site-packages, just in case
- Throw away dateutil, pytz and matplotlib and pylab
- Edit easy_install.pth and remove any mention of these packages
- Install a new matplotlib from the Mac binary; this should give you
fresh copies of all these
More information about the Pythonmac-SIG