That's my fault.  The light ray tool doesn't work within YT's parallel standards.  Putting the mpi4py import inside a try block probably won't work since the error is killing the python code.  For safety, it's probably best to just keep that import out of any .api for now.<br>
<br><div class="gmail_quote">On Wed, Apr 27, 2011 at 3:10 PM, Carolyn Peruta <span dir="ltr"><<a href="mailto:perutaca@msu.edu">perutaca@msu.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
It works, thanks!<br>
<div><div></div><div class="h5"><br>
<br>
On Apr 27, 2011, at 3:07 PM, Matthew Turk wrote:<br>
<br>
> Hi Carolyn,<br>
><br>
> Skimming the source, it looks like light_ray gets imported when you do<br>
> yt.analysis_modules.api.  light_ray includes an import of mpi4py.  So<br>
> what I think is happening is that this import breaks the local MPI<br>
> installation, and rather than throwing an error, it calls the system<br>
> exit, dumping you back at the prompt.<br>
><br>
> I've committed what I think is a fix to both the tip and the stable<br>
> repo.  Can you give it a shot?<br>
><br>
> -Matt<br>
><br>
> On Wed, Apr 27, 2011 at 3:02 PM, Carolyn Peruta <<a href="mailto:perutaca@msu.edu">perutaca@msu.edu</a>> wrote:<br>
>> Hi all,<br>
>><br>
>> I've never had problems running YT on Ranger before, but after my latest hg pull/update I'm getting the following error:<br>
>><br>
>><br>
>> In [3]: from yt.mods import *<br>
>><br>
>> In [4]: from yt.analysis_modules.api import EnzoSimulation<br>
>> PMGR_COLLECTIVE ERROR: unitialized MPI task: Missing required environment variable: MPIRUN_RANK<br>
>><br>
>><br>
>> What's going on here?<br>
>><br>
>> Best,<br>
>><br>
>> Carolyn<br>
>> _______________________________________________<br>
>> yt-users mailing list<br>
>> <a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
>> <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
>><br>
> _______________________________________________<br>
> yt-users mailing list<br>
> <a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
> <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br>
_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
</div></div></blockquote></div><br>