[Pythonmac-SIG] py2app problems with spawn

Ronald Oussoren ronaldoussoren at mac.com
Tue Jul 27 13:21:23 CEST 2010


On 26 Jul, 2010, at 5:35, Tom MacWright wrote:

> Hi all,
> 
> I've switched to the Python.org 2.7 distribution after figuring out that you can't do a standalone py2app application with system python (I evidently wasn't reading through -h and it's not noted in documentation).
> 
> However, I'm running into another problem: is spawn() not supported by py2app-generated applications? When running this application (which doesn't contain a frontend, but does contain a web server based off of the Flask microframework), the mac application quickly quits, and running it from the terminal gives:
> 
> (mapsonastick_env)~/Code/python/mapsonastick_env/mapsonastick/dist/moas.app/Contents/MacOS$ ./moas 
>  * Running on http://127.0.0.1:5000/
>  * Restarting with reloader...
> python: posix_spawn: /Users/tmcw/Code/python/mapsonastick_env/mapsonastick/dist/moas.app/Contents/MacOS/../Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: Unknown error: 0
> 
> This is odd because neither flask, its base library werkzeug, nor my application, use spawn directly, and running simply ./python in the directory gives the same error:

posix_spawn is used by the default python/pythonw executable inside the python framework in Python 2.7. Do you use virtualenv or something like that?   I use virtualenv for pyobjc development, but have a local patched version that fixes a number of issues.

Ronald
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20100727/01418c9b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3567 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20100727/01418c9b/attachment.bin>


More information about the Pythonmac-SIG mailing list