temuller / hostphot

HostPhot: global and local photometry of galaxies hosting supernovae or other transients
https://hostphot.readthedocs.io/en/latest/
MIT License
5 stars 2 forks source link

Installation was a touch tricky #6

Open thmire opened 1 month ago

thmire commented 1 month ago

When attempting to install, I found that once I got to the point of importing hostphot I received the error: ImportError: cannot import name 'update_default_config' from 'astropy.config.configuration' (/home/treynolds/mambaforge/envs/hostphot/lib/python3.12/site-packages/astropy/config/configuration.py)

After some research, I found that this was due to astropy removing some functions. I managed to install and run hostphot, but it required installing: Python=3.10 Astropy=5.3.4

Things work fine now, but you might want to check that you can reproduce my installation method and add this to the installation instructions.

temuller commented 1 month ago

Hi. Thanks for reporting this. I just tried installing hostphot on a new environment and encountered the same error. However, this seems to be an issue with Aplpy. They actually have an open issue: https://github.com/aplpy/aplpy/issues/505. It would be better if they solve it, but I'll see if I find a workaround or if they are working on a solution.