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 activate env inside apptainer #66

Open
kpetrov opened this issue Nov 15, 2024 · 0 comments
Open

micromamba fails to activate env inside apptainer #66

kpetrov opened this issue Nov 15, 2024 · 0 comments

Comments

@kpetrov
Copy link

kpetrov commented Nov 15, 2024

Hello,

I am trying to run micromamba inside a container (v2.0.2). Standard procedure works well outside the container on my RHEL 8.6.

complete -o default -F _umamba_bash_completions micromamba
fi

  • basename /usr/local/bin/micromamba
  • __exe_name=micromamba
  • __exe_name=micromamba
  • [[ micromamba == micromamba ]]
    /.post.script: 55: eval: [[: not found
  • [[ micromamba == mamba ]]
    /.post.script: 57: eval: [[: not found
  • echo Error unknow MAMBA_EXE: "/usr/local/bin/micromamba", filename must be mamba or micromamba
    Error unknow MAMBA_EXE: "/usr/local/bin/micromamba", filename must be mamba or micromamba
  • [ -z ]
  • export CONDA_SHLVL=0
  • export PATH=/opt/micromamba/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
  • [ -z x ]
    /.post.script: 88: eval: Syntax error: "(" unexpected (expecting "}")
    FATAL: While performing build: while running engine: while running %post section: exit status 2

this is my apptainer code (based off ubuntu 22.04):

export MAMBA_ROOT_PREFIX=/opt/micromamba
curl -Ls https://micro.mamba.pm/api/micromamba/linux-64/latest | tar -xvj -C /usr/local/bin --strip-components=1 bin/micromamba
eval "$(micromamba shell hook -s bash)"
# Create base environment
micromamba create -n base -c conda-forge python=3.11
# Activate
micromamba activate

Am I doing it wrong it is it an actual problem?

thanks in advance!

k.

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

1 participant