I'm trying to build semi-standalone applications against Leopard's stock Python 2.5 with an appscript 0.19.0 .egg installed, but am getting the following error when I run the resulting apps:
####### begin error #######
test Error
An unexpected error has occurred during execution of the main script
ImportError: '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload/aem/ae.so' not found
####### end error #######
Test code as follows:
####### begin test.py #######
import osax
sa = osax.ScriptingAddition()
sa.activate()
sa.display_alert("Hello world")
####### end test.py #######
####### begin setup.py #######
from distutils.core import setup
import py2app
from plistlib import Plist
setup(
app=["test.py"],
data_files=[],
options=dict(
py2app=dict(
plist=Plist(
CFBundleDocumentTypes = [
dict(
CFBundleTypeExtensions=["*"],
CFBundleTypeName="public.item",
CFBundleTypeRole="Viewer",
),
]
),
semi_standalone=True
)
)
)
####### end setup.py #######
Any ideas? These apps are for internal use on Leopard boxen, so there's no need for fully standalone builds and I'd prefer to avoid them to keep file sizes down.
BTW, I also notice that Leopard's py2app builds a fully standalone (~12MB) application bundle by default when the stock Python is used. (On Tiger, apps that used the system Python would always build as semi-standalone.) Anyone know if this a bug or a feature?
Thanks,
has
_______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig