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
oggm yaml file destroys other conda environments #1571
Comments
Hi @marvande , I'm sorry this happened to you. It is very very unlikely that this has anything to do with us. This is a classic conda file, it should create a new conda environment with the name specified at line 1, and if conda allows a yaml file to delete all other environments there is something very wrong in conda or one of the packages in this list. I am using this file regularly without any issues (in fact, I just tested it by changing line 1 to
A few questions to maybe find out what is going on:
|
Hi thanks for your quick answer :) we checked with Facu, and the environments were not fully deleted but apparently, the path to them was lost. As you can see below when I call conda activate, my old py38 (on the bottom) still exists but conda can't find it anymore when listing the environments.
We also noticed there's no conda_rc file. |
I really can't believe this has anything to do with OGGM. what is unusual in your install is that the envs are at different locations Intuitively, I would think that the command |
Yes I'm not really an expert either so I don't know. But I know that on the cloud it was installed using conda and not mamba so it can't be a mamba problem. Anyway thanks for checking it out :) |
This is possible when you switch from using conda (as you might have for most environments) to using mamba (as the OGGM install instructions recommend). It is not to do with OGGM, but with the setup of conda and mamba. There is a one-line fix in the terminal to tell conda where to look for environments: If needed. you could reset the default path (and keep other location discoverable) with |
Closing this as this is a conda / mamba issue. We will add something to the docs about it. |
Hi, it happened twice to us (once locally and once on a cloud machine) that your yaml file from here destroyed all of our other conda environments when using it to create the oggm environment. That's very unfortunate, and it would be great if you looked into it so that it does not happen to other people. Thanks!
The text was updated successfully, but these errors were encountered: