Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in SPS_SETUP #265

Closed
ssuphakorn opened this issue Feb 10, 2024 · 4 comments
Closed

Error in SPS_SETUP #265

ssuphakorn opened this issue Feb 10, 2024 · 4 comments

Comments

@ssuphakorn
Copy link

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 folder SPECTRA/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

@bd-j
Copy link
Collaborator

bd-j commented Feb 12, 2024

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

@bd-j
Copy link
Collaborator

bd-j commented Feb 12, 2024

Also you can check the installed version;
python -c "import fsps; print(fsps.__version__)"

@ssuphakorn
Copy link
Author

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.

@bd-j
Copy link
Collaborator

bd-j commented Feb 14, 2024

Great, glad it's working for you.

@bd-j bd-j closed this as completed Feb 14, 2024
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants