Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scipy package in dependencies is missing libgfortran #17

Closed
chaubold opened this issue Jun 17, 2016 · 4 comments
Closed

Scipy package in dependencies is missing libgfortran #17

chaubold opened this issue Jun 17, 2016 · 4 comments

Comments

@chaubold
Copy link
Member

chaubold commented Jun 17, 2016

FYI: when one sets up conda afresh on a linux machine (noticed it on two Ubuntu 14.04 boxes, one of them my CircleCI bot...) and installs ilastik-everything-but-tracking, the provided scipy version is 0.16.0. But that one messed something up between gfortran and mkl (as @jakirkham found out at some point).

Traceback (most recent call last):
  File "/home/ubuntu/hytra/scripts/hypotheses_graph_to_json.py", line 13, in <module>
    import hytra.core.hypothesesgraph as hypothesesgraph
  File "/home/ubuntu/hytra/hytra/core/hypothesesgraph.py", line 2, in <module>
    from sklearn.neighbors import KDTree
  File "/home/ubuntu/miniconda/envs/test-env/lib/python2.7/site-packages/sklearn/neighbors/__init__.py", line 6, in <module>
    from .ball_tree import BallTree
  File "ball_tree.pyx", line 1, in init sklearn.neighbors.ball_tree (sklearn/neighbors/ball_tree.c:35730)
  File "/home/ubuntu/miniconda/envs/test-env/lib/python2.7/site-packages/sklearn/utils/__init__.py", line 16, in <module>
    from .class_weight import compute_class_weight, compute_sample_weight
  File "/home/ubuntu/miniconda/envs/test-env/lib/python2.7/site-packages/sklearn/utils/class_weight.py", line 7, in <module>
    from ..utils.fixes import in1d
  File "/home/ubuntu/miniconda/envs/test-env/lib/python2.7/site-packages/sklearn/utils/fixes.py", line 318, in <module>
    from scipy.sparse.linalg import lsqr as sparse_lsqr
  File "/home/ubuntu/miniconda/envs/test-env/lib/python2.7/site-packages/scipy/sparse/linalg/__init__.py", line 109, in <module>
    from .isolve import *
  File "/home/ubuntu/miniconda/envs/test-env/lib/python2.7/site-packages/scipy/sparse/linalg/isolve/__init__.py", line 6, in <module>
    from .iterative import *
  File "/home/ubuntu/miniconda/envs/test-env/lib/python2.7/site-packages/scipy/sparse/linalg/isolve/iterative.py", line 7, in <module>
    from . import _iterative
ImportError: libgfortran.so.1: cannot open shared object file: No such file or directory

I had to manually switch to scipy=0.17.0=np19py27_2 (see e.g. ilastik/hytra@939e5ae).

@stuarteberg
Copy link
Member

The title here says 'sklearn', but the commit you referenced says 'scipy'. Is there a typo in the title, or am I confused?

@chaubold chaubold changed the title Sklearn package in dependencies is missing libgfortran Scipy package in dependencies is missing libgfortran Jun 18, 2016
@chaubold
Copy link
Member Author

chaubold commented Jun 18, 2016

Oops, sorry, you're right, it was supposed to be scipy everywhere. Fixed in title and message above.

@akreshuk
Copy link
Member

akreshuk commented Jul 5, 2016

Here is the discussion at anaconda-issues: ContinuumIO/anaconda-issues#686. Force-installing libgrfortran==1 worked for me.

@k-dominik
Copy link
Contributor

not an issue anymore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants