You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
source: open /opt/conda/bin/activate: no such file or directory
critical libmamba Shell not initialized
Output
'micromamba' is running as a subprocess and can't modify the parent shell.
Thus you must initialize your shell before using activate and deactivate.
To initialize the current shell, run:
$ eval "$(micromamba shell hook --shell )"
and then activate or deactivate with:
$ micromamba activate
To automatically initialize all future () shells, run:
$ micromamba shell init --shell --root-prefix=~/micromamba
If your shell was already initialized, reinitialize your shell with:
$ micromamba shell reinit --shell
Otherwise, this may be an issue. In the meantime you can run commands. See:
$ micromamba run --help
Supported shells are {bash, zsh, csh, xonsh, cmd.exe, powershell, fish}.
The text was updated successfully, but these errors were encountered:
After banging my head against the wall for 2 days, I figured out a way to successfully activate the base environment for singularity exec and singularity shell.
Bootstrap: docker
From: mambaorg/micromamba:1.5.8
%files
# Import yml into /opt
./environment.yml /opt
%environment
export PATH="${MAMBA_ROOT_PREFIX}/bin:$PATH"
%post -c /bin/bash
# Install into base environment from input yml
micromamba install -y -n base -f /opt/environment.yml && \
micromamba clean --all --yes
%runscript
#!/bin/bash
# Activate base environment
source /usr/local/bin/_activate_current_env.sh
_activate_current_env.sh is included within the micromamba-docker image (see here).
I have problems activating the environment by default within a container.
Is micromamba using a different installation directory than conda?
Apptainer.def
Apptainer command
Error
Output
The text was updated successfully, but these errors were encountered: