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

Micromamba fails to install package from "channel outside of channels" with the channel::package notation #3744

Open
3 tasks done
fabcor-maxiv opened this issue Jan 14, 2025 · 1 comment
Assignees
Labels
status::cannot-reproduce The bug could not be reproduced status::user_reply_needed type::bug Something isn't working

Comments

@fabcor-maxiv
Copy link

Troubleshooting docs

  • My problem is not solved in the Troubleshooting docs

Anaconda default channels

  • I do NOT use the Anaconda default channels (pkgs/* etc.)

How did you install Mamba?

Micromamba

Search tried in issue tracker

install with channel::package notation

Latest version of Mamba

  • My problem is not solved with the latest version

Tried in Conda?

I didn't try

Describe your issue

From this section of the conda documentation I understand that it should be possible to install from a "channel outside of channels" channel with the notation conda-forge::socat:

Specifying channels outside of "channels"

You may occasionally want to specify which channel conda will use to install a specific package. To accomplish this, use the channel::package syntax in dependencies:, as demonstrated above with conda-forge::numpy (version numbers optional). The specified channel does not need to be present in the channels: list, which is useful if you want some—but not all—packages installed from a community channel such as conda-forge.

-- https://docs.conda.io/projects/conda/en/stable/user-guide/tasks/manage-environments.html#creating-an-environment-file-manually

I have tried both with the package on the command line (see log), and with the package in a YAML environment file. Both have failed with the same error message (see log). I have also tried with the socat[channel=conda-forge] notation.

I do not know if this is meant to be supported by micromamba or not.

mamba info / micromamba info

libmamba version : 2.0.5
     micromamba version : 2.0.5
           curl version : libcurl/8.11.1 OpenSSL/3.4.0 zlib/1.3.1 zstd/1.5.6 libssh2/1.11.1 nghttp2/1.64.0
     libarchive version : libarchive 3.7.7 zlib/1.3.1 bz2lib/1.0.8 libzstd/1.5.6
       envs directories : /home/fabcor/.local/share/mamba/envs
          package cache : /home/fabcor/.local/share/mamba/pkgs
                          /home/fabcor/.mamba/pkgs
            environment : base
           env location : /home/fabcor/.local/share/mamba
      user config files : /home/fabcor/.mambarc
 populated config files : /home/fabcor/.conda/condarc
       virtual packages : __unix=0=0
                          __linux=6.1.0=0
                          __glibc=2.36=0
                          __archspec=1=x86_64_v3
               channels : https://conda.maxiv.lu.se/get/maxiv-kits/linux-64
                          https://conda.maxiv.lu.se/get/maxiv-kits/noarch
                          https://conda.maxiv.lu.se/get/mini-conda-forge/linux-64
                          https://conda.maxiv.lu.se/get/mini-conda-forge/noarch
       base environment : /home/fabcor/.local/share/mamba
               platform : linux-64

Logs

$ micromamba create --name socat 'socat[channel=conda-forge]'

error    libmamba Could not solve for environment specs
    The following package could not be installed
    └─ socat =* * does not exist (perhaps a typo or a missing channel).
critical libmamba Could not solve for environment specs

environment.yml

dependencies:
  - conda-forge::socat

~/.condarc

channel_alias: https://conda.maxiv.lu.se/get
channels:
    - maxiv-kits
    - mini-conda-forge
@jjerphan jjerphan added the release::bug_fixes For PRs fixing bugs label Jan 14, 2025
@Hind-M Hind-M added type::bug Something isn't working and removed release::bug_fixes For PRs fixing bugs labels Jan 15, 2025
@Hind-M Hind-M self-assigned this Jan 16, 2025
@Hind-M
Copy link
Member

Hind-M commented Jan 17, 2025

Unfortunately, I couldn't reproduce the issue as the mentioned commands should and seem to be working properly:

micromamba create --name socat 'socat[channel=conda-forge]'
micromamba create --name socat conda-forge::socat

I tried with and without the .condarc file (containing another channel than conda-forge but through anaconda as your channel_alias is private).

Maybe there are some environment variables set?
To narrow down the problem, can you maybe try to test with an empty .condarc for example and see if it's working at least?
Can you also try to run the commands with -vv to have more logs? (with your .condarc again and an empty one (if it's not working)).
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status::cannot-reproduce The bug could not be reproduced status::user_reply_needed type::bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants