vscode-dev-containers
vscode-dev-containers copied to clipboard
New Python3.10 Image `0.203.6` is broken
- VSCode Version:
1.70.2
- Local OS Version:
Darwin arm64 21.4.0
- Reproduces in: Remote - Containers
- Name of Dev Container Definition with Issue: see this line
Steps to Reproduce:
- A newer dev-container image for Python3.10 seems to have been published that our container started using and the local builds all failed. We add
poetry
to the image via the following but when inside the container, if we dopoetry install
it all breaks. Also ZSH becomes buggy. Backspacing in ZSH now acts as if hitting space bar instead. Reverting the image makes everything work as expected.
# =================================================================================================
# Install Poetry and Configure Poetry
RUN curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -
ENV PATH="~/.poetry/bin:$PATH"
# We will use poetry to install global requirements since we are inside a container anyway
ENV POETRY_VIRTUALENVS_CREATE="true"
ENV POETRY_CACHE_DIR="/workspace/.devcontainer/poetry-cache"
# =================================================================================================
@aguckenber-chwy - Do you have any of the associated logs illustrating what is not working for you? I am not familiar with this particular python tool, but I will give it a try to reproduce.
From https://python-poetry.org/docs/, it appears the get-poetry.py
script is about to be deprecated.
The docs now suggest using this install script piped to python3
(should be fine to pipe to python
in our images though).
curl -sSL https://install.python-poetry.org | python3 -
This seems to install for me. I don't have a great example for using poetry install
but will try with a further example if this new install script doesn't do it for you.

Cool that fixed poetry. I missed that thank you very much. One thing I still notice with this new image though is ZSH appears to be messed up. Backspaces appears to be spaces (I am assuming its just special characters). This is my using backspace (not space) in the container.
https://user-images.githubusercontent.com/102978950/186226272-2455b8be-ed42-474d-a229-49a52560fe40.mov