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

Channel specific package + strict priority currently not compatible #1082

Closed
wolfv opened this issue Jul 14, 2021 · 5 comments
Closed

Channel specific package + strict priority currently not compatible #1082

wolfv opened this issue Jul 14, 2021 · 5 comments
Labels
type::feature-request New feature proposal

Comments

@wolfv
Copy link
Member

wolfv commented Jul 14, 2021

We might need to do some additional tricks to make the following work:

.condarc:

channels:
- conda-forge
channel_priority: strict
mamba create -n blabla quantstack::sphinx

Throws an error because it can't install quantstack::sphinx due to strict channel priority.

@wolfv
Copy link
Member Author

wolfv commented Jul 14, 2021

I just checked, and conda has the same problem ... not sure if we shoudl chagne that.

@adriendelsalle adriendelsalle added the type::feature-request New feature proposal label Jul 27, 2021
@opoplawski
Copy link
Contributor

Just ran into this myself.

@opoplawski
Copy link
Contributor

Looks like the conda issue is conda/conda#9642 which appears to have been accepted as a bug.

@opoplawski
Copy link
Contributor

Well, it was closed as stale. This would be very helpful to me. I'm facing an issue where mysql-connector-python appears to have been retired from the main channel, so I need to grab it from conda-forge, but otherwise I want to use packages from main over conda-forge.

@jjerphan
Copy link
Member

jjerphan commented Feb 5, 2025

I cannot reproduce this issue with 2.0.6:

channels:                                                                                                                                                               
  - conda-forge
channel_priority: strict  
micromamba create -p /tmp/repro bioconda::snakemake --dry-run 
conda-forge/linux-64                                        Using cache
conda-forge/noarch                                          Using cache
bioconda/linux-64                                           Using cache
bioconda/noarch                                             Using cache


Transaction

  Prefix: /tmp/a

  Updating specs:

   - bioconda::snakemake


  Package                                     Version  Build                 Channel           Size
─────────────────────────────────────────────────────────────────────────────────────────────────────
  Install:
