Code Monkey home page Code Monkey logo

Comments (4)

sbailey avatar sbailey commented on August 11, 2024

Actually, it is worse than I originally reported: python setup.py install from a git clone also doesn't work (which at least makes sense compared to the other failures). The previous test that appeared to be working was because I was sitting in the speclite/ directory and it was finding the filters it needed starting from that local path.

@dkirkby @weaverba137 please help fix the speclite installation procedure. This is needed for testing the next DESI software release. Thanks.

from speclite.

weaverba137 avatar weaverba137 commented on August 11, 2024

When you say you were in the speclite directory, was that the top-level git checkout directory or the Python package directory?

from speclite.

sbailey avatar sbailey commented on August 11, 2024

I was in the in the top level git checkout (i.e. the "..." in the above represents the installation output messages, not any additional commands I issued after ccing into the top level git checkout).

FWIW, it works to use speclite without installing it, by adding the top level git clone directory to $PYTHONPATH. It is only the installation procedure that seems to be missing the necessary data files.

Also: I was testing this with python 3.8 in a conda environment on my laptop, starting with:

conda create --name desitest --yes python=3.8 \
    numpy scipy astropy pyyaml requests ipython h5py scikit-learn \
    matplotlib numba sqlalchemy line_profiler pytest pytz
    
conda activate desitest
conda install -c conda-forge fitsio
pip install healpy

[then various attempts to install speclite]

Thanks for checking on this.

from speclite.

weaverba137 avatar weaverba137 commented on August 11, 2024

A few data points:

  • I tried doing python setup.py install --prefix ... (to keep the install separate from anything else) from a git clone where I explicitly checked out tag v0.9.
  • The speclite/data (in the Python package) directory was not installed at all, so that's the big problem here.
  • The install was placed in python3.6/site-packages/packagename-0.9.dev528-py3.6.egg, so not only is the install process not picking up the name of the package, it is also getting the version wrong (version should be 0.9, since this is tag v0.9).
  • Although speclite/data is listed in the setup.py file (although not MANIFEST.in), it is possible that the mechanism that would normally install this package has "decayed away" in some sense.

from speclite.

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.