[Pythonmac-SIG] py2app help
wrobyn at cox.net
wrobyn at cox.net
Mon Feb 26 21:54:56 CET 2007
Hello,
pretty new to this stuff. Why Am I getting the invalid image error?:
ile "/Users/wrobyn/Documents/LOAD/dist/LOAD!.app/Contents/Resources/__boot__.py", line 31, in <module>
_run('Python-1.py')
File "/Users/wrobyn/Documents/LOAD/dist/LOAD!.app/Contents/Resources/__boot__.py", line 28, in _run
execfile(path, globals(), globals())
File "/Users/wrobyn/Documents/LOAD/dist/LOAD!.app/Contents/Resources/Python-1.py", line 193, in <module>
frame = InsertFrame(parent=None, id=-1)
File "/Users/wrobyn/Documents/LOAD/dist/LOAD!.app/Contents/Resources/Python-1.py", line 46, in __init__
sb1 = wx.StaticBitmap(panel, -1, wx.BitmapFromImage(img1))
File "wx/_gdi.pyc", line 740, in BitmapFromImage
wx._core.PyAssertionError: C++ assertion "image.Ok()" failed at /BUILD/wxPython-src-2.8.1.1/src/mac/carbon/bitmap.cpp(1075) in wxBitmap(): invalid image
2007-02-26 15:46:07.979 LOAD![518] LOAD! Error
2007-02-26 15:46:07.980 LOAD![518] LOAD! Error
An unexpected error has occurred during execution of the main script
PyAssertionError: C++ assertion "image.Ok()" failed at /BUILD/wxPython-src-2.8.1.1/src/mac/carbon/bitmap.cpp(1075) in wxBitmap(): invalid image
setup is:
rom setuptools import setup
NAME = 'LOAD!'
VERSION = '0.1'
plist = dict(
CFBundleIconFile=NAME,
CFBundleName=NAME,
CFBundleShortVersionString=VERSION,
CFBundleGetInfoString=' '.join([NAME, VERSION]),
CFBundleExecutable=NAME,
CFBundleIdentifier='net.manhunt.load',
)
setup(
data_files=['data'],
app=[
dict(script="Python-1.py", plist=plist),
],
setup_requires=["py2app"],
)
thanks, and yes the image is in the data subfolder
More information about the Pythonmac-SIG
mailing list