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
My problem is not solved in the Troubleshooting docs
How did you install Mamba?
Micromamba
Search tried in issue tracker
micromamba update lock file
Latest version of Mamba
My problem is not solved with the latest version
Tried in Conda?
Not applicable
Describe your issue
Running micromamba update --name test_env --file conda-lock.yml does not update libraries of the environment.
Running the command will display a "Nothing to do" message even if conda-lock.yml contains new and updated packages.
I provide the following examples to reproduce the error:
First I create two environment files (named env_0.yml and env_1.yml). Note: that env_1.yml contains both a new package (tqdm) and an updated version of click.
Create the initial environment with the initial lock file (conda0-lock.yml) micromamba create --name test_env --file conda0-lock.yml
Now update the environment using the "updated" lock file (conda1-lock.yml) micromamba update --name test_env --file conda1-lock.yml --prune
In the final step, I expect the environment to be updated, because the updated lock file contains both a new package tqdm and a package update click=8.0.0 --> click=8.0.4, but nothing happens. The environment is not updated and a "nothing to do" is printed in the terminal.
The output when running micromamba update --name test_env --file conda1-lock.yml --prune
conda-forge/noarch 12.2MB @ 6.4MB/s 2.0s
conda-forge/linux-64 29.9MB @ 10.3MB/s 3.0s
Pinned packages:
- python 3.9.*
Transaction
Prefix: /home/petemachine/micromamba/envs/test_env
Nothing to do
Transaction starting
Transaction finished
To activate this environment, use:
micromamba activate test_env
Or to execute a single commandin this environment, use:
micromamba run -n test_env mycommand
environment.yml
No response
~/.condarc
No response
The text was updated successfully, but these errors were encountered:
# Using a regular dependencies file works as expected.
micromamba update --name test_env --file env_1.yml --prune # THIS WORKS
# Installing the environment from scratch using a lock file works as expected
micromamba create --name test_env --file conda1-lock.yml # THIS WORKS
I think there are similar issues already reported. IIRC the underlying problem is that update does not automatically update to the latest version if all constraints are already satisfied
Are you considering this issue: #1455 ?
You mention a similar issue in a comment #1455 (comment) . However, I believe it to be a different issue. According to what I have tested a regular yml file works, while a lockfile does not.
# Using a regular dependencies file works as expected.
micromamba update --name test_env --file env_1.yml --prune # THIS WORKS
# Using a lock file does not work
micromamba update --name test_env --file conda1-lock.yml --prune # THIS IS NOT WORKING
Troubleshooting docs
How did you install Mamba?
Micromamba
Search tried in issue tracker
micromamba update lock file
Latest version of Mamba
Tried in Conda?
Not applicable
Describe your issue
Running
micromamba update --name test_env --file conda-lock.yml
does not update libraries of the environment.Running the command will display a "Nothing to do" message even if
conda-lock.yml
contains new and updated packages.I provide the following examples to reproduce the error:
env_0.yml
andenv_1.yml
).Note: that
env_1.yml
contains both a new package (tqdm
) and an updated version ofclick
.conda0-lock.yml
andconda1-lock.yml
)conda0-lock.yml
)micromamba create --name test_env --file conda0-lock.yml
conda1-lock.yml
)micromamba update --name test_env --file conda1-lock.yml --prune
In the final step, I expect the environment to be updated, because the updated lock file contains both a new package
tqdm
and a package updateclick=8.0.0 --> click=8.0.4
, but nothing happens. The environment is not updated and a "nothing to do" is printed in the terminal.mamba info / micromamba info
Logs
The output when running
micromamba update --name test_env --file conda1-lock.yml --prune
environment.yml
No response
~/.condarc
No response
The text was updated successfully, but these errors were encountered: