Comments (13)
I can install fine from pip install exoplanet
from exoplanet.
How did you install from the github clone?
from exoplanet.
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.
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.
Ok, I did a fresh install and i got the same error.
from exoplanet.
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.
And you included --recursive
and you first did pip uninstall exoplanet
?
from exoplanet.
yes to both.
from exoplanet.
In that case, try:
python setup.py develop
instead!
from exoplanet.
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.
python setup.py develop
imports and works correctly
from exoplanet.
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.
I figured it out. setup.py install
should work for master now.
from exoplanet.
Related Issues (20)
- Python 3.10 support HOT 2
- Can Exoplanet/Pymc3 interact with TTVFaster? HOT 3
- xarray serialization error when using observed custom distribution HOT 11
- Issue installing on M1 Mac HOT 4
- celerite2.backprop.LinAlgError: failed to factorize or solve matrix HOT 2
- AttributeError: module 'exoplanet.distributions' has no attribute 'Angle' HOT 1
- TTV fit sampling behaves strangely for long light curves HOT 2
- AttributeError: module 'exoplanet' has no attribute 'get_dense_nuts_step' HOT 1
- Using a number of cores larger than the number of chains HOT 3
- `ImportError` (I think due to numpy dependency) HOT 3
- Tutorial Error for Trace Function
- `ImportError` On clean installation in virtual enviroment HOT 2
- Optimized MAP solution is wrong after clipping residuals
- Change a to a_over_Rsun in KeplerianOrbit HOT 2
- Support numpy >= 1.22 HOT 2
- Looking for library directory when running TESS transit fitting example
- Conflicts with current version of arviz/xarray HOT 4
- Can't seem to verify installation properly on Windows 11 HOT 4
- Installation Error: Failed to build pytensor
- Installation Issue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from exoplanet.