<div dir="ltr">Thanks! It took me further... However, I'm now getting the following error. Do you know what may cause this?<br><br>*** creating application bundle: Raptr ***<br>copying build/bdist.macosx-10.3-i386/python2.5-standalone/app/site-packages.zip -> /Users/patrickli/client/gxl/trunk/client/src/dist/Raptr.app/Contents/Resources/lib/python2.5<br>
Traceback (most recent call last):<br> File "/Users/patrickli/python/lib/python2.5/site-packages/py2app-0.4.2-py2.5.egg/py2app/build_app.py", line 579, in _run<br> self.run_normal()<br> File "/Users/patrickli/python/lib/python2.5/site-packages/py2app-0.4.2-py2.5.egg/py2app/build_app.py", line 650, in run_normal<br>
self.create_binaries(py_files, pkgdirs, extensions, loader_files)<br> File "/Users/patrickli/python/lib/python2.5/site-packages/py2app-0.4.2-py2.5.egg/py2app/build_app.py", line 767, in create_binaries<br> platfiles = mm.run()<br>
File "build/bdist.macosx-10.3-i386/egg/macholib/MachOStandalone.py", line 102, in run<br> mm.run_file(fn)<br> File "build/bdist.macosx-10.3-i386/egg/macholib/MachOGraph.py", line 66, in run_file<br>
m = self.createNode(MachO, pathname)<br> File "build/bdist.macosx-10.3-i386/egg/macholib/MachOStandalone.py", line 23, in createNode<br> res = super(FilteredMachOGraph, self).createNode(cls, name)<br> File "build/bdist.macosx-10.3-i386/egg/altgraph/ObjectGraph.py", line 148, in createNode<br>
m = cls(name, *args, **kw)<br> File "build/bdist.macosx-10.3-i386/egg/macholib/MachO.py", line 61, in __init__<br> self.load(file(filename, 'rb'))<br> File "build/bdist.macosx-10.3-i386/egg/macholib/MachO.py", line 76, in load<br>
self.load_header(fh, 0, size)<br> File "build/bdist.macosx-10.3-i386/egg/macholib/MachO.py", line 106, in load_header<br> hdr = MachOHeader(self, fh, offset, size, magic, hdr, endian)<br> File "build/bdist.macosx-10.3-i386/egg/macholib/MachO.py", line 146, in __init__<br>
self.load(fh)<br> File "build/bdist.macosx-10.3-i386/egg/macholib/MachO.py", line 178, in load<br> raise ValueError("Unknown load command: %d" % (cmd_load.cmd,))<br>ValueError: Unknown load command: 27<br>
> /Users/patrickli/client/gxl/trunk/client/src/build/bdist.macosx-10.3-i386/egg/macholib/MachO.py(178)load()<br>(Pdb) <br><br><br><div class="gmail_quote">On Fri, Aug 1, 2008 at 5:08 PM, Russell E. Owen <span dir="ltr"><<a href="mailto:rowen@cesmail.net">rowen@cesmail.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">In article<br>
<<a href="mailto:2b5a48740808011452k697c7f70kf840eea7d89889b4@mail.gmail.com">2b5a48740808011452k697c7f70kf840eea7d89889b4@mail.gmail.com</a>>,<br>
<div><div></div><div class="Wj3C7c"> "Patrick Li" <<a href="mailto:patrick@raptr.com">patrick@raptr.com</a>> wrote:<br>
<br>
> Hi,<br>
><br>
> I just used py2app to bundle my app on Leopard. It works fine on my<br>
> computer. However, when I let my friend run the app on his machine that is<br>
> running Tiger, it returned an error regarding the python runtime:<br>
><br>
> "A Python runtime could be located. You may need to install a framework<br>
> build of Python, or edit the PyRuntimeLocations array in this application's<br>
> Info.plist file."<br>
><br>
> After further investigation, it appears that Leopard comes with python 2.5<br>
> and Tiger comes with python 2.3. As a result, it was not able to find the<br>
> python runtime to execute my application.<br>
><br>
> I was under the assumption that py2app is supposed to bundle python all<br>
> together so that it can run on any machine as a standalone without depending<br>
> on python being installed on their machine? Am I missing something?<br>
<br>
</div></div>All you have to do is install your own python and use that to run<br>
py2app. then py2app will bundle the python in your app. (It will not<br>
bundle the system python for various good reasons.)<br>
<br>
Installing your own python is a good thing to do in any case. You can<br>
add and update packages and you can update python without fear of<br>
messing up the system.<br>
<br>
-- Russell<br>
<br>
_______________________________________________<br>
Pythonmac-SIG maillist - <a href="mailto:Pythonmac-SIG@python.org">Pythonmac-SIG@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/pythonmac-sig" target="_blank">http://mail.python.org/mailman/listinfo/pythonmac-sig</a><br>
<br>
<br>
</blockquote></div><br></div>