I couldn't find any better place to post the issue and couldn't find any other Ubuntu snap related issue in this repo. The Problem is, the snap version of the aws-cli can't use autocomplete.
When i follow the instructions on Ubuntu 16.04.3 i get an error:
$ sudo snap install aws-cli --classic
aws-cli 1.11.160 from 'aws' installed
$ complete -C '/snap/aws-cli/29/bin/aws_completer' aws
# aws <Tab press> results in
$ aws Traceback (most recent call last):
File "/snap/aws-cli/29/bin/aws_completer", line 18, in <module>
import awscli.completer
ImportError: No module named 'awscli'
The bash completion tries to use the system python instead of the snap build in python.
Therefore it can't found the awscli module. This can be fixed by installing it via pip.
But then i don't need the snap anymore. The snap was covered at insights.ubuntu in june with Author Amazon Web Services. Maybe you can help me.
Thank you for the efforts.
Unfortunately we're not going to be able to help with this, we don't ship that Snap and I'm not entirely sure where it's even coming from. My best suggestion is to try to determine who is actually publishing that Snap and following up with them.
Sorry!
Same issue here, as the snap info show the author/publisher as aws, is that right? Or should we ask to another place/person?
darkhole@devolo:~$ snap info aws-cli
name: aws-cli
summary: Universal Command Line Interface for Amazon Web Services
publisher: aws
description: |
Universal Command Line Interface for Amazon Web Services
snap-id: CRrJViJiSuDcCkU31G0xpNRVNaj4P960
commands:
- aws-cli.aws
tracking: stable
installed: 1.12.1 (41) 14MB classic
refreshed: 2017-11-26 13:43:16 -0500 -05
channels:
stable: 1.12.1 (41) 14MB classic
candidate: 1.12.1 (41) 14MB classic
beta: 1.12.1 (41) 14MB classic
edge: 1.12.1 (41) 14MB classic
The web page for this snap (of course) also claims that the developer is AWS
I found this GitHub repo: https://github.com/CanonicalLtd/aws-snap (awscli
snap) but it does not match the configuration of the aws-cli
snap.
This post implies that it was published by Canonical: https://plus.google.com/+Ubuntu/posts/KDcATLCqRqN
Maybe @popey can help us with this. I know that this is not a AWS issue, but somebody should build it and maintain it.
The aws-cli is indeed owned by the AWS team, not Canonical. The registered email address for the account which uploaded the snap is within the Amazon domain. The post on G+ is just our internal advocacy team promoting interesting snaps that are in the store. Do let me know if there's anything else I can help with.
This is still an issue - just bubbling it up again.
For what it's worth, you can make bash completion for the snap work by using this in your .bashrc
:
complete -C 'SNAP=/snap/aws-cli/current /snap/aws-cli/current/usr/bin/python3 /snap/aws-cli/current/bin/aws_completer' aws
The completion is rather slow for me, but I believe this is becasue the Python script is slow to load, and not due to the snap packaging.