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

Installer fails if $HOME/micromamba exists, even if setting PREFIX #566

Open
1 task done
ndevenish opened this issue Mar 12, 2024 · 2 comments
Open
1 task done
Labels
bug Something isn't working linux

Comments

@ndevenish
Copy link

Solution to issue cannot be found in the documentation.

  • I checked the documentation.

Issue

Freshly downloaded Miniforge. Found on regular machine, but easily reproducible in docker:

FROM ubuntu:latest
RUN apt-get update && apt-get install -y wget
RUN wget https://github.com/conda-forge/miniforge/releases/download/23.11.0-0/Mambaforge-23.11.0-0-Linux-x86_64.sh \
    && chmod +x Mambaforge-23.11.0-0-Linux-x86_64.sh \
    && touch $HOME/micromamba \
    && ./Mambaforge-23.11.0-0-Linux-x86_64.sh -p /opt/mamba -b

Gives:

PREFIX=/opt/mamba
Unpacking payload ...
info     libmamba ****************** Backtrace Start ******************
debug    libmamba Loading configuration
trace    libmamba Compute configurable 'create_base'
trace    libmamba Compute configurable 'no_env'
trace    libmamba Compute configurable 'no_rc'
trace    libmamba Compute configurable 'rc_files'
trace    libmamba Compute configurable 'root_prefix'
critical libmamba Could not use default 'root_prefix': /root/micromamba: File is not a directory.
info     libmamba ****************** Backtrace End ********************

I've removed it so my install can continue, but this surprised me.

Installed packages

na

Environment info

na
@ndevenish ndevenish added the bug Something isn't working label Mar 12, 2024
@hmaarrfk hmaarrfk added the linux label Mar 12, 2024
hmaarrfk added a commit to hmaarrfk/miniforge that referenced this issue Mar 24, 2024
@hmaarrfk
Copy link
Contributor

hmm curious. lets see if updating micromamba fixes things;

#572

once those builds pass, i'll try to add the reproducer to our tests. Seems like a really strange behavior.

@jaimergp
Copy link
Member

We might need to set MAMBA_ROOT_PREFIX in constructor as a workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working linux
Development

No branches or pull requests

3 participants