Closed ssuphakorn closed 5 months ago
Hi, I suspect you still somehow have an old version of python-fsps installed; The sps_setup.f90 code should no longer try to access the -2.0 metallicity of the XRB, e.g. https://github.com/cconroy20/fsps/blob/4c527a97f055f96ad6d77d975d84b65b07f298c3/src/sps_setup.f90#L1076
I would try making sure to uninstall python-fsps from your environment, verify that it can no longer be imported, and then reinstall it using pip, and pay close attention to where it is being installed
Also you can check the installed version;
python -c "import fsps; print(fsps.__version__)"
Thank you very much for your suggestion. Using Python 3.11, I followed your instructions and was able to resolve the issue. Perhaps the reason that my first installation attempt had the older version is I was using Python 3.8? Anyway, thank you again for your help.
Great, glad it's working for you.
Hi, I tried running fsps on Python but it won't compile. I installed both fsps and python-fsps according to the installation manual. When tested by executing some simple commands such as StellarPopulation, it returns
"SPS_SETUP ERROR: xsp_feh-2.00.spec cannot be opened"
and Python crashes. I also found that there is no such file in the folderSPECTRA/xrb/
either. Using the solution from the reply I received from fsps repo page, it turns out that fsps is up to date. Is there any fix to this issue?For reference, I am using macOS Sonoma (14.0) on my Intel Mac. I also tried compiling the code on a Mac Mini running on M2 chip and similar OS, didn't work either. Python version on both machines is 3.8.18, and was installed via conda. Gfortran on both machines was installed via brew (GCC version 13.2.0).
Best, SS