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

UnsatisfiableError: The following specifications were found to be incompatible with each other #804

Closed
rcasero opened this issue Sep 12, 2022 · 4 comments

Comments

@rcasero
Copy link

rcasero commented Sep 12, 2022

Trying to install bioconda-utils on a CentOs Stream 8 with

conda install -c bioconda bioconda-utils

gives the error

Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: / 
Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.
failed                                                                                                                                                                                                                                                                               

UnsatisfiableError: The following specifications were found to be incompatible with each other:

Output in format: Requested package -> Available versionsThe following specifications were found to be incompatible with your system:

  - feature:/linux-64::__glibc==2.28=0
  - python=3.10 -> libgcc-ng[version='>=7.5.0'] -> __glibc[version='>=2.17']

Your installed version is: 2.28

Conda 4.14.0 environment was created with

conda create -n test python=3.10
conda activate test

although same problem has been observed with python 3.6, 3.7, 3.8 and 3.9.

I have tried to install several versions of bioconda-utils (1.0.0-0, 1.0.1-0, 0.20.0-0), with the same result

conda install -c bioconda bioconda-utils=0.20.0-0
@dpryan79
Copy link
Contributor

It won't work with python 3.10

@rcasero
Copy link
Author

rcasero commented Sep 13, 2022

Hi @dpryan79 , thanks for your reply. As I mentioned above, it doesn't work with python 3.6, 3.7, 3.8 and 3.9 either. Is that expected too?

@dpryan79
Copy link
Contributor

I'm guessing that initially you're getting python from the defaults channel rather than conda-forge and that that is the source of the unsatisfiable solution. Make sure you have conda-forge in your channel list as the highest-priority channel at all times. Then things like this will work:

mamba create -dn foo bioconda-utils=1.0.1

In my case it used python 3.7.

@rcasero
Copy link
Author

rcasero commented Sep 14, 2022

Yes, I get python from the default channel. Following your comment, first I tried to create an environment with python 3.9 from conda-forge, and install bioconda-utils

conda create -n test -c conda-forge python=3.9
conda activate test
conda install -c bioconda bioconda-utils

and got the same error

Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: / 
Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.
failed                                                                                                                                                                                                                                                                                 

UnsatisfiableError: The following specifications were found to be incompatible with each other:

Output in format: Requested package -> Available versionsThe following specifications were found to be incompatible with your system:

  - feature:/linux-64::__glibc==2.28=0
  - feature:|@/linux-64::__glibc==2.28=0

Your installed version is: 2.28

I then downgraded python to the version you used, 3.7, and then tried to install bioconda-utils again, to see whether the problem is with the python version

conda install -c conda-forge python=3.7
conda install -c bioconda bioconda-utils

and that worked. It downloaded 188.4 MB of packages. Thanks, @dpryan79 !

@rcasero rcasero closed this as completed Sep 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants