vscode-dev-containers icon indicating copy to clipboard operation
vscode-dev-containers copied to clipboard

New Python3.10 Image `0.203.6` is broken

Open aguckenber-chwy opened this issue 2 years ago • 3 comments

  • 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:

  1. 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 do poetry 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 avatar Aug 23 '22 16:08 aguckenber-chwy

@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.

joshspicer avatar Aug 23 '22 17:08 joshspicer

From https://python-poetry.org/docs/, it appears the get-poetry.py script is about to be deprecated.

Screen Shot 2022-08-23 at 1 12 02 PM

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.

image

joshspicer avatar Aug 23 '22 17:08 joshspicer

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

aguckenber-chwy avatar Aug 23 '22 17:08 aguckenber-chwy