Faiss: make py error

Created on 24 Dec 2018  路  3Comments  路  Source: facebookresearch/faiss

on centos + anconda 3.6

make -C python build
make[1]: Entering directory /home/mlp/faiss/python' swig -python -c++ -Doverride= -I../ -o swigfaiss_wrap.cpp swigfaiss.swig ../IndexIVF.h:263: Error: Syntax error in input(3). make[1]: *** [swigfaiss_wrap.cpp] Error 1 make[1]: Leaving directory/home/mlp/faiss/python'
make: * [py] Error 2

Most helpful comment

This looks like you鈥檙e using an older version of swig. Please try with swig 3.

All 3 comments

This looks like you鈥檙e using an older version of swig. Please try with swig 3.

thanks

after all
import faiss get error

Traceback (most recent call last):
File "/home/mlp/faiss/python/swigfaiss_gpu.py", line 14, in swig_import_helper
return importlib.import_module(mname)
File "/home/mlp/python/anaconda3/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 994, in _gcd_import
File "", line 971, in _find_and_load
File "", line 953, in _find_and_load_unlocked
ModuleNotFoundError: No module named '_swigfaiss_gpu'

Was this page helpful?
0 / 5 - 0 ratings

Related issues

maozezhong picture maozezhong  路  3Comments

0DF0Arc picture 0DF0Arc  路  3Comments

linghuang picture linghuang  路  3Comments

zoe-cheung picture zoe-cheung  路  3Comments

Tony-Hou picture Tony-Hou  路  3Comments