Hi all,<div><br></div><div>I&#39;ve switched to the Python.org 2.7 distribution after figuring out that you can&#39;t do a standalone py2app application with system python (I evidently wasn&#39;t reading through -h and it&#39;s not noted in documentation).</div>
<div><br></div><div>However, I&#39;m running into another problem: is spawn() not supported by py2app-generated applications? When running this application (which doesn&#39;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:</div>
<div><br></div><div><div>(mapsonastick_env)~/Code/python/mapsonastick_env/mapsonastick/dist/moas.app/Contents/MacOS$ ./moas </div><div> * Running on <a href="http://127.0.0.1:5000/">http://127.0.0.1:5000/</a></div><div> * Restarting with reloader...</div>
<div>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</div></div>
<div><br></div><div>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:</div><div><br></div><div><div>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</div>
</div><div><br></div><div>Any idea what&#39;s going on here? Or if there&#39;s a different route I can take that might bring this a bit closer to something resembling success?</div><div><br></div><div>Tom MacWright</div>