Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inconsistent name: expected 'faiss-gpu', but metadata has 'faiss-cpu' #77

Closed
peterchanws opened this issue May 25, 2023 · 7 comments
Closed
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@peterchanws
Copy link

Describe the bug
Requested faiss-cpu from https://files.pythonhosted.org/packages/7d/00/b3aaad408a44e4f5d87ebfcd75d0b14eeaed9fe9bc7a9f5e185ff1d503d6/faiss-gpu-1.6.4.post2.tar.gz has inconsistent name: expected 'faiss-gpu', but metadata has 'faiss-cpu'

To Reproduce
Describe the steps to reproduce the behavior:
pip install faiss-gpu

Desktop (please complete the following information):

  • OS: macOS 12.6.6
  • Architecture: x86_64
  • Python: 3.11.3
@peterchanws peterchanws added the bug Something isn't working label May 25, 2023
@lelapin123
Copy link

lelapin123 commented May 26, 2023

Me too with python 3.10.11 with conda and windows 10

@neeti865
Copy link

I am also facing the same issue. Anyone found a fix for this?

@johnurbanik
Copy link

Also seeing this on Ubuntu 20.04.6 LTS with Python 3.11.6

@chris-aeviator
Copy link

python 3.11 debian affected, all projects relying on faiss fail to install

  WARNING: Generating metadata for package faiss-gpu produced metadata for project name faiss-cpu. Fix your #egg=faiss-gpu fragments.
Discarding https://files.pythonhosted.org/packages/7d/00/b3aaad408a44e4f5d87ebfcd75d0b14eeaed9fe9bc7a9f5e185ff1d503d6/faiss-gpu-1.6.4.post2.tar.gz (from https://pypi.org/simple/faiss-gpu/): Requested faiss-cpu from https://files.pythonhosted.org/packages/7d/00/b3aaad408a44e4f5d87ebfcd75d0b14eeaed9fe9bc7a9f5e185ff1d503d6/faiss-gpu-1.6.4.post2.tar.gz has inconsistent name: expected 'faiss-gpu', but metadata has 'faiss-cpu'
  Using cached faiss-gpu-1.6.4.tar.gz (3.4 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [7 lines of output]
      running egg_info
      creating /tmp/pip-pip-egg-info-qpvwpcz2/faiss_cpu.egg-info
      writing /tmp/pip-pip-egg-info-qpvwpcz2/faiss_cpu.egg-info/PKG-INFO
      writing dependency_links to /tmp/pip-pip-egg-info-qpvwpcz2/faiss_cpu.egg-info/dependency_links.txt
      writing top-level names to /tmp/pip-pip-egg-info-qpvwpcz2/faiss_cpu.egg-info/top_level.txt
      writing manifest file '/tmp/pip-pip-egg-info-qpvwpcz2/faiss_cpu.egg-info/SOURCES.txt'
      error: package directory '/tmp/pip-install-ugppery7/faiss-gpu_c6cb8eb796ff4c5492a3ebd3edb2885b/faiss/faiss/python' does not exist
      [end of output]
```

@kyamagu kyamagu added the wontfix This will not be worked on label Mar 5, 2024
@kyamagu
Copy link
Owner

kyamagu commented Mar 5, 2024

faiss-gpu is not supported anymore, and the source packages are removed from the PyPI. Please use the faiss-cpu source package to support GPUs.

@kyamagu kyamagu closed this as completed Mar 5, 2024
@calypset
Copy link

If faiss-gpu is not supported anymore, is there any way to install faiss-cpu with cuda gpu support on windows? (sorry to open again with this question)

@kyamagu
Copy link
Owner

kyamagu commented Mar 13, 2024

@calypset Check the official instruction. There has never been windows GPU support in the PyPI package

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

7 participants