Hi there,
I have installed TransportMaps on Mac (Mojave + Anaconda Python) but when I try to import it in Jupyter I get the error below.
I suspect the problem is with my installation: one of the errors in my installation was that scikit-sparse could not be installed due to "cholmod.h file not found". I solved that error via using "conda install -c conda-forge scikit-sparse" which apparently worked for installation of TM. (this solution was suggested here: https://github.com/scikit-sparse/scikit-sparse/issues/32 )
Now I see that the TM import error (at the bottom of log) relates to sksparse and cholmod.
Do you have any suggestions on how to get past this?
bests,
Hassan
============================================================================
ImportError Traceback (most recent call last)
<ipython-input-4-938b228a6841> in <module>()
----> 1 import TransportMaps as tm
....
/anaconda3/lib/python3.6/site-packages/TransportMaps-2.0b2-py3.6.egg/TransportMaps/Algorithms/SparsityIdentification/__init__.py in <module>()
1 from . import SparsityIdentificationNonGaussian
2 from .SparsityIdentificationNonGaussian import *
----> 3 from . import NodeOrdering
4 from .NodeOrdering import *
5 from . import GeneralizedPrecision
/anaconda3/lib/python3.6/site-packages/TransportMaps-2.0b2-py3.6.egg/TransportMaps/Algorithms/SparsityIdentification/NodeOrdering.py in <module>()
3 import copy
4
----> 5 from sksparse.cholmod import cholesky
6 from scipy.sparse import csc_matrix
7 import itertools
ImportError: dlopen(/anaconda3/lib/python3.6/site-packages/sksparse/cholmod.cpython-36m-darwin.so, 2): Library not loaded: @rpath/libcholmod.3.0.11.dylib
Referenced from: /anaconda3/lib/python3.6/site-packages/sksparse/cholmod.cpython-36m-darwin.so
Reason: image not found
==================================================================