matsui528 / nanopq

Pure python implementation of product quantization for nearest neighbor search
MIT License
323 stars 43 forks source link

Fix CI #28

Closed matsui528 closed 1 year ago

matsui528 commented 1 year ago

faiss v1.7.4 seems to have some problem with loading mkl. The test fails with the following log:

 ______________________ ERROR collecting tests/test_pq.py _______________________
ImportError while importing test module '/home/runner/work/nanopq/nanopq/tests/test_pq.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/share/miniconda3/envs/test/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_pq.py:7: in <module>
    import nanopq
nanopq/__init__.py:4: in <module>
    from .convert_faiss import faiss_to_nanopq, nanopq_to_faiss
nanopq/convert_faiss.py:8: in <module>
    import faiss
/usr/share/miniconda3/envs/test/lib/python3.9/site-packages/faiss/__init__.py:16: in <module>
    from .loader import *
/usr/share/miniconda3/envs/test/lib/python3.9/site-packages/faiss/loader.py:65: in <module>
    from .swigfaiss import *
/usr/share/miniconda3/envs/test/lib/python3.9/site-packages/faiss/swigfaiss.py:13: in <module>
    from . import _swigfaiss
E   ImportError: libmkl_intel_lp64.so.1: cannot open shared object file: No such file or directory

Let's wait for the bug of v1.7.4 will be fixed. As for now, let's use the old version.