Azure / Azure/azureml-examples
Codespaces build fails with unresolvable conda environment | anaconda-anon-usage requires python >=3.8
- Dominant language
- Jupyter Notebook
- Stars
- 2k
- Forks
- 1.7k
- Avg merge
- 18h 18m
- Merged PRs (30d)
- 2
Description
### Operating System
Linux
### Version Information
This is a Codespaces Dockerfile issue
### Steps to reproduce
1. Open project in Codespaces
2. Wait for container to build
### Expected behavior
1. Open project in Codespaces
2. Wait for container to build
3. Build succeeds
### Actual behavior
1. Open project in Codespaces
2. Wait for container to build
3. Build fails with unresolvable conda environment `anaconda-anon-usage requires python >=3.8`
### Addition information
The excerpt from the log showing the failure
```
#12 0.990 Collecting package metadata (repodata.json): ...working... 2024-07-25 15:39:59.190Z: done
#12 3.711 Solving environment: ...working... 2024-07-25 15:40:07.310Z: failed
2024-07-25 15:40:07.448Z: #12 11.83
#12 11.83 LibMambaUnsatisfiableError: Encountered problems while solving:
#12 11.83 - package anaconda-anon-usage-0.4.0-py310hc06175d_0 requires python >=3.10,<3.11.0a0, but none of the providers can be installed
#12 11.83
#12 11.83 Could not solve for environment specs
#12 11.83 The following packages are incompatible
#12 11.83 ├─ anaconda-anon-usage is installable with the potential options
#12 11.83 │ ├─ anaconda-anon-usage [0.4.3|0.4.4] would require
#12 11.83 │ │ └─ python >=3.12,<3.13.0a0 , which can be installed;
#12 11.83 │ ├─ anaconda-anon-usage [0.2.0|0.3.0|...|0.4.4] would require
#12 11.83 │ │ └─ python >=3.10,<3.11.0a0 , which can be installed;
2024-07-25 15:40:07.449Z: #12 11.83 │ ├─ anaconda-anon-usage [0.2.0|0.3.0|...|0.4.4] would require
#12 11.83 │ │ └─ python >=3.11,<3.12.0a0 , which can be installed;
#12 11.83 │ ├─ anaconda-anon-usage [0.2.0|0.3.0|...|0.4.4] would require
#12 11.83 │ │ └─ python >=3.8,<3.9.0a0 , which can be installed;
#12 11.83 │ └─ anaconda-anon-usage [0.2.0|0.3.0|...|0.4.4] would require
#12 11.83 │ └─ python >=3.9,<3.10.0a0 , which can be installed;
#12 11.83 └─ python 3.7** is not installable because there are no viable options
#12 11.83 ├─ python [3.7.0|3.7.1|...|3.7.9] conflicts with any installable versions previously reported;
#12 11.83 └─ python 3.7.1 would require
#12 11.83 └─ openssl >=1.1.1,<1.1.2.0a0 , which does not exist (perhaps a missing channel).
#12 11.83
#12 ERROR: process "/bin/sh -c conda install -c anaconda -y python=3.7" did not complete successfully: exit code: 1
```
Here's the full log [creation.log](https://github.com/user-attachments/files/16380541/creation.log)
Contributor guide
Research direction
Locate the Codespaces Dockerfile and inspect the conda install command shown in the failure log, then reproduce the container build. Done means the environment resolves and the Codespaces container builds successfully without the anaconda-anon-usage/Python conflict.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- anaconda, docker, python
- Domain
- build-system, devops
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100