Closed Vital-Fernandez closed 4 years ago
This is actually falling while trying to install rebound before it even gets to exoplanet. So you could look there to see if you can find tips. Let's leave this issue open though because rebound is not a required dependency for all of exoplanet so we should make it possible to skip installation. It might work for you to try pip install --no-deps exoplanet
for now but that might lead to more problems down the line.
Thank you Dan very much for your reply (and for this library).
I tried your suggestion. The command gave me:
(exoplanet_env) C:\Users\Vital>pip install --no-deps exoplanet
Requirement already satisfied: exoplanet in d:\programs\anaconda3\envs\exoplanet_env\lib\site-packages\exoplanet-0.2.4.dev6+g2171caa-py3.7.egg (0.2.4.dev6+g2171caa)
However, when I tried to import exoplanet:
In [1]: import exoplanet
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-1-4ba751a2f474> in <module>
----> 1 import exoplanet
D:\Programs\Anaconda3\envs\exoplanet_env\lib\site-packages\exoplanet-0.2.4.dev6+g2171caa-py3.7.egg\exoplanet\__init__.py in <module>
10 ]
11
---> 12 from . import distributions, gp, interp, orbits
13 from .citations import CITATIONS
14 from .estimators import * # NOQA
D:\Programs\Anaconda3\envs\exoplanet_env\lib\site-packages\exoplanet-0.2.4.dev6+g2171caa-py3.7.egg\exoplanet\orbits\__init__.py in <module>
12 from .dur_to_ecc import duration_to_eccentricity
13 from .keplerian import KeplerianOrbit, get_true_anomaly
---> 14 from .rebound import ReboundOrbit
15 from .simple import SimpleTransitOrbit
16 from .ttv import TTVOrbit
D:\Programs\Anaconda3\envs\exoplanet_env\lib\site-packages\exoplanet-0.2.4.dev6+g2171caa-py3.7.egg\exoplanet\orbits\rebound.py in <module>
4
5 import theano.tensor as tt
----> 6 from rebound_pymc3.integrate import IntegrateOp as ReboundOp
7
8 from .constants import au_per_R_sun, day_per_yr_over_2pi
D:\Programs\Anaconda3\envs\exoplanet_env\lib\site-packages\rebound_pymc3-0.0.3-py3.7.egg\rebound_pymc3\integrate.py in <module>
13 import theano.tensor as tt
14
---> 15 from .build_utils import (
16 get_compile_args,
17 get_cache_version,
D:\Programs\Anaconda3\envs\exoplanet_env\lib\site-packages\rebound_pymc3-0.0.3-py3.7.egg\rebound_pymc3\build_utils.py in <module>
14 import pkg_resources
15
---> 16 import rebound
17
18 from .rebound_pymc3_version import __version__
ModuleNotFoundError: No module named 'rebound'
However, if it is a rebound library issue I shall investigate its requirements...
It seems rebound is actually not compatible with windows. From the documentation:
Note: If you want to run REBOUND on Windows, the best way is likely to install the Windows Subsystem for Linux. After installing the gcc compiler, e.g., sudo apt-get install gcc, you should be able to install REBOUND and any python libraries by following the Linux/Mac installation instructions in this documentation. Unfortunately we do not have Windows installations ourselves, so we cannot actively support installation problems. Thanks to Keto /Zhang for finding this workaround.
... so I better change OS :)
@Vital-Fernandez: I just published a new release that moves rebound to an optional dependency so:
python -m pip uninstall rebound_pymc3
python -m pip install -U exoplanet
should now do the trick for you. It should also be available for windows on conda-forge soon.
@Vital-Fernandez: I just published a new release that moves rebound to an optional dependency so:
python -m pip uninstall rebound_pymc3 python -m pip install -U exoplanet
should now do the trick for you. It should also be available for windows on conda-forge soon.
Thank you very much! I am going to test it right now!
@dfm So far all the tests I have run work fine 👍
Thanks a lot for your work.
Hi, Just checking regarding this. Despite rebound being pushed to the optional dependencies.. it will still be required to run the unit tests, right?
Just trying to diagnose the errors there and hence am wondering if this is the main cause.
Ah - good point! I believe that that is true. Let's open a new issue to move those to optional as well.
I run the following commands to install exoplanet in a new anaconda environment:
And then I get:
I should just install linux in this machine but if anyone has encountered this issue I would love to hear your advice (merry xmas :)