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

mamba list --full-name seems to be missing in v2.0.0 (unintended breaking change?) #3477

Closed
3 tasks done
mirekphd opened this issue Sep 27, 2024 · 1 comment
Closed
3 tasks done

Comments

@mirekphd
Copy link

mirekphd commented Sep 27, 2024

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

Yes (--full-name)

Latest version of Mamba

  • My problem is not solved with the latest version

Tried in Conda?

No

Describe your issue

mamba list --full-name seems to be missing in mamba v2.0.0, which breaks rather popular builds such as this:
https://github.com/jupyter/docker-stacks/blob/main/images/docker-stacks-foundation/Dockerfile#L132

A workaround is to omit this version when installing mamba (here: with micromamba), like this:

    /tmp/bin/micromamba install \
        --root-prefix="${CONDA_DIR}" \
        --prefix="${CONDA_DIR}" \
        --yes \
        # excluding mamba==2.0.0 due to a breaking change causing these errors:
        # “The following argument was not expected: --full-name” 
        mamba"!=2.0.0" \

mamba info / micromamba info

Can't install it, so can't run mamba info.

Logs

------
  > [15/47] RUN set -x &&     cd /tmp &&     wget --progress=dot:giga -O - "https://micro.mamba.pm/api/micromamba/linux-64/latest" | tar -xvj bin/micromamba &&     ls -lant bin/micromamba &&     /tmp/bin/micromamba install         --root-prefix="/opt/conda"         --prefix="/opt/conda"         --yes         mamba         python="3.11" &&         rm -rf /tmp/bin/ &&     mamba --version &&     mamba list --full-name 'python' | tail -1 | tr -s ' ' | cut -d ' ' -f 1,2 | sed 's/\.[^.]*$/.*/' >> "/opt/conda/conda-meta/pinned" &&     mamba clean --all -f -y &&     fix-permissions "/opt/conda" &&     fix-permissions "/home/jovyan":
 17.65 + rm -rf /tmp/bin/
 17.65 + mamba --version
 17.66 2.0.0
 17.67 + mamba list --full-name python
 17.67 + tail -1
 17.67 + tr -s ' '
 17.67 + cut -d ' ' -f 1,2
 17.67 + sed 's/\.[^.]*$/.*/'
 17.68 The following argument was not expected: --full-name
 17.68 Run with --help for more information.
 ------

environment.yml

Not used (docker container).

~/.condarc

Not used (docker container).

@JohanMabille
Copy link
Member

JohanMabille commented Sep 30, 2024

Fixed in #3485

This might not be enough to fix docker-stack-foundation builds because of #3480

NB: the channel output has been fixed in #3486, that should be enough for docker-stack-foundation builds; however, the base_url output is still mangled.

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