devcontainers / devcontainers/features
Python 3.11 devcontainer fails to build with "error: invalid command 'bdist_wheel'"
- Lingua principale
- Shell
- Stelle
- 1.5k
- Fork
- 621
- Merge medio
- 6g 53m
- PR unite (30g)
- 9
Descrizione
The python 3.11 devcontainer fails to build.
I've included the relevant lines from the devcontainer.json and log file. When I set the python version to 3.11 and image to python:1-3.11-bullseye the build fails with an error message "error: invalid command 'bdist_wheel'" . When I update the devcontainer to 3.12 using either the 3.11 or 3.12 images, the build is successful. The specific 3.11 version being built is 3.11.8.
-----
devcontainer.json (relevant lines)
```
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/python:1-3.11-bullseye",
// "image": "mcr.microsoft.com/devcontainers/python:1-3.12-bookworm",
// Features to add to the dev container. More info: https://containers.dev/features.
"features": {
"ghcr.io/devcontainers/features/python:1": {
// "version": "3.12"
"version": "3.11"
// "installTools": true,
// "toolsToInstall": "pytest,pylint"
}
},
```
------
devcontainer log file: (shortend, but I can provide the complete log if necessary)
.....
Requirement already satisfied: pip in /usr/local/python/3.11.8/lib/python3.11/site-packages (24.0)
flake8 already installed. Skipping.
autopep8 already installed. Skipping.
black already installed. Skipping.
yapf already installed. Skipping.
mypy already installed. Skipping.
pydocstyle already installed. Skipping.
pycodestyle already installed. Skipping.
bandit already installed. Skipping.
pipenv already installed. Skipping.
virtualenv already installed. Skipping.
pytest already installed. Skipping.
pylint already installed. Skipping.
Collecting setuptools==65.5.1
Downloading setuptools-65.5.1.tar.gz (2.6 MB)
ââââââââââââââââââââââââââââââââââââââââ 2.6/2.6 MB 11.7 MB/s eta 0:00:00
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Installing backend dependencies: started
Installing backend dependencies: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Saved ./setuptools-65.5.1.tar.gz
Successfully downloaded setuptools
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: invalid command 'bdist_wheel'
ERROR: Feature "Python" (ghcr.io/devcontainers/features/python) failed to install! Look at the documentation at https://github.com/devcontainers/features/tree/main/src/python for help troubleshooting this error.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Riproduci il malfunzionamento utilizzando le impostazioni devcontainer.json segnalate: l’immagine Python 3.11.8 e la feature ghcr.io/devcontainers/features/python. Inizia con il log di build abbreviato e la documentazione della feature Python collegati nell’issue, quindi confronta le configurazioni 3.11 e 3.12. Il lavoro è completato quando il devcontainer Python 3.11 viene compilato correttamente senza l’errore bdist_wheel.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- docker, python
- Ambito
- devops, infrastructure
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100