Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

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

Open
Wassim17Labdi opened this issue Jan 22, 2024 · 0 comments
Open
Labels
bug Something isn't working triage

Comments

@Wassim17Labdi
Copy link

Wassim17Labdi commented Jan 22, 2024

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
@Wassim17Labdi Wassim17Labdi added bug Something isn't working triage labels Jan 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working triage
Projects
None yet
Development

No branches or pull requests

1 participant