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

libact.query_strategies._variance_reduction is missing #144

Open
gtcslance opened this issue May 31, 2018 · 6 comments
Open

libact.query_strategies._variance_reduction is missing #144

gtcslance opened this issue May 31, 2018 · 6 comments

Comments

@gtcslance
Copy link

this line of code does not work

from libact.query_strategies._variance_reduction import estVar

because the _variance_reduction module is missing

@yangarbiter
Copy link
Collaborator

Did you install the package correctly through ./setup.py install?

It seems you didn't compile the source code for variance reduction.

@rislam
Copy link

rislam commented Sep 26, 2018

I have followed the same and the last line

Finished processing dependencies for libact==0.1.3

Then I tried to run, python examples/plot.py

Traceback (most recent call last):
File "examples/plot.py", line 23, in
from libact.query_strategies import *
File "/libact-master/libact/query_strategies/init.py", line 20, in
from ._variance_reduction import estVar
ImportError: dlopen(/libact-master/libact/query_strategies/_variance_reduction.cpython-37m-darwin.so, 2): Symbol not found: ___addtf3
Referenced from: /usr/local/opt/gcc/lib/gcc/8/libquadmath.0.dylib
Expected in: /usr/lib/libSystem.B.dylib
in /usr/local/opt/gcc/lib/gcc/8/libquadmath.0.dylib

@yangarbiter
Copy link
Collaborator

scipy/scipy#5093

Could you try to reinstall the package?

@rislam
Copy link

rislam commented Sep 27, 2018

Yes, I have tried them too.

  • Tried with virtual environment with py27 and python -c "import scipy; print(scipy.__version__)" seems to be 1.1.0
  • In conda with python 3.5 also from scipy.special import legendre didn't provide any problem. And python -c "import scipy; print(scipy.__version__)" seems to be 1.1.0

@yangarbiter
Copy link
Collaborator

I mean remove libact completely and reinstall it.

@rislam
Copy link

rislam commented Sep 27, 2018

Tried that one and this one #138 too. But out of luck.

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

No branches or pull requests

3 participants