rapidsai / dask-build-environment

Build environments for various dask related projects on gpuCI
4 stars 11 forks source link

Update to `conda>=4.14` to resolve mamba issues #57

Closed charlesbluca closed 1 year ago

charlesbluca commented 1 year ago

Looks like mamba>=1.3 allows incompatible conda versions to co-exist in the same environment, which has been raising errors during the builds:

15:02:22 Traceback (most recent call last):
15:02:22   File "/opt/conda/bin/mamba", line 7, in <module>
15:02:22     from mamba.mamba import main
15:02:22   File "/opt/conda/lib/python3.9/site-packages/mamba/mamba.py", line 51, in <module>
15:02:22     from mamba import repoquery as repoquery_api
15:02:22   File "/opt/conda/lib/python3.9/site-packages/mamba/repoquery.py", line 9, in <module>
15:02:22     from mamba.utils import init_api_context, load_channels
15:02:22   File "/opt/conda/lib/python3.9/site-packages/mamba/utils.py", line 17, in <module>
15:02:22     from conda.core.index import _supplement_index_with_system, check_allowlist
15:02:22 ImportError: cannot import name 'check_allowlist' from 'conda.core.index' (/opt/conda/lib/python3.9/site-packages/conda/core/index.py)

Bumping to conda>=4.14 (when check_allowlist was introduced) should resolve these issues, xref https://github.com/conda-forge/mamba-feedstock/issues/172