Did you build the app bundle with the Python that came with OSX, or did you install a separate Python install from <a href="http://python.org">python.org</a> and use that? You have to do the latter; py2app&#39;s not allowed to include components of the operating system in the apps it generates. Windows gets around this problem by not having a standard Python install. <br>
<br>HTH<br><br>-Chris<br><br><div class="gmail_quote">On Tue, Jan 11, 2011 at 9:42 AM, Mier, Alejandro <span dir="ltr">&lt;<a href="mailto:alejandro@ti.com">alejandro@ti.com</a>&gt;</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;">
Hello<br>
<br>
I have a script that installs Python, and then installs some modules with:<br>
<br>
subprocess.call(&quot;python setup.py install&quot;)<br>
<br>
The script works on Windows with py2exe, but gives me this error when using py2app:<br>
<br>
File setup.py<br>
    from distutils.core import setup<br>
ImportError: No module named distutils.core<br>
<br>
I tried explicitly including distutils when building the .app bundle, with python setup.py py2app --packages distutils (and several variations of --includes), but then I get this error:<br>
<br>
error: invalid command &#39;install&#39;<br>
<br>
What do I need to do to make this work on mac?<br>
<br>
Thanks!<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>
unsubscribe: <a href="http://mail.python.org/mailman/options/Pythonmac-SIG" target="_blank">http://mail.python.org/mailman/options/Pythonmac-SIG</a><br>
</blockquote></div><br>