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

Issue on page /quickstart.html #323

Closed
roccorollo opened this issue Mar 12, 2024 · 5 comments
Closed

Issue on page /quickstart.html #323

roccorollo opened this issue Mar 12, 2024 · 5 comments

Comments

@roccorollo
Copy link

Hi

This is the first time I install this software.
I have installed the default version (not the development one, after installing requirements, including fsps).
It seems that the code cannot find an important library file xsp_feh-2.00.spec
The problem raises at the step "get a source" after
CSPSpecBasis(zcontinuous=1)

I get the error:
Fixed Parameters: (name: value [, depends_on])

zred: [0.07260209]
sfh: [4]
imf_type: [2]
dust_type: [0]
add_neb_emission: [ True]
add_neb_continuum: [ True]
nebemlineinspec: [ True]
gas_logz: [0.] <function stellar_logzsol at 0x72a980ca5ca0>
gas_logu: [-2.]
SPS_SETUP ERROR: xsp_feh-2.00.spec cannot be opened

similarly, in the tutorial, when running
python demo_params.py --objid=0 --emcee --optimize --outfile=demo_obj0_emcee

I get the same error:
SPS_SETUP ERROR: xsp_feh-2.00.spec cannot be opened

@bd-j
Copy link
Owner

bd-j commented Mar 12, 2024

This is an issue with the fsps installation. Can you try

echo $SPS_HOME
python -c "import fsps; print(fsps.__version__)"
cd $SPS_HOME
git rev-parse HEAD

@roccorollo
Copy link
Author

Thank you. Here my output:


(py38) rossi@Inspiron-3020:~/work/redshift/prospector$ echo $SPS_HOME
/home/rossi/soft/git/fsps
(py38) rossi@Inspiron-3020:~/work/redshift/prospector$ python -c "import fsps; print(fsps.__version__)"
0.4.3
(py38) rossi@Inspiron-3020:~/work/redshift/prospector$ cd $SPS_HOME
(py38) rossi@Inspiron-3020:~/soft/git/fsps$ git rev-parse HEAD
4c527a97f055f96ad6d77d975d84b65b07f298c3
(py38) rossi@Inspiron-3020:~/soft/git/fsps$

@bd-j
Copy link
Owner

bd-j commented Mar 12, 2024

Thanks - the python-fsps version is a bit out of date, the current release is 0.4.6. Once you've updated it should work.

@roccorollo
Copy link
Author

Thanks. I could install last version only after switching to python 3.10. Now it works :-) Sorry if I missed this requirement (maybe 3.9 was enough, but I did not check) :-(

@bd-j
Copy link
Owner

bd-j commented Mar 12, 2024

Thanks for the info, I will try to make sure that requirement is noted.

@bd-j bd-j closed this as completed in 899e30e Mar 26, 2024
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