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

Requesting wheel for libact. Too many errors in trying to install on windows, as well as on linux #118

Open
pavanAlluri opened this issue Jul 19, 2017 · 9 comments
Labels

Comments

@pavanAlluri
Copy link

Hi,

I have been trying to install libact for a while now and was unsuccessful. The errors ranged from requiring MS Visual C++ 14.0, gcc not found, unable to find vcvarsall.bat.

Looked all over internet to try to solve this issues, tried many things to resolve but still unsuccessful. If you could be so kind as to release a wheel for libact, it would be most helpful & very much appreciated.

Thank you,
Pavan

@yangarbiter
Copy link
Collaborator

Currently we haven't officially support libact on windows platform yet.
I personally thinks that the easiest way to solve this problem is to use a linux virtual machine.

@SKGG how do you think about maintaining a windows build of the PYPI?

@sian-chen
Copy link
Collaborator

@mlliarm
Copy link

mlliarm commented Jul 20, 2017 via email

@pavanAlluri
Copy link
Author

@yangarbiter @SKGG @mlliarm thank you all for the responses. Much appreciated. I too would love to use Linux but current architecture constraints at work needs me to stay on windows (8).

Would be a great help to many, if this can be rolled out to windows users as well.

Nonetheless I did try to install libact on a Linux VM and this is the error am receiving:

libact/query_strategies/src/variance_reduction/variance_reduction.c:5:21: fatal error: lapacke.h: No such file or directory
#include <lapacke.h>

@sian-chen
Copy link
Collaborator

@pavanAlluri because you didn't install liblapacke-dev.
Please follow the README to install basic dependencies.

All the best,

@pavanAlluri
Copy link
Author

If there has been an option for me i ceratinly would prefer linux systems as well. Unfortunately windows is something i need to build on!!!
I have found a way to install lapack & openblas on windows using conda install. Then tried again to install libact on windows and this error followed:
Command "C:\Users\pavan\AppData\Local\Continuum\anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\pavan\\AppData\\Local\\Temp\\pip-build-20b6_5w4\\libact\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\pavan\AppData\Local\Temp\pip-ivii6fpl-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\pavan\AppData\Local\Temp\pip-build-20b6_5w4\libact\

Can someone please help decode this error? @SKGG @yangarbiter

@pavanAlluri
Copy link
Author

