Giter Club home page Giter Club logo

Comments (7)

dfm avatar dfm commented on July 17, 2024 1

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 .

from python-fsps.

dfm avatar dfm commented on July 17, 2024 1

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.

from python-fsps.

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

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.

from python-fsps.

0xygens avatar 0xygens commented on July 17, 2024

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?

from python-fsps.

0xygens avatar 0xygens commented on July 17, 2024

Thank you! Great and professional reply! My problem is solved and will close this issue.

from python-fsps.

0xygens avatar 0xygens commented on July 17, 2024

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.

from python-fsps.

0xygens avatar 0xygens commented on July 17, 2024

Thank you for your answer, which works well!

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.