<div dir="ltr"><div><div><div><div><div>Ok, with Matt's suggestion I was able to get this working.<br><br></div><b>How to get Rockstar working with yt-3.0:</b><br><br></div>1. Clone Matt's fork of Rockstar (<a href="http://bitbucket.org/matthewturk/rockstar">http://bitbucket.org/matthewturk/rockstar</a>)<br>
</div>2. Update to the tip (hg up 5223577)<br></div>3. Build rockstar as a library (make lib)<br></div>4. Put the resulting library (librockstar.so) in a location where it will be found during dynamic linking (e.g. LD_LIBRARY_PATH or /usr/local/lib)<br>
<div><div>5. Navigate to the yt-3.0 repository. Echo the path to the library into a text file name rockstar.cfg (echo /usr/local/lib > rockstar.cfg).<br></div><div>6. Do 'python setup.py develop' yt should build the rockstar interface and link against librockstar.<br>
</div><div>7. Run your script. Note that your script must be run in parallel.<br><br></div><div>Unfortunately I wasn't able to actually *run* rockstar since I don't have any DM datasets with only single particle mass. I think I have some DM+stars datasets that will work but I'm not sure how to pass a filtered particle type to the halo finder. Matt, do you happen to know how to set that up?<br>
</div><div><br></div><div>Hope that's helpful for others who have issues with rockstar setting up. Note or the future that the specific changeset I reference in step 2 will probably not be correct for very long since I think Matt wants to rearrange things so that fresh clones of the repo will be created with a working changeset.<br>
<br></div><div>-Nathan<br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Nov 16, 2013 at 8:24 PM, Matthew Turk <span dir="ltr"><<a href="mailto:matthewturk@gmail.com" target="_blank">matthewturk@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Hi Nathan,</p>
<p dir="ltr">My rock star repo has a default branch which is not the one that works; the tip should, however. I'll address that as soon as I can.</p>
<p dir="ltr">Matt</p><div class="HOEnZb"><div class="h5">
<div class="gmail_quote">On Nov 16, 2013 9:11 PM, "Nathan Goldbaum" <<a href="mailto:nathan12343@gmail.com" target="_blank">nathan12343@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word"><div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">I take that back, I just tried to compile yt’s rockstar interface, linking against a fresh clone of Matt’s Rockstar repo and got the same gcc error as Devin:</div>
<div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto"><br></div><div style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">
<a href="http://paste.yt-project.org/show/4065/" target="_blank">http://paste.yt-project.org/show/4065/</a></div> <div></div> <br><p style="color:#a0a0a8">On November 16, 2013 at 5:27:57 PM, Nathan Goldbaum (<a href="mailto://nathan12343@gmail.com" target="_blank">nathan12343@gmail.com</a>) wrote:</p>
<blockquote type="cite"><span><div><div>
<div dir="ltr">
<div>
<div>Hi Devin,<br>
<br></div>
<div>This is a shot in the dark, but it might be that you have old
autogenerated C files that are getting compiled. I think if
the setup.py script for the rockstar interface is written properly,
this shouldn't be a problem - perhaps there is a bug
there.<br></div>
<div><br></div>
Can you remove all of the .c and .so files in the yt installation
and try rebuilding again?<br>
<br>
<tt><span>find . -name '*.so' | xargs rm</span></tt><br>
<tt><span>find . -name '*.c' | xargs rm<br>
<br></span></tt></div>
-Nathan<br></div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Sat, Nov 16, 2013 at 5:06 PM, Devin
Silvia <span dir="ltr"><<a href="mailto:devin.silvia@gmail.com" target="_blank">devin.silvia@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi
Matt,<br>
<br>
I discovered that I was on an outdated yt-3.0 repo (got
confused<br>
jumping between machines). However, after updating my yt-3.0
repo, I<br>
can't seem to get yt-3.0 to build with rockstar. I've
downloaded the<br>
rockstar bitbucket repo and put the directory into rockstar.cfg.
When<br>
I try to do "python setup.py build_ext -i -f" I get the
following<br>
error when it get to building rockstar:<br>
<br>
<a href="http://paste.yt-project.org/show/4064/" target="_blank">http://paste.yt-project.org/show/4064/</a><br>
<br>
Most of it seems to be warnings, but the errors look like
something<br>
that I'm hoping someone more familiar with the code might be able
to<br>
parse.<br>
<br>
Thanks,<br>
Devin<br>
<div>
<div><br>
<br>
On Fri, Nov 15, 2013 at 6:18 PM, Matthew Turk <<a href="mailto:matthewturk@gmail.com" target="_blank">matthewturk@gmail.com</a>>
wrote:<br>
> Hi Devin,<br>
><br>
> Your traceback doesn't match my rockstar.py file -- which hash
are you on?<br>
><br>
> -Matt<br>
><br>
> On Fri, Nov 15, 2013 at 5:48 PM, Devin Silvia <<a href="mailto:devin.silvia@gmail.com" target="_blank">devin.silvia@gmail.com</a>>
wrote:<br>
>> Hi all,<br>
>><br>
>> I've been trying to get yt-3.0 and the rockstar halofinder
to work and<br>
>> I'm at the point where I *think* that my yt-3.0 install
and rockstar<br>
>> are happily talking to each other, but when it goes to
actually run<br>
>> the halofinder on my dataset, I get this issue:<br>
>><br>
>> <a href="http://paste.yt-project.org/show/4060/" target="_blank">http://paste.yt-project.org/show/4060/</a><br>
>><br>
>> It seems like something isn't being done right in terms of
accessing<br>
>> the particle information in the dataset, but I can't
digest enough of<br>
>> the yt source to understand why this is the case. If
anyone has any<br>
>> thoughts as to what is going wrong, I'd appreciate
it.<br>
>><br>
>> For what it's worth, this is the simple script I am
using:<br>
>><br>
>> <a href="http://paste.yt-project.org/show/4062/" target="_blank">http://paste.yt-project.org/show/4062/</a><br>
>><br>
>> Thanks!<br>
>> Devin<br>
>><br>
>> --<br>
>> Devin W. Silvia<br>
>> Research Associate<br>
>> Department of Physics and Astronomy<br>
>> Michigan State University<br>
>> <a href="http://www.devinsilvia.com" target="_blank">www.devinsilvia.com</a><br>
>> _______________________________________________<br>
>> yt-users mailing list<br>
>> <a href="mailto:yt-users@lists.spacepope.org" target="_blank">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>
> yt-users mailing list<br>
> <a href="mailto:yt-users@lists.spacepope.org" target="_blank">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>
<br>
--<br>
Devin W. Silvia<br>
Research Associate<br>
Department of Physics and Astronomy<br>
Michigan State University<br>
<a href="http://www.devinsilvia.com" target="_blank">www.devinsilvia.com</a><br>
_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">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></div>
</div></div></span></blockquote></div><br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">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></blockquote></div>
</div></div><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></blockquote></div><br></div>