Open JohannesBuchner opened 2 years ago
Thanks @JohannesBuchner! Yes someone recently put another version of astromodels on conda-forge and because of the complicated issues linking to xspec, it has caused the install process to become fragile requiring the proper channel and install order. There are several ways to circumvent this, but I need to update the install instructions which I plan to do today. Sorry for the hassle.
Correction: the commands I gave ran through with mamba, but when running it does not work: this h5py issue occurs https://github.com/h5py/h5py/issues/1880
Currently rerunning with conda, but it seems to be stuck at the "solving" step.
Yes. I am currently having the same issues.
The first set of commands installed an old version of xspec-modelsonly (6.22) instead of the most current one (6.25). The environment needs to be created with all the required packages installed together (threeml astromodels xspec-modelsonly). Or you should use the installer script as described in the documentation.
Note: there was a version of ccfits in threeml channel (v2.5). I remove it and now conda gets the version of ccfits in conda-forge (2.6). I have tried the installer and everything works on MacOS.
Describe the bug Installing from a fresh conda installation failed
To Reproduce Steps to reproduce the behavior:
Errors:
- nothing provides ccfits 2.5 needed by xspec-modelsonly-6.22.1-h1c2f66e_1
- nothing provides libgfortran needed by xspec-modelsonly-6.22.1-h1c2f66e_1
- nothing provides cfitsio 3.410 needed by xspec-modelsonly-6.22.1-h1c2f66e_1
Expected behavior Installation successful
Desktop (please complete the following information):
Solution
Adding conda-forge as a channel in the last install command, so it can pull the necessary dependencies does not work, gives error
- package cfitsio-3.470-h5893167_7 requires libgfortran5 >=11.2.0, but none of the providers can be installed
.This sequence of commands works: