astropy / SPISEA

Stellar Population Synthesis Modeling
https://spisea.readthedocs.io/en/stable/index.html
64 stars 32 forks source link

pytest : ModuleNotFoundError: No module named 'pytest_astropy_header' in SPISEA-2.1.9 #91

Closed Astro-Lee closed 1 year ago

Astro-Lee commented 1 year ago

When I run pytest, I have encountered the following error:

pytest

Thanks!

mwhosek commented 1 year ago

Hello,

Thanks for reporting this bug! I suspect this might be a SPISEA dependence that we neglected to add to our documentation. In this case, the missing package is pytest-astropy-header, which we need for the testing suite.

It looks like you can install pytest-astropy-header via pip (see package link above for instructions). If you are using anaconda for your python environment, you can also install it by:

conda install pytest-astropy-header

Let us know if this fixes the issue, and we will update the install documentation accordingly. Otherwise, we'll continue to debug :).

Thanks for your interest in SPISEA! Matt

Astro-Lee commented 1 year ago

pytest passed! 👍

image

Thanks!