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

Conda package: broken or missing pyflann dependency #94

Open
mosco opened this issue Jan 4, 2019 · 1 comment
Open

Conda package: broken or missing pyflann dependency #94

mosco opened this issue Jan 4, 2019 · 1 comment

Comments

@mosco
Copy link

mosco commented Jan 4, 2019

Pyflann doesn't seem to be installed properly on MacOS after installing megaman.

Steps to recreate:

  1. Create a conda python 3.5 environment.
  2. Run conda install megaman --channel=conda-forge.
  3. Open python and run the command from megaman.geometry import Geometry.

On my computer, this fails with the following error message:

In [4]: from megaman.geometry import Geometry
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-4-3d5e7524d7bf> in <module>()
----> 1 from megaman.geometry import Geometry

/usr/local/anaconda3/envs/megaman/lib/python3.5/site-packages/megaman/geometry/__init__.py in <module>()
      2
      3 from .rmetric import RiemannMetric
----> 4 from .geometry import Geometry
      5 from .adjacency import Adjacency, compute_adjacency_matrix, adjacency_methods
      6 from .affinity import Affinity, compute_affinity_matrix, affinity_methods

/usr/local/anaconda3/envs/megaman/lib/python3.5/site-packages/megaman/geometry/geometry.py in <module>()
     34 from scipy import sparse
     35 from scipy.special import gammaln
---> 36 from .adjacency import compute_adjacency_matrix
     37 from .affinity import compute_affinity_matrix
     38 from .laplacian import compute_laplacian_matrix

/usr/local/anaconda3/envs/megaman/lib/python3.5/site-packages/megaman/geometry/adjacency.py in <module>()
      5 from scipy import sparse
      6
----> 7 from .cyflann.index import Index as CyIndex
      8 from .utils import RegisterSubclasses
      9

ImportError: dlopen(/usr/local/anaconda3/envs/megaman/lib/python3.5/site-packages/megaman/geometry/cyflann/index.cpython-35m-darwin.so, 2): Library not loaded: @rpath/libflann.1.8.dylib
  Referenced from: /usr/local/anaconda3/envs/megaman/lib/python3.5/site-packages/megaman/geometry/cyflann/index.cpython-35m-darwin.so
  Reason: image not found

Installing pyflann using conda install --channel=jakevdp pyflann resolves this.

  • Amit Moscovich
@AntoineDujardin
Copy link

Similar error on Unix, but installing pyflann did not solve the problem.

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

2 participants