faiss-wheels icon indicating copy to clipboard operation
faiss-wheels copied to clipboard

Unable to run faiss on termux

Open sheneeb opened this issue 8 months ago • 6 comments

After installing from source and running the following commands generates error On termux

python -c "import faiss; print(faiss.version)" Traceback (most recent call last): File "", line 1, in File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/faiss/init.py", line 16, in from .loader import * File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/faiss/loader.py", line 98, in from .swigfaiss import * File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/faiss/swigfaiss.py", line 10, in from . import _swigfaiss ImportError: dlopen failed: cannot locate symbol "PyByteArray_Type" referenced by "/data/data/com.termux/files/usr/lib/python3.11/site-packages/faiss/_swigfaiss.so"...

sheneeb avatar Jun 23 '24 20:06 sheneeb