CircleCI-Public / cimg-python

The Next-Gen CircleCI Python Docker Convenience Image.
https://circleci.com/developer/images/image/cimg/python
MIT License
33 stars 32 forks source link

Pyenv shims broken #184

Closed truh closed 1 year ago

truh commented 1 year ago

The pyenv shims in /home/circleci/.pyenv/shims providing basic python commands like pip, virtualenv, and python in the docker image cimg/python:3.8 (id: cd0773ee5133) can't be executed in some docker environments.

Screen Shot 2023-03-14 at 17 49 05

This problem doesn't occur in all docker environments. For me it occurs when running the docker image on the CircleCI machine image image: ubuntu-2004:202010-01 but it doesn't occur when I try the same on my MacOS Docker Desktop.

BytesGuy commented 1 year ago

@truh This looks like an issue with the machine image, rather than the cimg/python docker image

It is likely an issue with the version of docker in use in the image. The ubuntu-2004:202010-01 image is from 2020 and is therefore pretty old. Using the latest ubuntu-2004:2023.02.1 image works, as demonstrated below:

Screenshot 2023-03-29 at 08 30 53

Please update your machine image version to a newer version and see if this resolves the issue for you.

As this is not an issue with the docker image, I will close this issue. If you experience any further issues with the machine images, please either post on our discuss forum or reach out to support. Thanks!