[Pythonmac-SIG] Pygame and py2app 0.5.2

Dan Ross dan at rosspixelworks.com
Tue Oct 12 21:51:31 CEST 2010



I worked around the error by installing the python.org 2.7 rather than
Activestate's. I think I mentioned that, but if I didn't, now I did.


Originally I installed Activestate's 2.7, installed py2app, built pygame
from source, then bundled the game as always. 

I'm attaching the setup.py
script that I've been using. 

Thanks Ronald. 

Dan 

On Tue, 12 Oct 2010
20:06:40 +0200, Ronald Oussoren  wrote: 
  On 5 Oct, 2010, at 3:49, Dan
Ross wrote: 

Hi all- 

I'm getting the following error when trying to
launch a bundled Pygame app:  

10/4/10 8:43:42 PM
[0x0-0x584584].org.pythonmac.unspecified.Cupcake[73356] ImportError:
dlopen(/Users/danr/Projects/cupcake/dist/Cupcake.app/Contents/Resources/lib/python2.6/lib-dynload/pygame/base.so,
2): no suitable image found. Did find: 

10/4/10 8:43:42 PM
[0x0-0x584584].org.pythonmac.unspecified.Cupcake[73356]
/Users/danr/Projects/cupcake/dist/Cupcake.app/Contents/Resources/lib/python2.6/lib-dynload/pygame/base.so:
no matching architecture in universal wrapper    

The game launches fine
from VIM or the command line. 

This had been working with an earlier
version of py2app. I'm guessing it's a 32 vs 64 bit problem of some sort?
Any direction would be appreciated. 
  "file
/Users/danr/Projects/cupcake/dist/Cupcake.app/Contents/Resources/lib/python2.6/lib-dynload/pygame/base.so"
shows which architectures are supported by the extension, while "file
/Users/danr/Projects/cupcake/dist/Cupcake.app/Contents/MacOS/Cupcake" shows
the architectures supported by the application launcher.   How can I
reproduce this problem? That is,  * How did you install python?  * How did
you install py2app?  * How did you install pygame?  * Do you have a simple
script with setup.py that demonstrates the problem?  Ronald   

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20101012/7586b2d2/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: setup.py
Type: text/x-python-script
Size: 728 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20101012/7586b2d2/attachment.bin>


More information about the Pythonmac-SIG mailing list