[Pythonmac-SIG] Problem with a bundlebuilder application
Quentin DECAVEL
qdecavel at wanadoo.fr
Wed Sep 15 20:58:10 CEST 2004
Hi
I have recently met a weird problem using bundlebuilder (I'm quite a newbie, sorry if the question
is trivial) :
I have a Macpython/Pygame application that runs fine when launched from the command line;
I use bundlebuilder, which send me some warnings but I still have a build; when I launch the
obtained app by command line (with ./build/Test.app/Contents/MacOS/Test, there is still no
problem, but every time I double click the app, it leaves after 5 to 10 seconds
I have used the Console to get this error message :
init
Traceback (most recent call last):
File "/Users/odecavel/Desktop/newengine/build/Test.app/Contents/Resources/
Greenhouse.py", line 145, in ?
mainloop()
File "/Users/odecavel/Desktop/newengine/enginemain.py", line 26, in mainloop
curitem._handleevent(fakeevent('init'))
File "/Users/odecavel/Desktop/newengine/inventoryfloat.py", line 247, in _handleevent
self._handleinit()
File "/Users/odecavel/Desktop/newengine/inventoryfloat.py", line 292, in _handleinit
self._itemimages.append([item._draw(),None])
File "/Users/odecavel/Desktop/newengine/item.py", line 93, in _draw
self._itemsurface = globals.loadfile(parameters.getitempath(), self._file, self._datfile,
self._encryption)
File "/Users/odecavel/Desktop/newengine/globals.py", line 114, in loadfile
tmpsurface = pygame.image.load(os.path.join(filepath, filename)).convert()
pygame.error: Couldn't open Greenhouse/items/item.bmp
To build the app, I use python buildapp.py build, and here is my buildapp.py :
import os
from bundlebuilder import buildapp
buildapp(
name = "Test.app",
mainprogram = "Greenhouse.py",
includeModules = [],
includePackages = ["/Library/Python/2.3/PyObjC/"],
libs = [],
)
Does anybody have an idea where I did wrong ?
Thanks in advance
More information about the Pythonmac-SIG
mailing list