Comments (10)
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.
from aws-s3-orb.
@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.
from aws-s3-orb.
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.
from aws-s3-orb.
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.
from aws-s3-orb.
Adding this command allows a work around with minimal steps
- run: sudo apt update && sudo apt install python3-venv python-is-python3
from aws-s3-orb.
Looking into this.
from aws-s3-orb.
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
from aws-s3-orb.
My notes:
- So far this doesn't appear to be an Ubuntu 18.04 vs 20.04 issue. Both images don't have a
python
binary because both images ship Python v3 by default, which is called withpython3
. - This orb is using an old version of the AWS CLI orb. In particular, the newer AWS CLI orb versions support the AWS CLI v2, which includes its own version of Python. It doesn't rely on any external version at all, which would solve this issue.
- Alternatively, this issue with
python
not being available can be solved by checking for apt packages, which would then make this orb Debian/Ubuntu specific.
from aws-s3-orb.
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.
from aws-s3-orb.
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?
from aws-s3-orb.
Related Issues (20)
- Update to newer AWS CLI Orb & AWS CLI v2 HOT 2
- Add a Changelog HOT 6
- Windows support HOT 1
- Bump to aws-cli 2.x
- [FEATURE] Support AWS endpoint HOT 1
- Use 1st party badge service
- Question: How to dynamically set the "to" field in /sync HOT 2
- Use AWS_DEFAULT_REGION instead of AWS_REGION by default HOT 1
- Invalid endpoint: https://s3..amazonaws.com at step "S3 Sync" HOT 1
- Add optional override AWS credentials flag HOT 1
- s3 commands can only be executed with the default profile. Need to add --profile flag HOT 1
- 3.1 version not available via orb registry HOT 1
- aws command not found orb 3.1.1 HOT 6
- "Unknown options" error when running copy HOT 8
- Upload to non-amazon S3 HOT 2
- Cannot find a definition for command named copy HOT 3
- error: argument --acl: Invalid choice / Unknown options: --acl HOT 1
- about arguments in aws s3 sync HOT 1
- "The config profile (default) could not be found" in 4.0.0
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-s3-orb.