py2app und pygame

Hier werden alle anderen GUI-Toolkits sowie Spezial-Toolkits wie Spiele-Engines behandelt.
Antworten
mayx
User
Beiträge: 71
Registriert: Sonntag 3. Mai 2009, 02:51

Hallo,

ich hab ein pygame-spiel gebastelt, dass auch super läuft.
Nun möchte ich dies gerne einem Freund schicken,
deshalb wollte ich es mit py2app packen und selbststartend machen.

Leider bekomme ich immer diese Fehlermeldung (python 2.4)
nachdem fast alles durch gelaufen ist.:

Code: Alles auswählen

...
Graphing /Users/ameyer/Documents/workspace/py2app/src/dist/main.app/Contents/Resources/Python/lib-dynload/Foundation/_Foundation.so (ppc)
Graphing /Users/ameyer/Documents/workspace/py2app/src/dist/main.app/Contents/Resources/Python/lib-dynload/objc/_objc.so (ppc)
Graphing /Users/mymane/Documents/workspace/py2app/src/dist/main.app/Contents/Resources/Python/lib-dynload/pygame/_numericsndarray.so (ppc)
Traceback (most recent call last):
  File "/Users/ameyer/Documents/workspace/py2app/src/setup.py", line 10, in ?
    setup(
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/distutils/core.py", line 149, in setup
    dist.run_commands()
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/distutils/dist.py", line 946, in run_commands
    self.run_command(cmd)
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/distutils/dist.py", line 966, in run_command
    cmd_obj.run()
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Py2App/py2app/build_app.py", line 389, in run
    self._run()
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Py2App/py2app/build_app.py", line 510, in _run
    self.run_normal()
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Py2App/py2app/build_app.py", line 570, in run_normal
    self.create_binaries(py_files, pkgdirs, extensions, loader_files)
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Py2App/py2app/build_app.py", line 672, in create_binaries
    platfiles = mm.run()
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Py2App/macholib/MachOStandalone.py", line 101, in run
    mm.run_file(fn)
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Py2App/macholib/MachOGraph.py", line 67, in run_file
    m = MachO(pathname)
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Py2App/macholib/MachO.py", line 254, in __init__
    self.load()
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Py2App/macholib/MachO.py", line 287, in load
    self.archs = self.load_fat(fat, fh)
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Py2App/macholib/MachO.py", line 271, in load_fat
    archs.append(MachOArch(self.filename, archHeader.offset, endian="<"))
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Py2App/macholib/MachO.py", line 59, in __init__
    self.load(file(filename, "rb"))
  File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Py2App/macholib/MachO.py", line 92, in load
    raise ValueError, "Unknown load command: %d" % (cmd_load.cmd,)
ValueError: Unknown load command: 27
Mit python 2.5

Code: Alles auswählen

...
stripping binascii.so
/usr/bin/strip: changes being made to the file will invalidate the code signature in: /Users/ameyer/Documents/workspace/py2app/src/dist/main.app/Contents/MacOS/python (for architecture ppc7400)
/usr/bin/strip: changes being made to the file will invalidate the code signature in: /Users/ameyer/Documents/workspace/py2app/src/dist/main.app/Contents/MacOS/python (for architecture i386)
/usr/bin/strip: changes being made to the file will invalidate the code signature in: /Users/ameyer/Documents/workspace/py2app/src/dist/main.app/Contents/MacOS/main (for architecture ppc7400)
/usr/bin/strip: changes being made to the file will invalidate the code signature in: /Users/ameyer/Documents/workspace/py2app/src/dist/main.app/Contents/MacOS/main (for architecture i386)
/usr/bin/strip: for architecture ppc64 object: /Users/ameyer/Documents/workspace/py2app/src/dist/main.app/Contents/Frameworks/Python.framework/Versions/2.5/Python malformed object (load command 3 cmdsize not a multiple of 8)
stripping saved 0 bytes (12848068 / 12848068)
Jemand einen Tipp?
Arbeite mit Eclipse und Pydev auf Intel-Mac 10.5.8
Einziger Google-Treffer war http://mail.python.org/pipermail/python ... 20221.html
Antworten