errors in OSX and Ubuntu, when `from megaman.embedding import SpectralEmbedding`
michael135 opened this issue · 1 comments
errors in OSX, when from megaman.embedding import SpectralEmbedding
the errors are following:
ImportError Traceback (most recent call last)
in ()
----> 1 from megaman.embedding import SpectralEmbedding
/Users/myusernname/miniconda2/envs/ir-conda/lib/python2.7/site-packages/megaman/embedding/init.py in ()
5 # LICENSE: Simplified BSD https://github.com/mmp2/megaman/blob/master/LICENSE
6
----> 7 from .locally_linear import LocallyLinearEmbedding
8 from .isomap import Isomap
9 from .ltsa import LTSA
/Users/myusername/miniconda2/envs/ir-conda/lib/python2.7/site-packages/megaman/embedding/locally_linear.py in ()
15 from scipy.linalg import eigh, svd, qr, solve
16 from scipy.sparse import eye, csr_matrix
---> 17 from ..embedding.base import BaseEmbedding
18 from ..utils.validation import check_array, check_random_state
19 from ..utils.eigendecomp import null_space, check_eigen_solver
/Users/myusername/miniconda2/envs/ir-conda/lib/python2.7/site-packages/megaman/embedding/base.py in ()
10 from sklearn.utils.validation import check_array
11
---> 12 from ..geometry.geometry import Geometry
13
14 # from sklearn.utils.validation import FLOAT_DTYPES
/Users/myusername/miniconda2/envs/ir-conda/lib/python2.7/site-packages/megaman/geometry/init.py in ()
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
/Users/myusername/miniconda2/envs/ir-conda/lib/python2.7/site-packages/megaman/geometry/geometry.py in ()
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
/Users/mysername/miniconda2/envs/ir-conda/lib/python2.7/site-packages/megaman/geometry/adjacency.py in ()
5 from scipy import sparse
6
----> 7 from .cyflann.index import Index as CyIndex
8 from .utils import RegisterSubclasses
9
ImportError: dlopen(/Users/myusername/miniconda2/envs/ir-conda/lib/python2.7/site-packages/megaman/geometry/cyflann/index.so, 2): Library not loaded: @rpath/libflann.1.8.dylib
Referenced from: /Users/myusername/miniconda2/envs/ir-conda/lib/python2.7/site-packages/megaman/geometry/cyflann/index.so
Reason: image not found
the solution:
after installation downgrade flann package to version 1.8.5
conda install --channel=conda-forge flann=1.8.5