-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Installation issue - KeyError 'flags' when import faiss #1098
Comments
Also, running in a python shell:
|
You are running on an unusual architecture, so I can't really test this, but I am interested in any feedback on Faiss on PPC. |
No activity, closing. |
Hi, I have the same issue, after compiling on ARMv8 (Jetson Xavier). I ran configure and make with the options:
After importing Faiss in python, I see the "KeyError: flags". Running the following in a python interpreter, gives:
|
Summary
After running all the installation steps, and I run
python -c "import faiss"
I get aKeyError: 'flags'
error. I'm installing faiss in a conda environment. For some reason, runningmake test_gpu
also fails with aTestGpuIndexFlat.cpp:9:29: fatal error: faiss/IndexFlat.h: No such file or directory
error. Runningmake test
also fails with 16 errors, all due to theKeyError: 'flags'
error.I am aware of the error in #866 where the egg file does not get unzipped, but even after unzipping I still get the error.
Any help would be much appreciated! I spent a lot of time trying to go through past issues and figure it out but I'm quite stuck.
Platform
OS: Rhel 7.6
Faiss version: faiss 1.6.1, commit e084949
Faiss compilation options:
`
./configure --with-cuda=/usr/local/cuda-10.1 --with-blas=/usr/lib64/libblas.so.3 --with-lapack=/usr/lib64/liblapack.so.3 --prefix=/nobackup/users/houssam/anaconda3/envs/NAME_OF_ENV
make
make install
make SWIG=/home/houssam/swig/bin/swig py
make -C python install`
After this step I proceeded to the
site-packages
folder and manually unzipped the egg file.Running on:
Interface:
Reproduction instructions
python -c "import faiss" Traceback (most recent call last): File "<string>", line 1, in <module> File "/nobackup/users/houssam/anaconda3/envs/wmlce-1.6.2/lib/python3.6/site-packages/faiss/__init__.py", line 38, in <module> instr_set = instruction_set() File "/nobackup/users/houssam/anaconda3/envs/wmlce-1.6.2/lib/python3.6/site-packages/faiss/__init__.py", line 31, in instruction_set if "avx2" in numpy.distutils.cpuinfo.cpu.info[0]['flags']: KeyError: 'flags'
The text was updated successfully, but these errors were encountered: