run-llama / llama-hub

A library of data loaders for LLMs made by the community -- to be used with LlamaIndex and/or LangChain
https://llamahub.ai/
MIT License
3.43k stars 728 forks source link

Issue with FaissReader Installation: 'faiss' Distribution Not Found #883

Open Wassim17Labdi opened 6 months ago

Wassim17Labdi commented 6 months ago

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