Coder Social home page Coder Social logo

Comments (13)

mrtommyb avatar mrtommyb commented on August 16, 2024

I can install fine from pip install exoplanet

from exoplanet.

dfm avatar dfm commented on August 16, 2024

How did you install from the github clone?

from exoplanet.

mrtommyb avatar mrtommyb commented on August 16, 2024

good question. I'm not sure. If I was following your instructions then python setup.py install. But I may have done pip install -e .

from exoplanet.

dfm avatar dfm commented on August 16, 2024

OK. Well if you do:

git clone --recursive https://github.com/dfm/exoplanet.git
cd exoplanet
python setup.py install

Everything should work.

from exoplanet.

mrtommyb avatar mrtommyb commented on August 16, 2024

Ok, I did a fresh install and i got the same error.

from exoplanet.

mrtommyb avatar mrtommyb commented on August 16, 2024
NotADirectoryError: [Errno 20] Not a directory: '/Users/tom/anaconda3/lib/python3.6/site-packages/exoplanet-0.1.2.dev0-py3.6.egg/exoplanet/theano_ops/starry/get_cl_rev.cc'

from exoplanet.

dfm avatar dfm commented on August 16, 2024

And you included --recursive and you first did pip uninstall exoplanet?

from exoplanet.

mrtommyb avatar mrtommyb commented on August 16, 2024

yes to both.

from exoplanet.

dfm avatar dfm commented on August 16, 2024

In that case, try:

python setup.py develop

instead!

from exoplanet.

mrtommyb avatar mrtommyb commented on August 16, 2024

here's what I get when i run the unit tests

~/g/exoplanet   master   py.test -v
==================================================== test session starts ====================================================
platform darwin -- Python 3.6.5, pytest-4.0.1, py-1.5.3, pluggy-0.8.0 -- /Users/tom/anaconda3/bin/python
cachedir: .pytest_cache
rootdir: /Users/tom/gitcode/exoplanet, inifile: pytest.ini
plugins: remotedata-0.2.1, openfiles-0.3.0, doctestplus-0.1.3, arraydiff-0.2
collected 31 items / 10 errors

========================================================== ERRORS ===========================================================
_____________________________________ ERROR collecting exoplanet/distributions_test.py ______________________________________
import file mismatch:
imported module 'exoplanet.distributions_test' has this __file__ attribute:
  /Users/tom/gitcode/exoplanet/build/lib/exoplanet/distributions_test.py
which is not the same as the test file we want to collect:
  /Users/tom/gitcode/exoplanet/exoplanet/distributions_test.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
______________________________________ ERROR collecting exoplanet/light_curves_test.py ______________________________________
import file mismatch:
imported module 'exoplanet.light_curves_test' has this __file__ attribute:
  /Users/tom/gitcode/exoplanet/build/lib/exoplanet/light_curves_test.py
which is not the same as the test file we want to collect:
  /Users/tom/gitcode/exoplanet/exoplanet/light_curves_test.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
______________________________________ ERROR collecting exoplanet/gp/celerite_test.py _______________________________________
import file mismatch:
imported module 'exoplanet.gp.celerite_test' has this __file__ attribute:
  /Users/tom/gitcode/exoplanet/build/lib/exoplanet/gp/celerite_test.py
which is not the same as the test file we want to collect:
  /Users/tom/gitcode/exoplanet/exoplanet/gp/celerite_test.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
____________________________________ ERROR collecting exoplanet/orbits/keplerian_test.py ____________________________________
import file mismatch:
imported module 'exoplanet.orbits.keplerian_test' has this __file__ attribute:
  /Users/tom/gitcode/exoplanet/build/lib/exoplanet/orbits/keplerian_test.py
which is not the same as the test file we want to collect:
  /Users/tom/gitcode/exoplanet/exoplanet/orbits/keplerian_test.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
_______________________________ ERROR collecting exoplanet/theano_ops/celerite/factor_test.py _______________________________
import file mismatch:
imported module 'exoplanet.theano_ops.celerite.factor_test' has this __file__ attribute:
  /Users/tom/gitcode/exoplanet/build/lib/exoplanet/theano_ops/celerite/factor_test.py
which is not the same as the test file we want to collect:
  /Users/tom/gitcode/exoplanet/exoplanet/theano_ops/celerite/factor_test.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
_______________________________ ERROR collecting exoplanet/theano_ops/celerite/solve_test.py ________________________________
import file mismatch:
imported module 'exoplanet.theano_ops.celerite.solve_test' has this __file__ attribute:
  /Users/tom/gitcode/exoplanet/build/lib/exoplanet/theano_ops/celerite/solve_test.py
which is not the same as the test file we want to collect:
  /Users/tom/gitcode/exoplanet/exoplanet/theano_ops/celerite/solve_test.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
____________________________ ERROR collecting exoplanet/theano_ops/kepler/contact_points_test.py ____________________________
import file mismatch:
imported module 'exoplanet.theano_ops.kepler.contact_points_test' has this __file__ attribute:
  /Users/tom/gitcode/exoplanet/build/lib/exoplanet/theano_ops/kepler/contact_points_test.py
which is not the same as the test file we want to collect:
  /Users/tom/gitcode/exoplanet/exoplanet/theano_ops/kepler/contact_points_test.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
________________________________ ERROR collecting exoplanet/theano_ops/kepler/solver_test.py ________________________________
import file mismatch:
imported module 'exoplanet.theano_ops.kepler.solver_test' has this __file__ attribute:
  /Users/tom/gitcode/exoplanet/build/lib/exoplanet/theano_ops/kepler/solver_test.py
which is not the same as the test file we want to collect:
  /Users/tom/gitcode/exoplanet/exoplanet/theano_ops/kepler/solver_test.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
________________________________ ERROR collecting exoplanet/theano_ops/starry/get_cl_test.py ________________________________
import file mismatch:
imported module 'exoplanet.theano_ops.starry.get_cl_test' has this __file__ attribute:
  /Users/tom/gitcode/exoplanet/build/lib/exoplanet/theano_ops/starry/get_cl_test.py
which is not the same as the test file we want to collect:
  /Users/tom/gitcode/exoplanet/exoplanet/theano_ops/starry/get_cl_test.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
_______________________________ ERROR collecting exoplanet/theano_ops/starry/limbdark_test.py _______________________________
import file mismatch:
imported module 'exoplanet.theano_ops.starry.limbdark_test' has this __file__ attribute:
  /Users/tom/gitcode/exoplanet/build/lib/exoplanet/theano_ops/starry/limbdark_test.py
which is not the same as the test file we want to collect:
  /Users/tom/gitcode/exoplanet/exoplanet/theano_ops/starry/limbdark_test.py
HINT: remove __pycache__ / .pyc files and/or use a unique basename for your test file modules
===================================================== warnings summary ======================================================
/Users/tom/anaconda3/lib/python3.6/site-packages/h5py/__init__.py:36
  /Users/tom/anaconda3/lib/python3.6/site-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
    from ._conv import register_converters as _register_converters

-- Docs: https://docs.pytest.org/en/latest/warnings.html
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 10 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
=========================================== 1 warnings, 10 error in 4.97 seconds ==========================================

from exoplanet.

mrtommyb avatar mrtommyb commented on August 16, 2024
python setup.py develop

imports and works correctly

from exoplanet.

dfm avatar dfm commented on August 16, 2024

OK. Great! I see what's happening and I'm not sure why, but I'll try to work it out. Thanks for letting me know!

from exoplanet.

dfm avatar dfm commented on August 16, 2024

I figured it out. setup.py install should work for master now.

from exoplanet.

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.