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   

 

Attachment: Part 3
Description: boundary/apple-mail-15--638044772

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

Usage:
    python setup.py py2app
"""

from setuptools import setup
APP = ['Cupcake.py']
DATA_FILES = ['player.png', 'monster_blue.png', 'monster_red.png','reward.png', 'reward_bite1.png', 'reward_bite2.png', 'bkgrnd.png', 'pacdies.ogg', 'chomp.ogg']
#OPTIONS = {'argv_emulation': True, }

setup(
    app=APP,
    data_files=DATA_FILES,
    options=
            dict(py2app=dict(
			argv_emulation = 'False',
            iconfile =  'cupcake.icns',
            plist=dict(
                Copyright='2010 Daniel Ross',
                NSHumanReadableCopyright='2010 Daniel Ross',
                CFBundleVersion='1.6',
            ),
    )),
    setup_requires=['py2app'],
)
_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig
unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG

Reply via email to