Closed kenperkins closed 4 years ago
Additional context: From the CircleCI Docs:
CircleCI Base Image
image: cimg/base:2020.01
This is a brand new Ubuntu-based image designed to install the very bare minimum. All of the next-generation convenience images that we will be releasing in the coming weeks are based on this image.
When to use it?
If you need a generic image to run on CircleCI, to use with orbs, or to use as a base for your own custom Docker image, this image is for you.
I did a quick test with the latest next-gen images (cimg
) for node, ruby, rust, openjdk and php: they all are missing python
as an interpreter. I expect this orb to not work an any of these as well, but I didn't test the full workflow.
Adding this command allows a work around with minimal steps
- run: sudo apt update && sudo apt install python3-venv python-is-python3
Looking into this.
FYI. It failed for me on the sync command even though all the aws creds were in place. I was trying it for the first time. Reverted back to 1.0.11
My notes:
python
binary because both images ship Python v3 by default, which is called with python3
.python
not being available can be solved by checking for apt packages, which would then make this orb Debian/Ubuntu specific.FWIW, We were previously using the 16.04 Machine Executor for much of our work due to the inability to mount volumes in the docker executor, but we've been moving away from that, partly because of the ancientness of 16.04, so that was how we came across this. I do think the orb should be resilient against this kind of problem however, having to push that responsibility to the user makes using the orb less appealing.
I do think the orb should be resilient against this kind of problem however, having to push that responsibility to the user makes using the orb less appealing.
I completely agree.
@gmemstr I can implement a solution but any opinion on which one is better?
I'd be in favour of moving to the newer version of the AWS CLI orb to leverage v2, I'm wary of implementing a fix that only addresses Debian/Ubuntu based images.
@kenperkins A fix was published in v1.1.1. In the future, this orb will use the AWS CLI v2 which includes its own Python and avoids most of this. For now, the standard installation via Pip occurs, even on a non-Python image.
Orb Version 1.0.16
If you use any CircleCI provided image (non-python) based on 20.04 Ubuntu, for example
cimg/go:1.14
, this Orb will fail to execute as Ubuntu 20.04 no longer haspython
in the path, onlypython3
. This does not manifest withcimg/python:3.6
but the orb's aren't much use if I have to do a bunch of os preparation first.To Reproduce Run this job:
Error Message:
Expected behavior Orb would run after installing.