Здравствуйте!
При установке на macOS 12.1
python -m deeppavlov install kbqa_cq_rus
получаю ошибку.
Подскажите, пожалуйста, как можно это побороть.
Building wheel for faiss-gpu (setup.py) … error
ERROR: Command errored out with exit status 1:
command: /Users/16730627/dev/dp/penv/bin/python -u -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/private/var/folders/2v/_b90_62x38l6qp_44x2n0_28bd9d41/T/pip-install-f8ygraow/faiss-gpu_4f53c134d9204727b20d413d6d6730e9/setup.py’"’"’; file=’"’"’/private/var/folders/2v/_b90_62x38l6qp_44x2n0_28bd9d41/T/pip-install-f8ygraow/faiss-gpu_4f53c134d9204727b20d413d6d6730e9/setup.py’"’"’;f = getattr(tokenize, ‘"’"‘open’"’"’, open)(file) if os.path.exists(file) else io.StringIO(’"’"‘from setuptools import setup; setup()’"’"’);code = f.read().replace(’"’"’\r\n’"’"’, ‘"’"’\n’"’"’);f.close();exec(compile(code, file, ‘"’"‘exec’"’"’))’ bdist_wheel -d /private/var/folders/2v/_b90_62x38l6qp_44x2n0_28bd9d41/T/pip-wheel-3h3tcw0d
cwd: /private/var/folders/2v/_b90_62x38l6qp_44x2n0_28bd9d41/T/pip-install-f8ygraow/faiss-gpu_4f53c134d9204727b20d413d6d6730e9/
Complete output (71 lines):
running bdist_wheel
running build
running build_ext
building ‘faiss._swigfaiss’ extension
swigging python/swigfaiss.i to python/swigfaiss_wrap.cpp
swig -python -c++ -Doverride= -I/usr/local/include/faiss -I/usr/local/cuda/include -DGPU_WRAPPER -o python/swigfaiss_wrap.cpp python/swigfaiss.i
python/swigfaiss.i:230: Error: Unable to find ‘faiss/utils/Heap.h’
python/swigfaiss.i:231: Error: Unable to find ‘faiss/utils/hamming.h’
python/swigfaiss.i:283: Error: Unable to find ‘faiss/gpu/GpuResources.h’
python/swigfaiss.i:284: Error: Unable to find ‘faiss/gpu/StandardGpuResources.h’
python/swigfaiss.i:312: Error: Unable to find ‘faiss/utils/utils.h’
python/swigfaiss.i:313: Error: Unable to find ‘faiss/utils/distances.h’
python/swigfaiss.i:314: Error: Unable to find ‘faiss/utils/random.h’
python/swigfaiss.i:316: Error: Unable to find ‘faiss/MetricType.h’
python/swigfaiss.i:317: Error: Unable to find ‘faiss/Index.h’
python/swigfaiss.i:318: Error: Unable to find ‘faiss/Clustering.h’
python/swigfaiss.i:320: Error: Unable to find ‘faiss/utils/extra_distances.h’
python/swigfaiss.i:324: Error: Unable to find ‘faiss/impl/ProductQuantizer.h’
python/swigfaiss.i:326: Error: Unable to find ‘faiss/VectorTransform.h’
python/swigfaiss.i:327: Error: Unable to find ‘faiss/IndexPreTransform.h’
python/swigfaiss.i:328: Error: Unable to find ‘faiss/IndexFlat.h’
python/swigfaiss.i:329: Error: Unable to find ‘faiss/IndexLSH.h’
python/swigfaiss.i:330: Error: Unable to find ‘faiss/impl/PolysemousTraining.h’
python/swigfaiss.i:331: Error: Unable to find ‘faiss/IndexPQ.h’
python/swigfaiss.i:332: Error: Unable to find ‘faiss/InvertedLists.h’
python/swigfaiss.i:333: Error: Unable to find ‘faiss/DirectMap.h’
python/swigfaiss.i:336: Error: Unable to find ‘faiss/IndexIVF.h’
python/swigfaiss.i:341: Error: Unable to find ‘faiss/IVFlib.h’
python/swigfaiss.i:342: Error: Unable to find ‘faiss/impl/ScalarQuantizer.h’
python/swigfaiss.i:343: Error: Unable to find ‘faiss/IndexScalarQuantizer.h’
python/swigfaiss.i:344: Error: Unable to find ‘faiss/IndexIVFSpectralHash.h’
python/swigfaiss.i:345: Error: Unable to find ‘faiss/impl/HNSW.h’
python/swigfaiss.i:346: Error: Unable to find ‘faiss/IndexHNSW.h’
python/swigfaiss.i:347: Error: Unable to find ‘faiss/IndexIVFFlat.h’
python/swigfaiss.i:348: Error: Unable to find ‘faiss/OnDiskInvertedLists.h’
python/swigfaiss.i:350: Error: Unable to find ‘faiss/impl/lattice_Zn.h’
python/swigfaiss.i:351: Error: Unable to find ‘faiss/IndexLattice.h’
python/swigfaiss.i:354: Error: Unable to find ‘faiss/IndexIVFPQ.h’
python/swigfaiss.i:355: Error: Unable to find ‘faiss/IndexIVFPQR.h’
python/swigfaiss.i:356: Error: Unable to find ‘faiss/Index2Layer.h’
python/swigfaiss.i:358: Error: Unable to find ‘faiss/IndexBinary.h’
python/swigfaiss.i:359: Error: Unable to find ‘faiss/IndexBinaryFlat.h’
python/swigfaiss.i:360: Error: Unable to find ‘faiss/IndexBinaryIVF.h’
python/swigfaiss.i:361: Error: Unable to find ‘faiss/IndexBinaryFromFloat.h’
python/swigfaiss.i:362: Error: Unable to find ‘faiss/IndexBinaryHNSW.h’
python/swigfaiss.i:363: Error: Unable to find ‘faiss/IndexBinaryHash.h’
python/swigfaiss.i:369: Error: Unable to find ‘faiss/impl/ThreadedIndex.h’
python/swigfaiss.i:373: Error: Unable to find ‘faiss/IndexShards.h’
python/swigfaiss.i:377: Error: Unable to find ‘faiss/IndexReplicas.h’
python/swigfaiss.i:381: Error: Unable to find ‘faiss/MetaIndexes.h’
python/swigfaiss.i:392: Error: Unable to find ‘faiss/gpu/GpuIndicesOptions.h’
python/swigfaiss.i:393: Error: Unable to find ‘faiss/gpu/GpuClonerOptions.h’
python/swigfaiss.i:394: Error: Unable to find ‘faiss/gpu/utils/MemorySpace.h’
python/swigfaiss.i:395: Error: Unable to find ‘faiss/gpu/GpuIndex.h’
python/swigfaiss.i:396: Error: Unable to find ‘faiss/gpu/GpuIndexFlat.h’
python/swigfaiss.i:397: Error: Unable to find ‘faiss/gpu/GpuIndexIVF.h’
python/swigfaiss.i:398: Error: Unable to find ‘faiss/gpu/GpuIndexIVFPQ.h’
python/swigfaiss.i:399: Error: Unable to find ‘faiss/gpu/GpuIndexIVFFlat.h’
python/swigfaiss.i:400: Error: Unable to find ‘faiss/gpu/GpuIndexIVFScalarQuantizer.h’
python/swigfaiss.i:401: Error: Unable to find ‘faiss/gpu/GpuIndexBinaryFlat.h’
python/swigfaiss.i:402: Error: Unable to find ‘faiss/gpu/GpuDistance.h’
python/swigfaiss.i:686: Error: Unable to find ‘faiss/impl/io.h’
python/swigfaiss.i:687: Error: Unable to find ‘faiss/index_io.h’
python/swigfaiss.i:688: Error: Unable to find ‘faiss/clone_index.h’
python/swigfaiss.i:693: Error: Unable to find ‘faiss/AutoTune.h’
python/swigfaiss.i:694: Error: Unable to find ‘faiss/index_factory.h’
python/swigfaiss.i:695: Error: Unable to find ‘faiss/MatrixStats.h’
python/swigfaiss.i:700: Error: Unable to find ‘faiss/gpu/GpuAutoTune.h’
python/swigfaiss.i:706: Error: Unable to find ‘faiss/gpu/GpuCloner.h’
python/swigfaiss.i:938: Error: Unable to find ‘faiss/impl/AuxIndexStructures.h’
error: command ‘swig’ failed with exit status 1
ERROR: Failed building wheel for faiss-gpu
Running setup.py clean for faiss-gpu
Failed to build faiss-gpu
Installing collected packages: faiss-gpu
Running setup.py install for faiss-gpu … error
ERROR: Command errored out with exit status 1:
command: /Users/16730627/dev/dp/penv/bin/python -u -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/private/var/folders/2v/_b90_62x38l6qp_44x2n0_28bd9d41/T/pip-install-f8ygraow/faiss-gpu_4f53c134d9204727b20d413d6d6730e9/setup.py’"’"’; file=’"’"’/private/var/folders/2v/_b90_62x38l6qp_44x2n0_28bd9d41/T/pip-install-f8ygraow/faiss-gpu_4f53c134d9204727b20d413d6d6730e9/setup.py’"’"’;f = getattr(tokenize, ‘"’"‘open’"’"’, open)(file) if os.path.exists(file) else io.StringIO(’"’"‘from setuptools import setup; setup()’"’"’);code = f.read().replace(’"’"’\r\n’"’"’, ‘"’"’\n’"’"’);f.close();exec(compile(code, file, ‘"’"‘exec’"’"’))’ install --record /private/var/folders/2v/_b90_62x38l6qp_44x2n0_28bd9d41/T/pip-record-jl4r8ve6/install-record.txt --single-version-externally-managed --compile --install-headers /Users/16730627/dev/dp/penv/include/site/python3.6/faiss-gpu
cwd: /private/var/folders/2v/_b90_62x38l6qp_44x2n0_28bd9d41/T/pip-install-f8ygraow/faiss-gpu_4f53c134d9204727b20d413d6d6730e9/
Complete output (73 lines):
running install
/Users/16730627/dev/dp/penv/lib/python3.6/site-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
setuptools.SetuptoolsDeprecationWarning,
running build
running build_ext
building ‘faiss._swigfaiss’ extension
swigging python/swigfaiss.i to python/swigfaiss_wrap.cpp
swig -python -c++ -Doverride= -I/usr/local/include/faiss -I/usr/local/cuda/include -DGPU_WRAPPER -o python/swigfaiss_wrap.cpp python/swigfaiss.i
python/swigfaiss.i:230: Error: Unable to find ‘faiss/utils/Heap.h’
python/swigfaiss.i:231: Error: Unable to find ‘faiss/utils/hamming.h’
python/swigfaiss.i:283: Error: Unable to find ‘faiss/gpu/GpuResources.h’
python/swigfaiss.i:284: Error: Unable to find ‘faiss/gpu/StandardGpuResources.h’
python/swigfaiss.i:312: Error: Unable to find ‘faiss/utils/utils.h’
python/swigfaiss.i:313: Error: Unable to find ‘faiss/utils/distances.h’
python/swigfaiss.i:314: Error: Unable to find ‘faiss/utils/random.h’
python/swigfaiss.i:316: Error: Unable to find ‘faiss/MetricType.h’
python/swigfaiss.i:317: Error: Unable to find ‘faiss/Index.h’
python/swigfaiss.i:318: Error: Unable to find ‘faiss/Clustering.h’
python/swigfaiss.i:320: Error: Unable to find ‘faiss/utils/extra_distances.h’
python/swigfaiss.i:324: Error: Unable to find ‘faiss/impl/ProductQuantizer.h’
python/swigfaiss.i:326: Error: Unable to find ‘faiss/VectorTransform.h’
python/swigfaiss.i:327: Error: Unable to find ‘faiss/IndexPreTransform.h’
python/swigfaiss.i:328: Error: Unable to find ‘faiss/IndexFlat.h’
python/swigfaiss.i:329: Error: Unable to find ‘faiss/IndexLSH.h’
python/swigfaiss.i:330: Error: Unable to find ‘faiss/impl/PolysemousTraining.h’
python/swigfaiss.i:331: Error: Unable to find ‘faiss/IndexPQ.h’
python/swigfaiss.i:332: Error: Unable to find ‘faiss/InvertedLists.h’
python/swigfaiss.i:333: Error: Unable to find ‘faiss/DirectMap.h’
python/swigfaiss.i:336: Error: Unable to find ‘faiss/IndexIVF.h’
python/swigfaiss.i:341: Error: Unable to find ‘faiss/IVFlib.h’
python/swigfaiss.i:342: Error: Unable to find ‘faiss/impl/ScalarQuantizer.h’
python/swigfaiss.i:343: Error: Unable to find ‘faiss/IndexScalarQuantizer.h’
python/swigfaiss.i:344: Error: Unable to find ‘faiss/IndexIVFSpectralHash.h’
python/swigfaiss.i:345: Error: Unable to find ‘faiss/impl/HNSW.h’
python/swigfaiss.i:346: Error: Unable to find ‘faiss/IndexHNSW.h’
python/swigfaiss.i:347: Error: Unable to find ‘faiss/IndexIVFFlat.h’
python/swigfaiss.i:348: Error: Unable to find ‘faiss/OnDiskInvertedLists.h’
python/swigfaiss.i:350: Error: Unable to find ‘faiss/impl/lattice_Zn.h’
python/swigfaiss.i:351: Error: Unable to find ‘faiss/IndexLattice.h’
python/swigfaiss.i:354: Error: Unable to find ‘faiss/IndexIVFPQ.h’
python/swigfaiss.i:355: Error: Unable to find ‘faiss/IndexIVFPQR.h’
python/swigfaiss.i:356: Error: Unable to find ‘faiss/Index2Layer.h’
python/swigfaiss.i:358: Error: Unable to find ‘faiss/IndexBinary.h’
python/swigfaiss.i:359: Error: Unable to find ‘faiss/IndexBinaryFlat.h’
python/swigfaiss.i:360: Error: Unable to find ‘faiss/IndexBinaryIVF.h’
python/swigfaiss.i:361: Error: Unable to find ‘faiss/IndexBinaryFromFloat.h’
python/swigfaiss.i:362: Error: Unable to find ‘faiss/IndexBinaryHNSW.h’
python/swigfaiss.i:363: Error: Unable to find ‘faiss/IndexBinaryHash.h’
python/swigfaiss.i:369: Error: Unable to find ‘faiss/impl/ThreadedIndex.h’
python/swigfaiss.i:373: Error: Unable to find ‘faiss/IndexShards.h’
python/swigfaiss.i:377: Error: Unable to find ‘faiss/IndexReplicas.h’
python/swigfaiss.i:381: Error: Unable to find ‘faiss/MetaIndexes.h’
python/swigfaiss.i:392: Error: Unable to find ‘faiss/gpu/GpuIndicesOptions.h’
python/swigfaiss.i:393: Error: Unable to find ‘faiss/gpu/GpuClonerOptions.h’
python/swigfaiss.i:394: Error: Unable to find ‘faiss/gpu/utils/MemorySpace.h’
python/swigfaiss.i:395: Error: Unable to find ‘faiss/gpu/GpuIndex.h’
python/swigfaiss.i:396: Error: Unable to find ‘faiss/gpu/GpuIndexFlat.h’
python/swigfaiss.i:397: Error: Unable to find ‘faiss/gpu/GpuIndexIVF.h’
python/swigfaiss.i:398: Error: Unable to find ‘faiss/gpu/GpuIndexIVFPQ.h’
python/swigfaiss.i:399: Error: Unable to find ‘faiss/gpu/GpuIndexIVFFlat.h’
python/swigfaiss.i:400: Error: Unable to find ‘faiss/gpu/GpuIndexIVFScalarQuantizer.h’
python/swigfaiss.i:401: Error: Unable to find ‘faiss/gpu/GpuIndexBinaryFlat.h’
python/swigfaiss.i:402: Error: Unable to find ‘faiss/gpu/GpuDistance.h’
python/swigfaiss.i:686: Error: Unable to find ‘faiss/impl/io.h’
python/swigfaiss.i:687: Error: Unable to find ‘faiss/index_io.h’
python/swigfaiss.i:688: Error: Unable to find ‘faiss/clone_index.h’
python/swigfaiss.i:693: Error: Unable to find ‘faiss/AutoTune.h’
python/swigfaiss.i:694: Error: Unable to find ‘faiss/index_factory.h’
python/swigfaiss.i:695: Error: Unable to find ‘faiss/MatrixStats.h’
python/swigfaiss.i:700: Error: Unable to find ‘faiss/gpu/GpuAutoTune.h’
python/swigfaiss.i:706: Error: Unable to find ‘faiss/gpu/GpuCloner.h’
python/swigfaiss.i:938: Error: Unable to find ‘faiss/impl/AuxIndexStructures.h’
error: command ‘swig’ failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /Users/16730627/dev/dp/penv/bin/python -u -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/private/var/folders/2v/_b90_62x38l6qp_44x2n0_28bd9d41/T/pip-install-f8ygraow/faiss-gpu_4f53c134d9204727b20d413d6d6730e9/setup.py’"’"’; file=’"’"’/private/var/folders/2v/_b90_62x38l6qp_44x2n0_28bd9d41/T/pip-install-f8ygraow/faiss-gpu_4f53c134d9204727b20d413d6d6730e9/setup.py’"’"’;f = getattr(tokenize, ‘"’"‘open’"’"’, open)(file) if os.path.exists(file) else io.StringIO(’"’"‘from setuptools import setup; setup()’"’"’);code = f.read().replace(’"’"’\r\n’"’"’, ‘"’"’\n’"’"’);f.close();exec(compile(code, file, ‘"’"‘exec’"’"’))’ install --record /private/var/folders/2v/_b90_62x38l6qp_44x2n0_28bd9d41/T/pip-record-jl4r8ve6/install-record.txt --single-version-externally-managed --compile --install-headers /Users/16730627/dev/dp/penv/include/site/python3.6/faiss-gpu Check the logs for full command output.
Traceback (most recent call last):
File “/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py”, line 193, in _run_module_as_main
“main”, mod_spec)
File “/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py”, line 85, in _run_code
exec(code, run_globals)
File “/Users/16730627/dev/dp/penv/lib/python3.6/site-packages/deeppavlov/main.py”, line 4, in
main()
File “/Users/16730627/dev/dp/penv/lib/python3.6/site-packages/deeppavlov/deep.py”, line 130, in main
install_from_config(pipeline_config_path)
File “/Users/16730627/dev/dp/penv/lib/python3.6/site-packages/deeppavlov/utils/pip_wrapper/pip_wrapper.py”, line 71, in install_from_config
install(r)
File “/Users/16730627/dev/dp/penv/lib/python3.6/site-packages/deeppavlov/utils/pip_wrapper/pip_wrapper.py”, line 38, in install
env=os.environ.copy())
File “/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py”, line 291, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘[’/Users/16730627/dev/dp/penv/bin/python’, ‘-m’, ‘pip’, ‘install’, ‘faiss-gpu==1.6.3’]’ returned non-zero exit status 1.