─────────────────────────────────────────────────────────────────────────────────────────────────────

  + _libgcc_mutex                                 0.1  conda_forge           conda-forge     Cached
  + _openmp_mutex                                 4.5  2_gnu                 conda-forge     Cached
  + amply                                       0.1.6  pyhd8ed1ab_1          conda-forge       22kB
  + annotated-types                             0.7.0  pyhd8ed1ab_1          conda-forge     Cached
  + appdirs                                     1.4.4  pyhd8ed1ab_1          conda-forge     Cached
  + argparse-dataclass                          2.0.0  pyhd8ed1ab_0          conda-forge       12kB
  + attrs                                      25.1.0  pyh71513ae_0          conda-forge     Cached
  + brotli-python                               1.1.0  py312h2ec8cdc_2       conda-forge     Cached
  + bzip2                                       1.0.8  h4bc722e_7            conda-forge     Cached
  + ca-certificates                         2025.1.31  hbcca054_0            conda-forge     Cached
  + certifi                                2024.12.14  pyhd8ed1ab_0          conda-forge     Cached
  + cffi                                       1.17.1  py312h06ac9bb_0       conda-forge     Cached
  + charset-normalizer                          3.4.1  pyhd8ed1ab_0          conda-forge     Cached
  + click                                       8.1.8  pyh707e725_0          conda-forge     Cached
  + coin-or-cbc                               2.10.12  h8b142ea_1            conda-forge      950kB
  + coin-or-cgl                                0.60.9  h1d3f3f2_0            conda-forge      557kB
  + coin-or-clp                               1.17.10  h07f2a63_0            conda-forge        1MB
  + coin-or-osi                              0.108.11  h6514dde_1            conda-forge      376kB
  + coin-or-utils                             2.11.12  h99da652_1            conda-forge      662kB
  + coincbc                                   2.10.12  1_metapackage         conda-forge       12kB
  + colorama                                    0.4.6  pyhd8ed1ab_1          conda-forge     Cached
  + coloredlogs                                15.0.1  pyhd8ed1ab_4          conda-forge       44kB
  + conda-inject                                1.3.2  pyhd8ed1ab_0          conda-forge       10kB
  + configargparse                                1.7  pyhd8ed1ab_1          conda-forge       40kB
  + connection_pool                             0.0.3  pyhd3deb0d_0          conda-forge        8kB
  + datrie                                      0.8.2  py312h66e93f0_8       conda-forge      159kB
  + docutils                                   0.21.2  pyhd8ed1ab_1          conda-forge     Cached
  + dpath                                       2.2.0  pyha770c72_0          conda-forge       21kB
  + eido                                        0.2.4  pyhd8ed1ab_0          conda-forge       20kB
  + exceptiongroup                              1.2.2  pyhd8ed1ab_1          conda-forge     Cached
  + gitdb                                      4.0.12  pyhd8ed1ab_0          conda-forge       53kB
  + gitpython                                  3.1.44  pyhff2d567_0          conda-forge      157kB
  + h2                                          4.2.0  pyhd8ed1ab_0          conda-forge     Cached
  + hpack                                       4.1.0  pyhd8ed1ab_0          conda-forge     Cached
  + humanfriendly                                10.0  pyh707e725_8          conda-forge       74kB
  + hyperframe                                  6.1.0  pyhd8ed1ab_0          conda-forge     Cached
  + idna                                         3.10  pyhd8ed1ab_1          conda-forge     Cached
  + immutables                                   0.21  py312h66e93f0_0       conda-forge       54kB
  + importlib_resources                         6.5.2  pyhd8ed1ab_0          conda-forge     Cached
  + iniconfig                                   2.0.0  pyhd8ed1ab_1          conda-forge     Cached
  + jinja2                                      3.1.5  pyhd8ed1ab_0          conda-forge     Cached
  + jsonschema                                 4.23.0  pyhd8ed1ab_1          conda-forge     Cached
  + jsonschema-specifications               2024.10.1  pyhd8ed1ab_1          conda-forge     Cached
  + jupyter_core                                5.7.2  pyh31011fe_1          conda-forge     Cached
  + ld_impl_linux-64                             2.43  h712a8e2_2            conda-forge     Cached
  + libblas                                     3.9.0  28_h59b9bed_openblas  conda-forge     Cached
  + libcblas                                    3.9.0  28_he106b2a_openblas  conda-forge     Cached
  + libexpat                                    2.6.4  h5888daf_0            conda-forge     Cached
  + libffi                                      3.4.2  h7f98852_5            conda-forge     Cached
  + libgcc                                     14.2.0  h77fa898_1            conda-forge     Cached
  + libgcc-ng                                  14.2.0  h69a702a_1            conda-forge     Cached
  + libgfortran                                14.2.0  h69a702a_1            conda-forge     Cached
  + libgfortran-ng                             14.2.0  h69a702a_1            conda-forge     Cached
  + libgfortran5                               14.2.0  hd5240d6_1            conda-forge     Cached
  + libgomp                                    14.2.0  h77fa898_1            conda-forge     Cached
  + liblapack                                   3.9.0  28_h7ac8fdf_openblas  conda-forge     Cached
  + liblapacke                                  3.9.0  28_he2f377e_openblas  conda-forge       17kB
  + liblzma                                     5.6.4  hb9d3cd8_0            conda-forge     Cached
  + libnsl                                      2.0.1  hd590300_0            conda-forge     Cached
  + libopenblas                                0.3.28  pthreads_h94d23a6_1   conda-forge     Cached
  + libsqlite                                  3.48.0  hee588c1_1            conda-forge     Cached
  + libstdcxx                                  14.2.0  hc0a3c3a_1            conda-forge     Cached
  + libstdcxx-ng                               14.2.0  h4852527_1            conda-forge     Cached
  + libuuid                                    2.38.1  h0b41bf4_0            conda-forge     Cached
  + libxcrypt                                  4.4.36  hd590300_1            conda-forge     Cached
  + libzlib                                     1.3.1  hb9d3cd8_2            conda-forge     Cached
  + logmuse                                     0.2.8  pyhd8ed1ab_1          conda-forge       14kB
  + markdown-it-py                              3.0.0  pyhd8ed1ab_1          conda-forge     Cached
  + markupsafe                                  3.0.2  py312h178313f_1       conda-forge     Cached
  + mdurl                                       0.1.2  pyhd8ed1ab_1          conda-forge     Cached
  + nbformat                                   5.10.4  pyhd8ed1ab_1          conda-forge     Cached
  + ncurses                                       6.5  h2d0b736_3            conda-forge     Cached
  + numpy                                       2.2.2  py312h72c5963_0       conda-forge     Cached
  + openssl                                     3.4.0  h7b32b05_1            conda-forge     Cached
  + packaging                                    24.2  pyhd8ed1ab_2          conda-forge     Cached
  + pandas                                      2.2.3  py312hf9745cd_1       conda-forge     Cached
  + pephubclient                                0.4.4  pyhd8ed1ab_1          conda-forge       22kB
  + peppy                                      0.40.7  pyhd8ed1ab_2          conda-forge       30kB
  + pip                                          25.0  pyh8b19718_0          conda-forge     Cached
  + pkgutil-resolve-name                       1.3.10  pyhd8ed1ab_2          conda-forge     Cached
  + plac                                        1.4.3  pyhd8ed1ab_1          conda-forge       26kB
  + platformdirs                                4.3.6  pyhd8ed1ab_1          conda-forge     Cached
  + pluggy                                      1.5.0  pyhd8ed1ab_1          conda-forge     Cached
  + psutil                                      6.1.1  py312h66e93f0_0       conda-forge     Cached
  + pulp                                        2.8.0  py312h7900ff3_0       conda-forge       13MB
  + pycparser                                    2.22  pyh29332c3_1          conda-forge     Cached
  + pydantic                                   2.10.6  pyh3cfb1c2_0          conda-forge     Cached
  + pydantic-core                              2.27.2  py312h12e396e_0       conda-forge        2MB
  + pygments                                   2.19.1  pyhd8ed1ab_0          conda-forge     Cached
  + pyparsing                                   3.2.1  pyhd8ed1ab_0          conda-forge     Cached
  + pysocks                                     1.7.1  pyha55dd90_7          conda-forge     Cached
  + pytest                                      8.3.4  pyhd8ed1ab_1          conda-forge     Cached
  + python                                     3.12.8  h9e4cc4f_1_cpython    conda-forge     Cached
  + python-dateutil                       2.9.0.post0  pyhff2d567_1          conda-forge     Cached
  + python-fastjsonschema                      2.21.1  pyhd8ed1ab_0          conda-forge     Cached
  + python-tzdata                              2025.1  pyhd8ed1ab_0          conda-forge     Cached
  + python_abi                                   3.12  5_cp312               conda-forge     Cached
  + pytz                                       2024.1  pyhd8ed1ab_0          conda-forge     Cached
  + pyyaml                                      6.0.2  py312h178313f_2       conda-forge     Cached
  + readline                                      8.2  h8228510_1            conda-forge     Cached
  + referencing                                0.36.2  pyh29332c3_0          conda-forge     Cached
  + requests                                   2.32.3  pyhd8ed1ab_1          conda-forge     Cached
  + reretry                                    0.11.8  pyhd8ed1ab_1          conda-forge       13kB
  + rich                                       13.9.4  pyhd8ed1ab_1          conda-forge     Cached
  + rpds-py                                    0.22.3  py312h12e396e_0       conda-forge     Cached
  + setuptools                                 75.8.0  pyhff2d567_0          conda-forge     Cached
  + shellingham                                 1.5.4  pyhd8ed1ab_1          conda-forge     Cached
  + six                                        1.17.0  pyhd8ed1ab_0          conda-forge     Cached
  + slack-sdk                                  3.34.0  pyhd8ed1ab_0          conda-forge      148kB
  + slack_sdk                                  3.34.0  hd8ed1ab_0            conda-forge        6kB
  + smart_open                                  7.1.0  pyhd8ed1ab_0          conda-forge       52kB
  + smmap                                       5.0.0  pyhd8ed1ab_0          conda-forge     Cached
  + snakemake                                  8.27.1  hdfd78af_0            bioconda           9kB
  + snakemake-interface-common                 1.17.4  pyhdfd78af_0          bioconda          18kB
  + snakemake-interface-executor-plugins        9.3.3  pyhdfd78af_0          bioconda          23kB
  + snakemake-interface-report-plugins          1.1.0  pyhdfd78af_0          bioconda          13kB
  + snakemake-interface-storage-plugins         3.3.0  pyhdfd78af_0          bioconda          19kB
  + snakemake-minimal                          8.27.1  pyhdfd78af_0          bioconda         810kB
  + tabulate                                    0.9.0  pyhd8ed1ab_2          conda-forge     Cached
  + throttler                                   1.2.2  pyhd8ed1ab_0          conda-forge       12kB
  + tk                                         8.6.13  noxft_h4845f30_101    conda-forge     Cached
  + tomli                                       2.2.1  pyhd8ed1ab_1          conda-forge     Cached
  + traitlets                                  5.14.3  pyhd8ed1ab_1          conda-forge     Cached
  + typer                                      0.15.1  pyhd8ed1ab_0          conda-forge     Cached
  + typer-slim                                 0.15.1  pyhd8ed1ab_0          conda-forge     Cached
  + typer-slim-standard                        0.15.1  hd8ed1ab_0            conda-forge     Cached
  + typing-extensions                          4.12.2  hd8ed1ab_1            conda-forge     Cached
  + typing_extensions                          4.12.2  pyha770c72_1          conda-forge     Cached
  + tzdata                                      2025a  h78e105d_0            conda-forge     Cached
  + ubiquerg                                    0.8.0  pyhd8ed1ab_0          conda-forge       21kB
  + urllib3                                     2.3.0  pyhd8ed1ab_0          conda-forge     Cached
  + veracitools                                 0.1.3  py_0                  conda-forge        6kB
  + wheel                                      0.45.1  pyhd8ed1ab_1          conda-forge     Cached
  + wrapt                                      1.17.2  py312h66e93f0_0       conda-forge     Cached
  + yaml                                        0.2.5  h7f98852_2            conda-forge     Cached
  + yte                                         1.5.6  pyha770c72_0          conda-forge       14kB
  + zipp                                       3.21.0  pyhd8ed1ab_1          conda-forge     Cached
  + zstandard                                  0.23.0  py312hef9b889_1       conda-forge     Cached
  + zstd                                        1.5.6  ha6fb4c9_0            conda-forge     Cached

  Summary:

  Install: 139 packages

  Total download: 21MB

─────────────────────────────────────────────────────────────────────────────────────────────────────


Dry run. Not executing the transaction.

To activate this environment, use:

    micromamba activate /tmp/a

Or to execute a single command in this environment, use:

    micromamba run -p /tmp/a mycommand

Feel free to reopen an issue with a reproducer if you still have this issue with 2.0.

@jjerphan jjerphan closed this as completed Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type::feature-request New feature proposal
Projects
None yet
Development

No branches or pull requests

4 participants