Skip to content

Unable to activate conda or mamba environments #126

Open
@kabilar

Description

@kabilar

Description

  • I might be missing something obvious, but I am unable to activate a conda environment in the terminal on the current ansible deployment (i.e. production) and the DoEKS deployment (i.e. staging). This is the case for both existing conda environments and new environments (e.g. conda create -n test python=3.10).

  • See error stack below. This is even the case after running conda init and then relaunching the terminal to run conda activate base.

    jovyan@jupyter-kabilar:~$ conda env list
    # conda environments:
    #
    base                  *  /opt/conda
    allen                    /opt/conda/envs/allen
    
    jovyan@jupyter-kabilar:~$ conda activate base
    
    CondaError: Run 'conda init' before 'conda activate'
    
    jovyan@jupyter-kabilar:~$ conda init
    no change     /opt/conda/condabin/conda
    no change     /opt/conda/bin/conda
    no change     /opt/conda/bin/conda-env
    no change     /opt/conda/bin/activate
    no change     /opt/conda/bin/deactivate
    no change     /opt/conda/etc/profile.d/conda.sh
    no change     /opt/conda/etc/fish/conf.d/conda.fish
    no change     /opt/conda/shell/condabin/Conda.psm1
    no change     /opt/conda/shell/condabin/conda-hook.ps1
    no change     /opt/conda/lib/python3.11/site-packages/xontrib/conda.xsh
    no change     /opt/conda/etc/profile.d/conda.csh
    no change     /home/jovyan/.bashrc
    No action taken.
    jovyan@jupyter-kabilar:~$ conda activate base
    
    CondaError: Run 'conda init' before 'conda activate'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions