-
Notifications
You must be signed in to change notification settings - Fork 12
Description
Hi!
Thanks for this great library. Very nicely collection of imputation techniques. The current tutorial does not seem to work though on latest macos:
File "/Users/costas/workspace/imputegap/.venv/lib/python3.12/site-packages/imputegap/recovery/imputation.py", line 755, in impute
self.recov_data = cdrec(incomp_data=self.incomp_data, truncation_rank=rank, iterations=iterations, epsilon=epsilon, logs=self.logs, verbose=self.verbose)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/costas/workspace/imputegap/.venv/lib/python3.12/site-packages/imputegap/algorithms/cdrec.py", line 100, in cdrec
recov_data = native_cdrec(incomp_data, truncation_rank, epsilon, iterations, False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/costas/workspace/imputegap/.venv/lib/python3.12/site-packages/imputegap/algorithms/cdrec.py", line 34, in native_cdrec
shared_lib = utils.load_share_lib("lib_cdrec", verbose=__verbose)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/costas/workspace/imputegap/.venv/lib/python3.12/site-packages/imputegap/tools/utils.py", line 1699, in load_share_lib
return ctypes.CDLL(lib_path)
^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Cellar/python@3.12/3.12.11/Frameworks/Python.framework/Versions/3.12/lib/python3.12/ctypes/init.py", line 379, in init
self._handle = _dlopen(self._name, mode)
^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: dlopen(/Users/costas/workspace/imputegap/.venv/lib/python3.12/site-packages/imputegap/algorithms/lib/lib_cdrec.dylib, 0x0006): Library not loaded: /opt/homebrew/opt/armadillo/lib/libarmadillo.14.dylib
Referenced from: /Users/costas/workspace/imputegap/.venv/lib/python3.12/site-packages/imputegap/algorithms/lib/lib_cdrec.dylib
Reason: tried: '/opt/homebrew/opt/armadillo/lib/libarmadillo.14.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/armadillo/lib/libarmadillo.14.dylib' (no such file), '/opt/homebrew/opt/armadillo/lib/libarmadillo.14.dylib' (no such file), '/opt/homebrew/Cellar/armadillo/15.0.2/lib/libarmadillo.14.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/armadillo/15.0.2/lib/libarmadillo.14.dylib' (no such file), '/opt/homebrew/Cellar/armadillo/15.0.2/lib/libarmadillo.14.dylib' (no such file)
It seems that current macos algorithms are fixed towards previous version of libarmadillo which is not present does not allow for usage of CDRec.