Hi Andrew,

This may be for one of two reasons, either yt hasn't been installed with rockstar support or the rockstar library isn't in your LD_LIBRARY_PATH. Note, as of yt 3.5, the yt's rockstar interface has been deprecated and moved to an external package called yt_astro_analysis. I would suggest following the instructions there for installing and running with rockstar. You can find them here:
https://yt-astro-analysis.readthedocs.io/en/latest/Installation.html#installing-with-rockstar-support

The yt_astro_analysis docs also have information on altering the imports in your script to use the new package. Let us know if you have any other questions.

Britton

On Sat, Dec 15, 2018 at 7:53 AM Andrew Cook <Andrew.Cook1@myport.ac.uk> wrote:
Hello,

I'm trying to run Rockstar Halo Finder using yt 3.5.0 and Enzo 2.5 but I keep getting an error whenever I run it saying it can't import name rockstar interface? Full transcript of the error is below:
Traceback (most recent call last):
  File "rockstar.py", line 4, in <module>
    from yt.analysis_modules.halo_finding.rockstar.api import RockstarHaloFinder
  File "/opt/apps/yt/3.3.1/yt-conda/lib/python2.7/site-packages/yt/analysis_modules/halo_finding/rockstar/api.py", line 16, in <module>
    from .rockstar import RockstarHaloFinder
  File "/opt/apps/yt/3.3.1/yt-conda/lib/python2.7/site-packages/yt/analysis_modules/halo_finding/rockstar/rockstar.py", line 26, in <module>
    from . import rockstar_interface
ImportError: cannot import name rockstar_interface

Many thanks
Andy
_______________________________________________
yt-users mailing list -- yt-users@python.org
To unsubscribe send an email to yt-users-leave@python.org