Closed 0xygens closed 10 months ago
Thanks for the report! It looks like there's an issue with the most recent source distribution on PyPI and it doesn't include the FSPS source files that it should. We'll need to fix that, but in the meantime, you could install from source using the instructions here replacing the pip install line with:
- python -m pip install .
+ FFLAGS="-DMIST=0 -DPADOVA=1 -DMILES=1 -DBASEL=0" python -m pip install .
Thank you for your prompt feedback! The fact that I didn't use this method is that I didn't understand. I have downloaded FSPS and made the environment variable point to the fsps installation folder next install python-fsps from PyPl. Does this method mean that I don't need to download FSPS again and just point the environment variable 'export SPS_HOME=$(pwd)/src/fsps/libfsps' to the python-fsps installation directory?
When you install python-fsps
from source it also downloads a full copy of FSPS, so you can reuse that copy if you want, but it should also be fine to use your current SPS_HOME
setup. That comment in the docs is a bit of an aside, you're not required to run the export SPS_HOME=$(pwd)/src/fsps/libfsps
command.
Thank you! Great and professional reply! My problem is solved and will close this issue.
I turned this back on because one thing I found is that this doesn't work when SPS_HOME points to external FSPS. 'SPS_SETUP ERROR: xsp.lambda cannot be opened' like this test:
$python -c "import fsps; sp = fsps.StellarPopulation(); print(sp.libraries)"
SPS_SETUP ERROR: xsp.lambda cannot be opened
When SPS_HOME points to $(pwd)/src/fsps/libfsps.,it works again. I don't know why, but I think it's worth telling you. And then I'll close it again.
Hi, you might try updating the external FSPS, as some of the data files were updated recently (which is captured by the FSPS submodule of python-FSPS, but must be explicitly updated in an external FSPS)
cd $SPS_HOME
git pull
Hope this helps.
Thank you for your answer, which works well!
Hi, I successfully installed python-fsps. And want to use PADOVA as the isochron library MILES as the stellar spectrum library, and follow the instructions to uninstall and change the library and reinstall. However, the installation was not successful. Could you provide some insights into this?Thanks for your guidance! The installation process and error information are as follows: