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 installation issue #2608

Open
rswamina opened this issue Dec 4, 2024 · 6 comments
Open

Mamba installation issue #2608

rswamina opened this issue Dec 4, 2024 · 6 comments
Labels
installation Installation problem

Comments

@rswamina
Copy link

rswamina commented Dec 4, 2024

I am trying to update mamba to install a new development installation of ESMvalTool and ESMValCore under my home directory on JASMIN. The first step in that process was to update mamba.

When I execute

>mamba update --name base mamba conda

I get the following error message

Traceback (most recent call last):
  File "/home/users/ranjinis/miniforge3/condabin/mamba", line 7, in <module>
    from mamba.mamba import main
  File "/home/users/ranjinis/miniforge3/lib/python3.10/site-packages/mamba/mamba.py", line 18, in <module>
    from conda.cli.main import generate_parser, init_loggers
ImportError: cannot import name 'generate_parser' from 'conda.cli.main' (/home/users/ranjinis/miniforge3/lib/python3.10/site-packages/conda/cli/main.py)

I see that it is related to the GitHub issue here but I don't know how to follow their suggestion of removing all mamba/conda installations.
The current version of conda ia have is

>conda --version
conda 24.9.2

@valeriupredoi - Any suggestions?

@valeriupredoi
Copy link
Contributor

best bet is to install with the latest miniconda installer then install mamba in (base) with conda install -c conda-forge mamba; if you'd like to keep the old infrastructure, but just update conda/mamba then run conda update -n base conda mamba (note the use of conda exceutable, not mamba) 🍺

@valeriupredoi
Copy link
Contributor

doing that gives me:

valeriu@valeriu-PORTEGE-Z30-C:~$ mamba -V
mamba 1.5.11
conda 24.11.0

be careful with mamba>=2 - there are some compat issues with it

@valeriupredoi
Copy link
Contributor

valeriupredoi commented Dec 4, 2024

also, I'd really upgrade from Python 3.10 to 3.11 or 3.12 if I was you 😁 - the parser issue I think it's related to the new Configparser in Python 3.12 so it tries to update to a Python 3.12-compatible version in a Python 3.10 env

@rswamina
Copy link
Author

rswamina commented Dec 4, 2024

Thanks..let me try these.

@valeriupredoi valeriupredoi added the installation Installation problem label Dec 4, 2024
@bouweandela
Copy link
Member

bouweandela commented Dec 5, 2024

I don't know how to follow their suggestion of removing all mamba/conda installations.

Run rm -r /home/users/ranjinis/miniforge3 and then start fresh using these instructions: https://docs.esmvaltool.org/en/latest/quickstart/installation.html#mamba-conda-installation. You may want to check your ~/.bashrc file for any remaining mentions of the mamba/conda installation.

@valeriupredoi
Copy link
Contributor

any luck on this @rswamina ? 🍺

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
installation Installation problem
Projects
None yet
Development

No branches or pull requests

3 participants