Here's the full runtime error:
`Collecting libact
Using cached libact-0.1.3.tar.gz
Requirement already satisfied: numpy in c:\users\pavan\appdata\local\continuum\anaconda3\lib\site-packages (from libact)
Requirement already satisfied: scipy in c:\users\pavan\appdata\local\continuum\anaconda3\lib\site-packages (from libact)
Requirement already satisfied: scikit-learn in c:\users\pavan\appdata\local\continuum\anaconda3\lib\site-packages (from libact)
Requirement already satisfied: Cython in c:\users\pavan\appdata\local\continuum\anaconda3\lib\site-packages (from libact)
Requirement already satisfied: joblib in c:\users\pavan\appdata\local\continuum\anaconda3\lib\site-packages (from libact)
Requirement already satisfied: six in c:\users\pavan\appdata\local\continuum\anaconda3\lib\site-packages (from libact)
Building wheels for collected packages: libact
Running setup.py bdist_wheel for libact ... error
Complete output from command C:\Users\pavan\AppData\Local\Continuum\anaconda3\python.exe -u -c "import setuptools, tokenize;file='C:\Users\pavan\AppData\Local\Temp\pip-build-20b6_5w4\libact\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d C:\Users\pavan\AppData\Local\Temp\tmptrvk1_nhpip-wheel- --python-tag cp36:
Platform Detection: Linux. Link to liblapacke...
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.6
creating build\lib.win-amd64-3.6\libact
copying libact_init_.py -> build\lib.win-amd64-3.6\libact
creating build\lib.win-amd64-3.6\libact\base
copying libact\base\dataset.py -> build\lib.win-amd64-3.6\libact\base
copying libact\base\interfaces.py -> build\lib.win-amd64-3.6\libact\base
copying libact\base_init_.py -> build\lib.win-amd64-3.6\libact\base
creating build\lib.win-amd64-3.6\libact\models
copying libact\models\logistic_regression.py -> build\lib.win-amd64-3.6\libact\models
copying libact\models\perceptron.py -> build\lib.win-amd64-3.6\libact\models
copying libact\models\sklearn_adapter.py -> build\lib.win-amd64-3.6\libact\models
copying libact\models\svm.py -> build\lib.win-amd64-3.6\libact\models
copying libact\models_init_.py -> build\lib.win-amd64-3.6\libact\models
creating build\lib.win-amd64-3.6\libact\models\multilabel
copying libact\models\multilabel\binary_relevance.py -> build\lib.win-amd64-3.6\libact\models\multilabel
copying libact\models\multilabel\dummy_clf.py -> build\lib.win-amd64-3.6\libact\models\multilabel
copying libact\models\multilabel_init_.py -> build\lib.win-amd64-3.6\libact\models\multilabel
creating build\lib.win-amd64-3.6\libact\labelers
copying libact\labelers\ideal_labeler.py -> build\lib.win-amd64-3.6\libact\labelers
copying libact\labelers\interactive_labeler.py -> build\lib.win-amd64-3.6\libact\labelers
copying libact\labelers_init_.py -> build\lib.win-amd64-3.6\libact\labelers
creating build\lib.win-amd64-3.6\libact\query_strategies
copying libact\query_strategies\active_learning_by_learning.py -> build\lib.win-amd64-3.6\libact\query_strategies
copying libact\query_strategies\density_weighted_uncertainty_sampling.py -> build\lib.win-amd64-3.6\libact\query_strategies
copying libact\query_strategies\hintsvm.py -> build\lib.win-amd64-3.6\libact\query_strategies
copying libact\query_strategies\query_by_committee.py -> build\lib.win-amd64-3.6\libact\query_strategies
copying libact\query_strategies\quire.py -> build\lib.win-amd64-3.6\libact\query_strategies
copying libact\query_strategies\random_sampling.py -> build\lib.win-amd64-3.6\libact\query_strategies
copying libact\query_strategies\uncertainty_sampling.py -> build\lib.win-amd64-3.6\libact\query_strategies
copying libact\query_strategies\variance_reduction.py -> build\lib.win-amd64-3.6\libact\query_strategies
copying libact\query_strategies_init_.py -> build\lib.win-amd64-3.6\libact\query_strategies
creating build\lib.win-amd64-3.6\libact\query_strategies\multilabel
copying libact\query_strategies\multilabel\adaptive_active_learning.py -> build\lib.win-amd64-3.6\libact\query_strategies\multilabel
copying libact\query_strategies\multilabel\binary_minimization.py -> build\lib.win-amd64-3.6\libact\query_strategies\multilabel
copying libact\query_strategies\multilabel\maximum_margin_reduction.py -> build\lib.win-amd64-3.6\libact\query_strategies\multilabel
copying libact\query_strategies\multilabel\multilabel_with_auxiliary_learner.py -> build\lib.win-amd64-3.6\libact\query_strategies\multilabel
copying libact\query_strategies\multilabel_init_.py -> build\lib.win-amd64-3.6\libact\query_strategies\multilabel
creating build\lib.win-amd64-3.6\libact\query_strategies\multiclass
copying libact\query_strategies\multiclass\active_learning_with_cost_embedding.py -> build\lib.win-amd64-3.6\libact\query_strategies\multiclass
copying libact\query_strategies\multiclass\expected_error_reduction.py -> build\lib.win-amd64-3.6\libact\query_strategies\multiclass
copying libact\query_strategies\multiclass\hierarchical_sampling.py -> build\lib.win-amd64-3.6\libact\query_strategies\multiclass
copying libact\query_strategies\multiclass\mdsp.py -> build\lib.win-amd64-3.6\libact\query_strategies\multiclass
copying libact\query_strategies\multiclass_init_.py -> build\lib.win-amd64-3.6\libact\query_strategies\multiclass
creating build\lib.win-amd64-3.6\libact\utils
copying libact\utils_init_.py -> build\lib.win-amd64-3.6\libact\utils
running build_ext
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
building 'libact.query_strategies._variance_reduction' extension
creating build\temp.win-amd64-3.6
creating build\temp.win-amd64-3.6\Release
creating build\temp.win-amd64-3.6\Release\libact
creating build\temp.win-amd64-3.6\Release\libact\query_strategies
creating build\temp.win-amd64-3.6\Release\libact\query_strategies\src
creating build\temp.win-amd64-3.6\Release\libact\query_strategies\src\variance_reduction
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\pavan\AppData\Local\Continuum\anaconda3\lib\site-packages\numpy\core\include -I/usr/include/lapacke -IC:\Users\pavan\AppData\Local\Continuum\anaconda3\include -IC:\Users\pavan\AppData\Local\Continuum\anaconda3\include -I"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" -I"C:\Program Files (x86)\Windows Kits\8.1\include\shared" -I"C:\Program Files (x86)\Windows Kits\8.1\include\um" -I"C:\Program Files (x86)\Windows Kits\8.1\include\winrt" /Tclibact/query_strategies/src/variance_reduction/variance_reduction.c /Fobuild\temp.win-amd64-3.6\Release\libact/query_strategies/src/variance_reduction/variance_reduction.obj -std=c11
cl : Command line warning D9002 : ignoring unknown option '-std=c11'
variance_reduction.c
libact/query_strategies/src/variance_reduction/variance_reduction.c(5): fatal error C1083: Cannot open include file: 'lapacke.h': No such file or directory
error: Command "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\pavan\AppData\Local\Continuum\anaconda3\lib\site-packages\numpy\core\include -I/usr/include/lapacke -IC:\Users\pavan\AppData\Local\Continuum\anaconda3\include -IC:\Users\pavan\AppData\Local\Continuum\anaconda3\include -I"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" -I"C:\Program Files (x86)\Windows Kits\8.1\include\shared" -I"C:\Program Files (x86)\Windows Kits\8.1\include\um" -I"C:\Program Files (x86)\Windows Kits\8.1\include\winrt" /Tclibact/query_strategies/src/variance_reduction/variance_reduction.c /Fobuild\temp.win-amd64-3.6\Release\libact/query_strategies/src/variance_reduction/variance_reduction.obj -std=c11" failed with exit status 2


Failed building wheel for libact
Running setup.py clean for libact
Failed to build libact
Installing collected packages: libact
Running setup.py install for libact ... error
Complete output from command C:\Users\pavan\AppData\Local\Continuum\anaconda3\python.exe -u -c "import setuptools, tokenize;file='C:\Users\pavan\AppData\Local\Temp\pip-build-20b6_5w4\libact\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record C:\Users\pavan\AppData\Local\Temp\pip-ivii6fpl-record\install-record.txt --single-version-externally-managed --compile:
Platform Detection: Linux. Link to liblapacke...
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.6
creating build\lib.win-amd64-3.6\libact
copying libact_init_.py -> build\lib.win-amd64-3.6\libact
creating build\lib.win-amd64-3.6\libact\base
copying libact\base\dataset.py -> build\lib.win-amd64-3.6\libact\base
copying libact\base\interfaces.py -> build\lib.win-amd64-3.6\libact\base
copying libact\base_init_.py -> build\lib.win-amd64-3.6\libact\base
creating build\lib.win-amd64-3.6\libact\models
copying libact\models\logistic_regression.py -> build\lib.win-amd64-3.6\libact\models
copying libact\models\perceptron.py -> build\lib.win-amd64-3.6\libact\models
copying libact\models\sklearn_adapter.py -> build\lib.win-amd64-3.6\libact\models
copying libact\models\svm.py -> build\lib.win-amd64-3.6\libact\models
copying libact\models_init_.py -> build\lib.win-amd64-3.6\libact\models
creating build\lib.win-amd64-3.6\libact\models\multilabel
copying libact\models\multilabel\binary_relevance.py -> build\lib.win-amd64-3.6\libact\models\multilabel
copying libact\models\multilabel\dummy_clf.py -> build\lib.win-amd64-3.6\libact\models\multilabel
copying libact\models\multilabel_init_.py -> build\lib.win-amd64-3.6\libact\models\multilabel
creating build\lib.win-amd64-3.6\libact\labelers
copying libact\labelers\ideal_labeler.py -> build\lib.win-amd64-3.6\libact\labelers
copying libact\labelers\interactive_labeler.py -> build\lib.win-amd64-3.6\libact\labelers
copying libact\labelers_init_.py -> build\lib.win-amd64-3.6\libact\labelers
creating build\lib.win-amd64-3.6\libact\query_strategies
copying libact\query_strategies\active_learning_by_learning.py -> build\lib.win-amd64-3.6\libact\query_strategies
copying libact\query_strategies\density_weighted_uncertainty_sampling.py -> build\lib.win-amd64-3.6\libact\query_strategies
copying libact\query_strategies\hintsvm.py -> build\lib.win-amd64-3.6\libact\query_strategies
copying libact\query_strategies\query_by_committee.py -> build\lib.win-amd64-3.6\libact\query_strategies
copying libact\query_strategies\quire.py -> build\lib.win-amd64-3.6\libact\query_strategies
copying libact\query_strategies\random_sampling.py -> build\lib.win-amd64-3.6\libact\query_strategies
copying libact\query_strategies\uncertainty_sampling.py -> build\lib.win-amd64-3.6\libact\query_strategies
copying libact\query_strategies\variance_reduction.py -> build\lib.win-amd64-3.6\libact\query_strategies
copying libact\query_strategies_init_.py -> build\lib.win-amd64-3.6\libact\query_strategies
creating build\lib.win-amd64-3.6\libact\query_strategies\multilabel
copying libact\query_strategies\multilabel\adaptive_active_learning.py -> build\lib.win-amd64-3.6\libact\query_strategies\multilabel
copying libact\query_strategies\multilabel\binary_minimization.py -> build\lib.win-amd64-3.6\libact\query_strategies\multilabel
copying libact\query_strategies\multilabel\maximum_margin_reduction.py -> build\lib.win-amd64-3.6\libact\query_strategies\multilabel
copying libact\query_strategies\multilabel\multilabel_with_auxiliary_learner.py -> build\lib.win-amd64-3.6\libact\query_strategies\multilabel
copying libact\query_strategies\multilabel_init_.py -> build\lib.win-amd64-3.6\libact\query_strategies\multilabel
creating build\lib.win-amd64-3.6\libact\query_strategies\multiclass
copying libact\query_strategies\multiclass\active_learning_with_cost_embedding.py -> build\lib.win-amd64-3.6\libact\query_strategies\multiclass
copying libact\query_strategies\multiclass\expected_error_reduction.py -> build\lib.win-amd64-3.6\libact\query_strategies\multiclass
copying libact\query_strategies\multiclass\hierarchical_sampling.py -> build\lib.win-amd64-3.6\libact\query_strategies\multiclass
copying libact\query_strategies\multiclass\mdsp.py -> build\lib.win-amd64-3.6\libact\query_strategies\multiclass
copying libact\query_strategies\multiclass_init_.py -> build\lib.win-amd64-3.6\libact\query_strategies\multiclass
creating build\lib.win-amd64-3.6\libact\utils
copying libact\utils_init_.py -> build\lib.win-amd64-3.6\libact\utils
running build_ext
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
building 'libact.query_strategies._variance_reduction' extension
creating build\temp.win-amd64-3.6
creating build\temp.win-amd64-3.6\Release
creating build\temp.win-amd64-3.6\Release\libact
creating build\temp.win-amd64-3.6\Release\libact\query_strategies
creating build\temp.win-amd64-3.6\Release\libact\query_strategies\src
creating build\temp.win-amd64-3.6\Release\libact\query_strategies\src\variance_reduction
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\pavan\AppData\Local\Continuum\anaconda3\lib\site-packages\numpy\core\include -I/usr/include/lapacke -IC:\Users\pavan\AppData\Local\Continuum\anaconda3\include -IC:\Users\pavan\AppData\Local\Continuum\anaconda3\include -I"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" -I"C:\Program Files (x86)\Windows Kits\8.1\include\shared" -I"C:\Program Files (x86)\Windows Kits\8.1\include\um" -I"C:\Program Files (x86)\Windows Kits\8.1\include\winrt" /Tclibact/query_strategies/src/variance_reduction/variance_reduction.c /Fobuild\temp.win-amd64-3.6\Release\libact/query_strategies/src/variance_reduction/variance_reduction.obj -std=c11
cl : Command line warning D9002 : ignoring unknown option '-std=c11'
variance_reduction.c
libact/query_strategies/src/variance_reduction/variance_reduction.c(5): fatal error C1083: Cannot open include file: 'lapacke.h': No such file or directory
error: Command "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\pavan\AppData\Local\Continuum\anaconda3\lib\site-packages\numpy\core\include -I/usr/include/lapacke -IC:\Users\pavan\AppData\Local\Continuum\anaconda3\include -IC:\Users\pavan\AppData\Local\Continuum\anaconda3\include -I"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" -I"C:\Program Files (x86)\Windows Kits\8.1\include\shared" -I"C:\Program Files (x86)\Windows Kits\8.1\include\um" -I"C:\Program Files (x86)\Windows Kits\8.1\include\winrt" /Tclibact/query_strategies/src/variance_reduction/variance_reduction.c /Fobuild\temp.win-amd64-3.6\Release\libact/query_strategies/src/variance_reduction/variance_reduction.obj -std=c11" failed with exit status 2

----------------------------------------

Command "C:\Users\pavan\AppData\Local\Continuum\anaconda3\python.exe -u -c "import setuptools, tokenize;file='C:\Users\pavan\AppData\Local\Temp\pip-build-20b6_5w4\libact\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record C:\Users\pavan\AppData\Local\Temp\pip-ivii6fpl-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\pavan\AppData\Local\Temp\pip-build-20b6_5w4\libact`

@yangarbiter
Copy link
Collaborator

fatal error C1083: Cannot open include file: 'lapacke.h': No such file or directory
error:

you may refer to this issue #135

It seems you didn't install lapacke (there is an 'e' at the end)
Maybe these links would help

http://www.netlib.org/lapack/
http://icl.cs.utk.edu/lapack-for-windows/lapack/#lapacke

@pavanAlluri
Copy link
Author

pavanAlluri commented Jan 18, 2018

@yangarbiter Thank you, I am getting the requirements installed, will try if this works.

http://answers.opencv.org/question/121651/fata-error-lapacke_h_path-notfound-when-building-opencv-32/
here the last answer refers to redirecting the path from lapacke.h to /opt/OpenBLAS/include
can i do this since i already have got openBlas? If so, can you please direct me to the path where i should change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants