libact.query_strategies._variance_reduction is missing
this line of code does not work
from libact.query_strategies._variance_reduction import estVar
because the _variance_reduction module is missing
Did you install the package correctly through ./setup.py install?
It seems you didn't compile the source code for variance reduction.
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
https://github.com/scipy/scipy/issues/5093
Could you try to reinstall the package?
Yes, I have tried them too.
- Tried with virtual environment with py27 and
python -c "import scipy; print(scipy.__version__)"seems to be1.1.0 - In conda with python 3.5 also
from scipy.special import legendredidn't provide any problem. Andpython -c "import scipy; print(scipy.__version__)"seems to be1.1.0
I mean remove libact completely and reinstall it.
Tried that one and this one https://github.com/ntucllab/libact/issues/138 too. But out of luck.