Git Product home page Git Product logo

Comments (12)

yangarbiter avatar yangarbiter commented on September 28, 2024

I think you'll have to either install lapacke or install the package without hintsvm and variance_reduction
https://github.com/ntucllab/libact#installation-options

from libact.

PedroSPSantos avatar PedroSPSantos commented on September 28, 2024

Was installing the module as well and was searching for a issue that showed my error and found this one. There is a question that came to mind: "What files are supposed to be in the libact library?" If its the ones on the print I m attaching we could just add the module to the lib folder on python where the modules are installed(C:\Users\User\AppData\Local\Programs\Python\Python36\Lib\site-packages) and add lapacke.h file somewhere(since its available at the lapack website) and change up the python import to import the .h file from where we put it correct? @yangarbiter
print1

from libact.

yangarbiter avatar yangarbiter commented on September 28, 2024

I am not super familiar with windows right now. I guess you will need to set some environment variable (PATH in linux) to the directory of the lapacke.h.

I think you might need some other files other than the header file lapacke.h. I found this website. Do you want to take a look and see if you can get it installed?

from libact.

PedroSPSantos avatar PedroSPSantos commented on September 28, 2024

I can try to help not only me but others to solve this issue on windows, but by the looks of things in MacOs as well(from other issues I saw in the github). Btw is it normal to see this error message if u say to libact u dont want to install variance_reduction?And it also does the same for when u try to say to libact that u dont want variance_reduction and hintsvm(no issue found for hintsvm tho, as shown on second print (cmd

cnd2
)

from libact.

yangarbiter avatar yangarbiter commented on September 28, 2024

Could you try installing the package with this command (without the py -3.6 -m in the beginning and the space between space between LIBACT_BUILD_HINTSVM and 1.

LIBACT_BUILD_HINTSVM=1 pip install git+https://github.com/ntucllab/libact.git

If you really wants to run py -3.6 -m you should do

LIBACT_BUILD_VARIANCE_REDUCTION=1 LIBACT_BUILD_HINTSVM=1 py -3.6 -m pip install git+https://github.com/ntucllab/libact.git

from libact.

yangarbiter avatar yangarbiter commented on September 28, 2024

We know that LAPACKE is hard to install in many other operating systems. @ariapoy is trying another way to remove the requirement of LAPACKE. Hopefully we can make the installation process easier soon.

from libact.

PedroSPSantos avatar PedroSPSantos commented on September 28, 2024

Could you try installing the package with this command (without the py -3.6 -m in the beginning and the space between space between LIBACT_BUILD_HINTSVM and 1.

LIBACT_BUILD_HINTSVM=1 pip install git+https://github.com/ntucllab/libact.git

If you really wants to run py -3.6 -m you should do

LIBACT_BUILD_VARIANCE_REDUCTION=1 LIBACT_BUILD_HINTSVM=1 py -3.6 -m pip install git+https://github.com/ntucllab/libact.git

U cannot use it like that in windows , as is shown in the print I attach... It throws out a libact build variance reduction is not a command as it should, cause in windows u should put first the command in the command prompt and then the variables, hence y that error
cmd3

from libact.

PedroSPSantos avatar PedroSPSantos commented on September 28, 2024

We know that LAPACKE is hard to install in many other operating systems. @ariapoy is trying another way to remove the requirement of LAPACKE. Hopefully we can make the installation process easier soon.

Hopefully! But I m also trying to see a solution to help windows users for now, so that this issue becomes solved and u can add it later to something in the readme in case lapacke is indeed a important package for the code and cant be replaced

from libact.

PedroSPSantos avatar PedroSPSantos commented on September 28, 2024

We know that LAPACKE is hard to install in many other operating systems. @ariapoy is trying another way to remove the requirement of LAPACKE. Hopefully we can make the installation process easier soon.

Hopefully! But I m also trying to see a solution to help windows users for now, so that this issue becomes solved and u can add it later to something in the readme in case lapacke is indeed a important package for the code and cant be replaced

Do u know(from installing it on your own pc) what files should be imported and inside of the package?
In other words is all the files inside of the github master needed? Or only the ones inside of the libact folder for libact to run?
So I can try and help the windows users out(and help u as well) with this recurring issue and try to find a fix for u as well for this issue, since the module itself seems interesting and I would love to help you out with this and let more people experience this package with no issues.

from libact.

yangarbiter avatar yangarbiter commented on September 28, 2024

Can you try to set the environment variables like mentioned here?
https://superuser.com/questions/79612/setting-and-getting-windows-environment-variables-from-the-command-prompt

Something like

set LIBACT_BUILD_VARIANCE_REDUCTION=1
set LIBACT_BUILD_HINTSVM=1
pip install git+https://github.com/ntucllab/libact.git

from libact.

PedroSPSantos avatar PedroSPSantos commented on September 28, 2024

Can you try to set the environment variables like mentioned here?
https://superuser.com/questions/79612/setting-and-getting-windows-environment-variables-from-the-command-prompt

Something like

set LIBACT_BUILD_VARIANCE_REDUCTION=1
set LIBACT_BUILD_HINTSVM=1
pip install git+https://github.com/ntucllab/libact.git

I can try and give u a result for it

from libact.

PedroSPSantos avatar PedroSPSantos commented on September 28, 2024

After doing the sets it did the installation with the error with variance reduction on 1 as shown in the first print. So it seemed the set did nothing,
cmd5
But as soon as I did set Variance reduction to 0 on the set command no errors occurred as shown here:
cmd4

So we know the way on windows to do the setting of the variables is with this part of code u suggested with the set command(not sure if same for MacOs, I can try and search it to help u respond as well to MacOs user issue) One thing stood out tho . If LIBACT_BUILD_VARIANCE_REDUCTION = 0 should the file even be in the package? Cause that's what happened to me as I did that. Shouldn't it mean that the query strategy is not to be there? In the mean time(although I wanted to install the package for the hintSVM Algorithm) I ll try and help u solving the Variance Reduction issue so that people that really want to use the variance reduction can have a easy way of installing the package and having that working πŸ˜„

from libact.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.