[mlpack] issue with mlpack Python bindings on Mac OsX

Frodo Jedi frodojedi.mailinglist at gmail.com
Wed Dec 12 17:31:34 EST 2018


Dear list members,
I am unable to properly install the python bindings, despite I correctly
built mlpack from source without any error and warning. I am on a Mac OsX
10.12.6 and all the dependencies have been installed with the latest
available version. I am also using the latest version of Cmake.

Looking at this thread, where the same issue was reported,
https://github.com/mlpack/mlpack/issues/1416 , I get that mlpack should be
installed in
/usr/local/lib/pythonX.Y/site-packages/ However it is not present.

As a result when I try to import the module in python 2 or 3 I get
>>> import mlpack
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named mlpack


I even tried to manually launch from the build directory the commands

export LD_LIBRARY_PATH=lib/
export PYTHONPATH=src/mlpack/bindings/python/

but with no improvement.


In /lib I have the files libmlpack.3.0.dylib* libmlpack.3.dylib@
 libmlpack.dylib@
should I manually move them? Where exactly?


Any suggestions? What I am missing?

Also, I signal that I get the following errors when running the test:

bin/mlpack_test
Running 1445 test cases...
/Users/frodo/Documents/Machine_learning/mlpack-3.0.4/src/mlpack/tests/logistic_regression_test.cpp:784:
fatal error: in "LogisticRegressionTest/LogisticRegressionSparseLBFGSTest":
difference{1.04095e-06} between lr.Parameters()[i]{0.057823485257429592}
and lrSparse.Parameters()[i]{0.057823425065859017} exceeds 0.0001%
/Users/frodo/Documents/Machine_learning/mlpack-3.0.4/src/mlpack/tests/lrsdp_test.cpp:270:
fatal error: in "LRSDPTest/GaussianMatrixSensingSDP":
difference{0.00055936} between measurement{0.00023854628409627696} and
b(i){0.00023841292538047745} exceeds 0.05%

error: eig_sym(): decomposition failed
unknown location:0: fatal error: in
"SdpPrimalDualTest/SmallLovaszThetaSdp": std::runtime_error: eig_sym():
decomposition failed
/Users/frodo/Documents/Machine_learning/mlpack-3.0.4/src/mlpack/tests/sdp_primal_dual_test.cpp:278:
last checkpoint: "SmallLovaszThetaSdp" test entry
** On entry to DLASCL, parameter number  4 had an illegal value
** On entry to DLASCL, parameter number  5 had an illegal value
/Users/frodo/Documents/Machine_learning/mlpack-3.0.4/src/mlpack/tests/main_tests/preprocess_imputer_test.cpp:76:
fatal error: in "PreprocessImputerMainTest/PreprocessImputerDimensionTest":
critical check outputData.n_cols == inputSize has failed [0 != 67]
/Users/frodo/Documents/Machine_learning/mlpack-3.0.4/src/mlpack/tests/main_tests/preprocess_imputer_test.cpp:143:
fatal error: in
"PreprocessImputerMainTest/PreprocessImputerListwiseDimensionTest":
critical check outputData.n_cols + countNaN == inputSize has failed [26 !=
67]

*** 5 failures are detected in the test module "mlpackTest"



Finally, I signl that pip install mlpack/mlpack3 does not work.


Cheers

FJ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://knife.lugatgt.org/pipermail/mlpack/attachments/20181212/0c7f71c1/attachment.html>


More information about the mlpack mailing list