Closed zaneselvans closed 5 months ago
Please remove the Anaconda defaults
channels from the ~/.condarc
and all the environment.yml
files as the behavior is not guaranteed and therefore this is not recommended (cf. https://mamba.readthedocs.io/en/latest/user_guide/troubleshooting.html#using-the-defaults-channels).
Can you try again after removing them and report if the bug is still there?
Thanks!
Thanks for the suggestion. I've removed the defaults
channel from both my .condarc
and the user-environment.yml
file, and I am still getting the Invalid MatchSpec error:
$ mamba env update --file environments/user-environment.yml
Channels:
- conda-forge
Platform: osx-arm64
Collecting package metadata (repodata.json): done
Solving environment: failed
InvalidMatchSpec: Invalid spec 'conda-forge/noarch::addfips==0.4.0=pyhd8ed1ab_1[md5=cb434d01bfd3ba57c54a423f3773ffda]':
Libmamba only supports a subset of the MatchSpec interface for now.
You can only use ('name', 'version', 'build', 'channel', 'subdir'), but you tried to use ('md5',).
Updated file contents:
channel_priority: strict
channels:
- conda-forge
auto_activate_base: false
default_python: '3.11'
---
channels:
- conda-forge
dependencies:
- jupyterlab_vim>=4.1
- kaggle>=1.6
- sqlite-utils>=3.36
- jupyter-lsp
- jupyterlab-lsp
- ruff-lsp>=0.0.53
mamba version : 1.5.7
active environment : pudl-dev
active env location : /Users/zane/miniforge3/envs/pudl-dev
shell level : 1
user config file : /Users/zane/.condarc
populated config files : /Users/zane/miniforge3/.condarc
/Users/zane/.condarc
conda version : 24.1.2
conda-build version : not installed
python version : 3.10.13.final.0
solver : libmamba (default)
virtual packages : __archspec=1=m1
__conda=24.1.2=0
__osx=14.4=0
__unix=0=0
base environment : /Users/zane/miniforge3 (writable)
conda av data dir : /Users/zane/miniforge3/etc/conda
conda av metadata url : None
channel URLs : https://conda.anaconda.org/conda-forge/osx-arm64
https://conda.anaconda.org/conda-forge/noarch
package cache : /Users/zane/miniforge3/pkgs
/Users/zane/.conda/pkgs
envs directories : /Users/zane/miniforge3/envs
/Users/zane/.conda/envs
platform : osx-arm64
user-agent : conda/24.1.2 requests/2.31.0 CPython/3.10.13 Darwin/23.4.0 OSX/14.4 solver/libmamba conda-libmamba-solver/23.12.0 libmambapy/1.5.7
UID:GID : 1000:20
netrc file : None
offline mode : False
InvalidMatchSpec: Invalid spec 'conda-forge/noarch::addfips==0.4.0=pyhd8ed1ab_1[md5=cb434d01bfd3ba57c54a423f3773ffda]': Libmamba only supports a subset of the MatchSpec interface for now. You can only use ('name', 'version', 'build', 'channel', 'subdir'), but you tried to use ('md5',).
That kind of message comes from conda-libmamba-solver
; we fixed in 24.1.0 but you have 23.12.0. Try updating it first?
Oh weird, I wonder why that library wasn't getting updated automatically. Will update!
Edit: This seems to have fixed the issue described above. Still not sure why the conda-libmamba-solver
library wasn't getting updated, but I did it manually and all is well now.
Troubleshooting docs
Anaconda default channels
How did you install Mamba?
Mambaforge or latest Miniforge
Search tried in issue tracker
I searched for md5 and MatchSpec
Latest version of Mamba
Tried in Conda?
I have this problem with Conda as well, without using Mamba
Describe your issue
I'm attempting to install additional packages into an environment based on a
conda-lock
file using this command:Which results in this error:
I get the same error when I try to use
conda
to do the same thing:The contents of
environments/user-environment.yml
are:The same commands work fine when I downgrate to mamba v1.5.6 and conda v23.x, so it seems like some kind of regression.
addfips
is just the first normal package to appear in the lockfile. I don't think there's anything special about it. Below is the beginning ofconda-lock.yml
includingaddfips
specs. The full lockfile was too large to include in a comment.mamba info / micromamba info
Logs
environment.yml
No response
~/.condarc