-
Notifications
You must be signed in to change notification settings - Fork 359
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
After updating to conda 24.9.1, mamba doesn't work with ImportError #3520
Comments
Which version of |
My latest mamba version is 2.0.1 |
|
@yangr9 Did you manage to make it work? |
For me this fixes the problem. But note that the miniforge distribution (as recommended in the docs) is still on mamba version 1.5.9 (which is compatible with conda 24.9.1). So if you want the shiny new mamba 2.0.1, you'll have to wait for miniforge to update or get it elsewhere. |
Thanks for your suggestions. I used "~ conda search mamba" to check the version of mamba, which shows the latest version of my mamba is 2.0.1. I hope this is a correct way to check the mamba version... |
To complete Hind's comment (i.e. #3520 (comment)), the update is blocked by #3503. See #3503 (comment) for a temporary solution to update to mamba 2.0. |
Troubleshooting docs
Anaconda default channels
How did you install Mamba?
Mambaforge or latest Miniforge
Search tried in issue tracker
No relevant issues
Latest version of Mamba
Tried in Conda?
I do not have this problem with Conda, just with Mamba
Describe your issue
After updating to conda 24.9.1, mamba doesn't work with ImportError. The specific errors are as follows:
~ mamba update --all
Traceback (most recent call last):
File "/Users/.../miniforge3/bin/mamba", line 7, in
from mamba.mamba import main
File "/Users/.../miniforge3/lib/python3.10/site-packages/mamba/mamba.py", line 18, in
from conda.cli.main import generate_parser, init_loggers
ImportError: cannot import name 'generate_parser' from 'conda.cli.main' (/Users/.../miniforge3/lib/python3.10/site-packages/conda/cli/main.py)
I tried to check Conda Release notes, it seems there are deprecations that may cause the above errors:
Remove conda.cli.main.generate_parser. Use conda.cli.conda_argparse.generate_parser instead. (#14077)
Remove conda.cli.main.init_loggers(context) (#14077)
So how to fix this? Thx
mamba info / micromamba info
Logs
No response
environment.yml
No response
~/.condarc
No response
The text was updated successfully, but these errors were encountered: