This repository was archived by the owner on Mar 1, 2024. It is now read-only.
This repository was archived by the owner on Mar 1, 2024. It is now read-only.
Issue with FaissReader Installation: 'faiss' Distribution Not Found #883
Open
Description
Bug Description
Hi,
I'm encountering an issue when trying to use the FaissReader with the download_loader
function. The specific line of code causing the problem is:
FaissReader = download_loader('FaissReader')
Version
0.9.34
Steps to Reproduce
with the same code in this link :
https://llamahub.ai/l/faiss
I suspect the issue might be related to the requirements.txt file in your project, which lists faiss as a dependency. It's possible that this should be faiss-cpu to reflect the correct package name on PyPI. Could you please look into this?
Thanks for your help!
Relevant Logs/Tracbacks
ERROR: Could not find a version that satisfies the requirement faiss (from versions: none)
ERROR: No matching distribution found for faiss
Traceback (most recent call last):
File "C:\Users\labdi\AppData\Local\Programs\Python\Python311\Lib\site-packages\llama_index\download\module.py", line 171, in download_module_and_reqs
pkg_resources.require([str(r) for r in requirements])
File "C:\Users\labdi\AppData\Local\Programs\Python\Python311\Lib\site-packages\pkg_resources\__init__.py", line 909, in require
needed = self.resolve(parse_requirements(requirements))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\labdi\AppData\Local\Programs\Python\Python311\Lib\site-packages\pkg_resources\__init__.py", line 795, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'faiss' distribution was not found and is required by the application
Activity