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

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
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