Skip to content
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
@Wassim17Labdi

Description

@Wassim17Labdi

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Issue with FaissReader Installation: 'faiss' Distribution Not Found · Issue #883 · run-llama/llama-hub