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

Unclear Error Message #2861

Closed
psych0v0yager opened this issue May 16, 2023 · 5 comments
Closed

Unclear Error Message #2861

psych0v0yager opened this issue May 16, 2023 · 5 comments

Comments

@psych0v0yager
Copy link

I am trying to install faiss-gpu through the procedure outlined by the install.md file.

I have two environments, one running python 3.10, the other running python 3.11

My gcc is version 11.3 and my glibc version is 2.35.

I used the following install command:

conda install -c pytorch faiss-gpu

This is the error I get in my python 3.10 environment

UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:

Specifications:

  • faiss-gpu -> python[version='>=3.11,<3.12.0a0']

Your python: python=3.10

If python is on the left-most side of the chain, that's the version you've asked for.
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to. Note that conda will not
change your python version to a different minor version unless you explicitly specify
that.

The following specifications were found to be incompatible with your system:

  • feature:/linux-64::__glibc==2.35=0
  • faiss-gpu -> __glibc[version='>=2.17,<3.0.a0']
  • faiss-gpu -> libgcc-ng[version='>=11.2.0'] -> __glibc[version='>=2.17']
  • python=3.10 -> libgcc-ng[version='>=11.2.0'] -> __glibc[version='>=2.17']

Your installed version is: 2.35

This is the error I get in my python 3.11 environment

UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:

Specifications:

  • faiss-gpu -> python[version='>=2.7,<2.8.0a0|>=3.10,<3.11.0a0|>=3.9,<3.10.0a0|>=3.8,<3.9.0a0|>=3.7,<3.8.0a0|>=3.6,<3.7.0a0|>=3.5,<3.6.0a0']

Your python: python=3.11

If python is on the left-most side of the chain, that's the version you've asked for.
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to. Note that conda will not
change your python version to a different minor version unless you explicitly specify
that.

The following specifications were found to be incompatible with your system:

  • feature:/linux-64::__glibc==2.35=0
  • faiss-gpu -> __glibc[version='>=2.17,<3.0.a0']
  • faiss-gpu -> libgcc-ng[version='>=11.2.0'] -> __glibc[version='>=2.17']
  • python=3.11 -> libgcc-ng[version='>=11.2.0'] -> __glibc[version='>=2.17']

Your installed version is: 2.35

What is going on? In one case it says any version of python below 3.11 is not supported, and in the other case it says any version above 3.11 is not supported?

@mdouze mdouze added the install label May 16, 2023
@mdouze
Copy link
Contributor

mdouze commented May 16, 2023

have you tried following GPU Faiss with CUDA 11.4 instructions here:

https://github.com/facebookresearch/faiss/blob/main/INSTALL.md

@psych0v0yager
Copy link
Author

psych0v0yager commented May 16, 2023 via email

@mdouze mdouze added the GPU label May 23, 2023
@algoriddle
Copy link
Contributor

Python 3.11 is not supported by Faiss yet.

Python 3.10 is only supported by Faiss 1.7.4, however, Faiss 1.7.4 has a dependency on cudatoolkit=11.4, which is not available in the main anaconda channel, only in the nvidia channel. Therefore when you run conda install -c pytorch faiss-gpu it will try to install Faiss 1.7.3 which does not support Python 3.10 or 3.11, only Python 3.7 to 3.9.

Can you please try: conda install faiss-gpu -c pytorch -c nvidia on Python 3.10? This should install faiss=1.7.4 from the pytorch channel and cudatoolkit=11.4 from the nvidia channel.

@mlomeli1
Copy link
Contributor

solved by @algoriddle , closing.

@Parskatt
Copy link

When will FAISS support cuda 11.7? It's inconvenient that pytorch is 11.7 by default while FAISS is 11.4.

ehudkr added a commit to BiomedSciAI/causallib that referenced this issue Oct 25, 2023
GPU not yet supported for Python 3.11
facebookresearch/faiss#2861 (comment)

Signed-off-by: Ehud-Karavani <ehud.karavani@ibm.com>
ehudkr added a commit to BiomedSciAI/causallib that referenced this issue Oct 25, 2023
* Allow pandas >2 dependency

* Allow networkx >3 dependency

* Github actions add tests for Python 3.10 and 3.11

* Change `faiss` dependency from GPU to CPU

GPU not yet supported for Python 3.11
facebookresearch/faiss#2861 (comment)

* Bump version: v0.9.6

* Fix requirements bump twice for pandas none for nx

Bumped pandas twice instead pandas and networkx

---------

Signed-off-by: Ehud-Karavani <ehud.karavani@ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants