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

Resolution conflict error messages ignore --strict-channel-priority #1217

Closed
183amir opened this issue Oct 15, 2021 · 1 comment
Closed

Resolution conflict error messages ignore --strict-channel-priority #1217

183amir opened this issue Oct 15, 2021 · 1 comment

Comments

@183amir
Copy link

183amir commented Oct 15, 2021

I am trying to debug a conflict error, but mamba's error message is not useful because it ignores the strict channel priority:

$ mamba create -n temp --dry-run --strict-channel-priority --override-channels \
-c http://www.idiap.ch/software/bob/conda/label/beta \
-c http://www.idiap.ch/software/bob/conda \
-c conda-forge \
'bob.ap' \
'bob.extension' \
'docopt=0.6.2' \
'torchvision=0.10.1' \
'bob.io.base' \
'bob.io.image' \
'pip=21.3.*' \
'numpy=1.20.3' \
'h5py=2.10.0' \
'pytorch=1.8.0' \
'matplotlib=3.4.3' \
'setuptools=58.2.0' \
'bob.core' \
'tensorflow=2.4.1' \
'python=3.8.*' \
'bob.pad.base'

Looking for: ['bob.ap', 'bob.extension', 'docopt=0.6.2', 'torchvision=0.10.1', 'bob.io.base', 'bob.io.image', 'pip=21.3', 'numpy=1.20.3', 'h5py=2.10.0', 'pytorch=1.8.0', 'matplotlib=3.4.3', 'setuptools=58.2.0', 'bob.core', 'tensorflow=2.4.1', 'python=3.8', 'bob.pad.base']

Encountered problems while solving:
  - nothing provides jpeg 9b needed by bob.io.image-2.2.0-py27_2

But this error message is not useful, because bob.io.image-2.2.0-py27_2 comes from http://www.idiap.ch/software/bob/conda while there are bob.io.image packages in the beta channel already:

$ mamba search bob.io.image
Loading channels: ...working... done
# Name                       Version           Build  Channel             
bob.io.image                   2.2.0          py27_0  software/bob/conda  
bob.io.image                   2.2.0          py27_1  software/bob/conda  
bob.io.image                   2.2.0          py27_2  software/bob/conda  
bob.io.image                   2.2.0          py34_0  software/bob/conda  
bob.io.image                   2.2.0          py34_1  software/bob/conda  
bob.io.image                   2.2.0          py34_2  software/bob/conda  
bob.io.image                   2.2.0          py35_0  software/bob/conda  
bob.io.image                   2.2.0          py35_1  software/bob/conda  
bob.io.image                   2.2.0          py35_2  software/bob/conda  
bob.io.image                   2.2.1          py27_0  software/bob/conda  
bob.io.image                   2.2.1          py34_0  software/bob/conda  
bob.io.image                   2.2.1          py35_0  software/bob/conda  
bob.io.image                   2.2.1          py36_0  software/bob/conda  
bob.io.image                   2.2.2     np112py27_0  software/bob/conda  
bob.io.image                   2.2.2     np112py35_0  software/bob/conda  
bob.io.image                   2.2.2     np112py36_0  software/bob/conda  
bob.io.image                   2.2.2     np113py27_0  software/bob/conda  
bob.io.image                   2.2.2     np113py35_0  software/bob/conda  
bob.io.image                   2.2.2     np113py36_0  software/bob/conda  
bob.io.image                   2.2.2          py27_0  software/bob/conda  
bob.io.image                   2.2.2          py35_0  software/bob/conda  
bob.io.image                   2.2.2          py36_0  software/bob/conda  
bob.io.image                   2.3.0     np112py27_0  software/bob/conda  
bob.io.image                   2.3.0     np112py35_0  software/bob/conda  
bob.io.image                   2.3.0     np112py36_0  software/bob/conda  
bob.io.image                   2.3.0     np113py27_0  software/bob/conda  
bob.io.image                   2.3.0     np113py35_0  software/bob/conda  
bob.io.image                   2.3.0     np113py36_0  software/bob/conda  
bob.io.image                   2.4.0  py27h9deff11_0  software/bob/conda  
bob.io.image                   2.4.0  py36h9deff11_0  software/bob/conda  
bob.io.image                   2.4.1  py27h9deff11_0  software/bob/conda  
bob.io.image                   2.4.1  py36h9deff11_0  software/bob/conda  
bob.io.image                   2.4.2  py27hd33571a_0  software/bob/conda  
bob.io.image                   2.4.2  py36hd33571a_0  software/bob/conda  
bob.io.image                   2.4.3  py36hd7199c5_0  software/bob/conda  
bob.io.image                   2.4.4  py36h013ee83_1  software/bob/conda  
bob.io.image                   2.4.4  py36h1c34f4f_0  software/bob/conda  
bob.io.image                   2.4.4  py37h013ee83_1  software/bob/conda  
bob.io.image                   2.4.4  py37h1c34f4f_0  software/bob/conda  
bob.io.image                   2.4.5  py36h500d9c4_0  software/bob/conda  
bob.io.image                   2.4.5  py37h500d9c4_0  software/bob/conda  
bob.io.image                   2.4.6  py36h44c2a04_0  software/bob/conda  
bob.io.image                   2.4.6  py37h44c2a04_0  software/bob/conda  
bob.io.image                   2.5.0  py37h779996b_0  software/bob/conda  
bob.io.image                   2.5.0  py38h779996b_0  software/bob/conda  
bob.io.image                 2.5.1b0  py38h375c2ee_0  software/bob/conda/label/beta
bob.io.image                 2.5.1b0  py38h375c2ee_1  software/bob/conda/label/beta
bob.io.image                 2.5.1b0  py38h375c2ee_2  software/bob/conda/label/beta
bob.io.image                 2.5.1b0  py38h375c2ee_3  software/bob/conda/label/beta
bob.io.image                 2.5.1b0  py38h375c2ee_4  software/bob/conda/label/beta
bob.io.image                 2.5.1b0  py38h375c2ee_5  software/bob/conda/label/beta
bob.io.image                 2.5.1b0  py38h375c2ee_6  software/bob/conda/label/beta
bob.io.image                 2.5.1b0  py38hd166c48_7  software/bob/conda/label/beta

So bob.io.image-2.2.0-py27_2 should not be considered is resolving the environment at all.

I don't know if it's just the error message that is misleading or the strict channel priority is not fully functional. ref: #65

@183amir
Copy link
Author

183amir commented Oct 15, 2021

More info:

$ conda list | grep -E "(mamba|solv)"

libsolv                   0.7.19               h780b84a_5    conda-forge
mamba                     0.17.0           py39h951de11_0    conda-forge

$ mamba info

     active environment : base
    active env location : /home/amir/miniconda
            shell level : 2
       user config file : /home/amir/.condarc
 populated config files : /home/amir/miniconda/.condarc
                          /home/amir/.condarc
          conda version : 4.10.3
    conda-build version : 3.21.4
         python version : 3.9.7.final.0
       virtual packages : __linux=5.14.10=0
                          __glibc=2.33=0
                          __unix=0=0
                          __archspec=1=x86_64
       base environment : /home/amir/miniconda  (writable)
      conda av data dir : /home/amir/miniconda/etc/conda
  conda av metadata url : None
           channel URLs : https://conda.anaconda.org/conda-forge/linux-64
                          https://conda.anaconda.org/conda-forge/noarch
          package cache : /home/amir/miniconda/pkgs
                          /home/amir/.conda/pkgs
       envs directories : /home/amir/miniconda/envs
                          /home/amir/.conda/envs
               platform : linux-64
             user-agent : conda/4.10.3 requests/2.26.0 CPython/3.9.7 Linux/5.14.10-200.fc34.x86_64 fedora/34 glibc/2.33
                UID:GID : 1000:1000
             netrc file : None
           offline mode : False

@jonashaag jonashaag closed this as not planned Won't fix, can't repro, duplicate, stale Jul 25, 2023
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