Hi Ian,

That's strange, both of those imports work for me. Just checking, but have you don't "pip install -e ." inside the source directory?

Britton

On Fri, Oct 1, 2021 at 10:56 PM Ian Woodward <ianww@iinet.net.au> wrote:
I installed the development version from source, giving me the installed package:

yt-astro-analysis         1.1.0.dev2                dev_0    <develop>

but when I try to import:

from yt.extensions.astro_analysis.halo_analysis import HaloCatalog

I still get the error:

Cannot find reference 'astro_analysis' in '__init__.py'

If I instead use:

from yt_astro_analysis.halo_analysis import HaloCatalog

I get the error:

ImportError: cannot import name 'HaloCatalog' from 'yt_astro_analysis.halo_analysis'

Should I be importing differently?
_______________________________________________
yt-users mailing list -- yt-users@python.org
To unsubscribe send an email to yt-users-leave@python.org
https://mail.python.org/mailman3/lists/yt-users.python.org/
Member address: brittonsmith@gmail.com