Giter Club home page Giter Club logo

Comments (10)

dfm avatar dfm commented on July 17, 2024

I assume this has something to do with a version mismatch between your SPS_HOME installation and the Python bindings, but @bd-j might have more specific ideas!

from python-fsps.

bd-j avatar bd-j commented on July 17, 2024

Agreed, you might try cd $SPS_HOME; git pull and it would be good to know which version of python-fsps you have installed.

from python-fsps.

chad-27 avatar chad-27 commented on July 17, 2024

Thank you both for your quick replies!

I did cd $SPS_HOME; git pull and it prints "Already up to date". I checked the version and it is 0.4.2.
Also I tried a clean install with

export SPS_HOME="/fsps"
git clone https://github.com/cconroy20/fsps.git $SPS_HOME
python3 -m pip install fsps

Then I try to change stellar libraries to set BASEL

pip uninstall fsps
FFLAGS="-DMILES=0 -DBASEL=1" python3 -m pip install fsps --no-binary fsps

with no problems so far...
But when I run an fsps script I get this again
" SPS_SETUP ERROR: wavelength grid cannot be opened", while if I switch back to MIST everything run smoothly.

from python-fsps.

chad-27 avatar chad-27 commented on July 17, 2024

UPDATE
I tried to install older versions of fsps with no succes. I even tried to install the final version of fsps to other computers and older versions of Ubuntu with no luck either... and I have the same issue, everything works up until I change from "MILES" to "BASEL". Do you have any suggestions or ideas about what I am doing wrong?

from python-fsps.

bd-j avatar bd-j commented on July 17, 2024

there's a PR on fsps that I think solves this issue (cconroy20/fsps#64), but the python-fsps submodule will have to be updated in python-fsps. Sorry, I'm traveling at the moment so progress has been slow

from python-fsps.

chad-27 avatar chad-27 commented on July 17, 2024

Ok, no worries! I figured you might be busy so I tried to remove any variables that might causing the problem from my side. As far as the [(https://github.com/cconroy20/fsps/pull/64)] does not seem to do anything, still the same error. By the way, because I see that there has been different was for installation, can you suggest me a "secure" installation procedure (I do this https://dfm.io/python-fsps/current/installation/)? is this what I all need for a clean install? :

export SPS_HOME="/fsps"
git clone https://github.com/cconroy20/fsps.git $SPS_HOME
python3 -m pip install fsps

from python-fsps.

dfm avatar dfm commented on July 17, 2024

As far as the cconroy20/fsps#64 does not seem to do anything, still the same error.

These Python bindings are built against a specific commit to the FSPS repository so unless you're installing from this GitHub repo, I don't think that the workflows you've been using would integrate that change. Currently, the SPS_HOME copy of FSPS is only used for data, not for source code.

In order to test that, you should be able to try something like:

python3 -m pip uninstall fsps
FFLAGS="-DMILES=0 -DBASEL=1" python3 -m pip install git+https://github.com/dfm/python-fsps.git

which will reinstall python-fsps from the GitHub version, which does include cconroy20/fsps#64 already.

In terms of clean install: your recommended steps should do the trick (although you may want to uninstall fsps first)!

from python-fsps.

chad-27 avatar chad-27 commented on July 17, 2024

Hi,

Yes, that works! Thank you very much! I can switch to BASEL now with no issue.

from python-fsps.

dfm avatar dfm commented on July 17, 2024

Awesome!

@bd-j — I think we should probably run another release to PyPI in that case. I'm happy to do it if you agree!

from python-fsps.

bd-j avatar bd-j commented on July 17, 2024

There's a couple small changes coming this week then I agree we should push a new version.

from python-fsps.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.