Coder Social home page Coder Social logo

Comments (8)

dfm avatar dfm commented on July 17, 2024

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.

from exoplanet.

Vital-Fernandez avatar Vital-Fernandez commented on July 17, 2024

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...

from exoplanet.

Vital-Fernandez avatar Vital-Fernandez commented on July 17, 2024

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 :)

from exoplanet.

dfm avatar dfm commented on July 17, 2024

@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.

from exoplanet.

Vital-Fernandez avatar Vital-Fernandez commented on July 17, 2024

@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!

from exoplanet.

Vital-Fernandez avatar Vital-Fernandez commented on July 17, 2024

@dfm So far all the tests I have run work fine 👍

Thanks a lot for your work.

from exoplanet.

shbhuk avatar shbhuk commented on July 17, 2024

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.

from exoplanet.

dfm avatar dfm commented on July 17, 2024

Ah - good point! I believe that that is true. Let's open a new issue to move those to optional as well.

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.