Coder Social home page Coder Social logo

Comments (6)

dfm avatar dfm commented on August 16, 2024

You must not actually be using the updated exoplanet. Make sure that you pip uninstall exoplanet a few times and then update from GitHub. It has only been added within the past day or so...

from exoplanet.

hippke avatar hippke commented on August 16, 2024

Thanks. I re-installed from source and now get this:

  File "/home/michael/miniconda3/envs/hpk_env/lib/python3.7/site-packages/theano/gof/cmodule.py", line 2396, in compile_str
    (status, compile_stderr.replace('\n', '. ')))
Exception: ('The following error happened while compiling the node', GetClOp(TensorConstant{[-1.   0.3  0.2]}), '\n', 'Compilation failed (return status=1): In file included from /home/michael/.theano/compiledir_Linux-4.15--generic-x86_64-with-debian-buster-sid-x86_64-3.7.0-64/tmpk3a4zjpg/mod.cpp:7:0:. /home/michael/miniconda3/envs/hpk_env/lib/python3.7/site-packages/exoplanet-0.1.4.dev0-py3.7.egg/exoplanet/theano_ops/starry/include/theano_helpers.h:5:10: fatal error: Eigen/Core: No such file or directory.  #include <Eigen/Core>.           ^~~~~~~~~~~~. compilation terminated.. ', '[GetClOp(TensorConstant{[-1.   0.3  0.2]})]')

from exoplanet.

dfm avatar dfm commented on August 16, 2024

That suggests to me that you didn't recursively clone because Eigen is included in the starry submodule. Try running the following in your git checkout:

git submodule update --init --recursive

and then

pip uninstall exoplanet
python setup.py develop

or

pip uninstall exoplanet
python setup.py install

from exoplanet.

hippke avatar hippke commented on August 16, 2024

Thanks again. I did as suggested and receive new errors:
ERROR (theano.gof.opt): Optimization failure due to: constant_folding
AttributeError: ('The following error happened while compiling the node', MakeVector{dtype='int64'}(), '\n', "module 'numpy.core.multiarray' has no attribute '_get_ndarray_c_version'")

I googled these and they appear to be related to Theanos. I re-installed Theanos using pip and conda (both installed version 1.0.3). Theanos and numpy appear to work fine. Any idea? Sorry to bother again...

from exoplanet.

hippke avatar hippke commented on August 16, 2024

Ah! This last error is only present if numpy==1.16. It runs fine in numpy==1.15.
Probably worth checking compatibility with different theanos + numpy versions

from exoplanet.

dfm avatar dfm commented on August 16, 2024

This is a Theano problem (or maybe conda, depending on how you interpret it), not an exoplanet problem. Raise an issue there if you want, but that's not something that this repo will fix!

Note that Theano 1.0.4 is compatible with numpy 1.16 (as tested here: https://travis-ci.org/dfm/exoplanet).

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.