From: Christopher Barker <chris.bar...@noaa.gov>
Date: Wed, 28 Oct 2009 09:50:14 -0700
To: Jim Skibbie <jskib...@schawk.com>
Cc: "pythonmac-sig@python.org" <pythonmac-sig@python.org>
Subject: Re: [Pythonmac-SIG] Python XMP Toolkit bundling

Jim Skibbie wrote:
> For testing purposes, I removed the option to pass arguments to my
> Python script and I tried using the tutorial for py2app to create a
> standalone app.

> 1) use the latest py2app"
> 
> easy_install py2app==dev

I¹m using py2app v. 0.4.3

> 2) make sure you are running py2app with the same python that you've
> installed all that stuff into. (and tell us what python that is)

Not sure what you mean about using the same python that I¹ve installed all
the stuff into. I compiled boost, exempi and python-xmp-toolkit into a
directory inside my /opt/local folder. Should I have installed these in some
other place? 

> 3) post your setup.py here, so we can see what you've done

Here¹s the setup.py, it is just the generated one from py2applet.

"""
This is a setup.py script generated by py2applet

Usage:
    python setup.py py2app
"""

from setuptools import setup

APP = ['WriteEskoXMP.py']
DATA_FILES = []
OPTIONS = {'argv_emulation': True}

setup(
    app=APP,
    data_files=DATA_FILES,
    options={'py2app': OPTIONS},
    setup_requires=['py2app'],
)

I got the py2app to make an app that runs now by turning off the ­A (alias
mode) when building the app, but it still only runs on my machine. The
libxmp looks like it¹s getting bundled now, but when I try to run it on a
different machine, I get a error: ExempiLoadError so now it looks like the
Exempi which the python-xmp-toolkit requires (
http://www.spacetelescope.org/projects/python-xmp-toolkit/docs/installation.
html) isn¹t getting bundled, or maybe it can¹t be bundled? That would be a
bummer.

> 4) tell us OS and Python version.

I¹m using OS X 10.5.8 and Python 2.5.1 which I¹m assuming is what came with
my Mac? I don¹t remember installing anything else.

Can you tell that I¹m in a little over my head??

Thanks.
Jim



-Chris



-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

chris.bar...@noaa.gov

_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to