The Pi example came from <a href="http://mpi4py.scipy.org/docs/usrman/tutorial.html">http://mpi4py.scipy.org/docs/usrman/tutorial.html</a>, I just modified it to run in a websocket handler on cherrypy. <div><br></div><div>

It looks like it's failing to spawn the processes using MPI. Do you get any exceptions in the log?</div><div><br></div><div>You could try first running the Pi example from the above website in python to make sure MPI is working on your machine.<br>

<br><div class="gmail_quote">On Wed, Feb 27, 2013 at 12:46 PM, Aashish Chaudhary <span dir="ltr"><<a href="mailto:aashish.chaudhary@kitware.com" target="_blank">aashish.chaudhary@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div>@Ben, </div><div><br></div><div>The char exampled worked like charm, but the PI example didn't.  I don't see the value of PI. Did you write that code or its from the ws4py test / example?</div><div><br></div>

<div>
Thanks</div><div><br></div><div><br></div><div>  1 [27/Feb/2013:12:44:38] ENGINE Listening for SIGHUP.</div><div>  2 [27/Feb/2013:12:44:38] ENGINE Listening for SIGTERM.</div><div>  3 [27/Feb/2013:12:44:38] ENGINE Listening for SIGUSR1.</div>


<div>  4 [27/Feb/2013:12:44:38] ENGINE Bus STARTING</div><div>  5 [27/Feb/2013:12:44:38] ENGINE Forking once.</div><div>  6 [27/Feb/2013:12:44:38] ENGINE Forking twice.</div><div>  7 [27/Feb/2013:12:44:38] ENGINE Daemonized to PID: 24810</div>


<div>  8 [27/Feb/2013:12:44:38]  Starting WebSocket processing</div><div>  9 [27/Feb/2013:12:44:38] ENGINE PID 24810 written to '/home/aashish/workspace/build/deploy/ogs.pid'.</div><div> 10 [27/Feb/2013:12:44:38] ENGINE Started monitor thread '_TimeoutMonitor'.</div>


<div> 11 [27/Feb/2013:12:44:38] ENGINE Started monitor thread 'Autoreloader'.</div><div> 12 [27/Feb/2013:12:44:38] ENGINE Serving on <a href="http://127.0.0.1:8080" target="_blank">127.0.0.1:8080</a></div><div> 13 [27/Feb/2013:12:44:38] ENGINE Bus STARTED</div>


<div> 14 [27/Feb/2013:12:44:41]  Handler created: <websocket_pi.PiWebSocketHandler object at 0x275f410></div><div> 15 [27/Feb/2013:12:44:41]  Managing WebSocket connection from <a href="http://127.0.0.1:56898" target="_blank">127.0.0.1:56898</a></div>


<div> 16 [27/Feb/2013:12:44:46]  something</div><div> 17 [27/Feb/2013:12:44:46]  Recieved message 101</div><div> 18 [27/Feb/2013:12:44:46]  Dir /home/aashish/workspace/build/deploy</div><div> 19 [27/Feb/2013:12:44:46]  Path /home/aashish/workspace/build/deploy/cpi.py</div>

<div class="HOEnZb"><div class="h5">
<br><div class="gmail_quote">On Wed, Feb 27, 2013 at 12:15 PM, Aashish Chaudhary <span dir="ltr"><<a href="mailto:aashish.chaudhary@kitware.com" target="_blank">aashish.chaudhary@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


Nice..I will have a look at it today. <br><br><div class="gmail_quote"><div>On Wed, Feb 27, 2013 at 12:10 PM, Ben Burnett <span dir="ltr"><<a href="mailto:benjam.arlyn@gmail.com" target="_blank">benjam.arlyn@gmail.com</a>></span> wrote:<br>



</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>I just pushed the branch websockets-mpi, and added a wiki page with some notes on it <a href="https://github.com/OpenGeoscience/opengeoscience/wiki/Testing-Websockets-and-MPI" target="_blank">https://github.com/OpenGeoscience/opengeoscience/wiki/Testing-Websockets-and-MPI</a>
<br></div>_______________________________________________<br>
Opengeoscience-developers mailing list<br>
<a href="mailto:Opengeoscience-developers@public.kitware.com" target="_blank">Opengeoscience-developers@public.kitware.com</a><br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/opengeoscience-developers" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/opengeoscience-developers</a><br>
<br></blockquote></div><span><font color="#888888"><br><br clear="all"><div><br></div>-- <br>| Aashish Chaudhary <br>| R&D Engineer         <br>| Kitware Inc.            <br>| <a href="http://www.kitware.com" target="_blank">www.kitware.com</a>    
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>| Aashish Chaudhary <br>| R&D Engineer         <br>| Kitware Inc.            <br>| <a href="http://www.kitware.com" target="_blank">www.kitware.com</a>    
</div></div></blockquote></div><br></div>