-
Notifications
You must be signed in to change notification settings - Fork 778
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support AWS CLI v2 #238
Comments
Same problem for me on macOS and with
If I use the
|
Is this project abandoned? |
Even I am facing the same issue. |
Do we have plans to maintain this? I was relying holistically on this until cli 2.0 happened 😐 |
Any idea how to fix it? Run any command got this error. $ aws-shell 'Namespace' object has no attribute 'cli_binary_format' |
Encountered the same problem. I am running WSL 18.04 I solved it by upgrading both the pip install -U awscli aws-shell Hope this can be helpful for other people. |
It fixed the issues. Thanks Xinbin! |
That's perhaps because |
Did not work for me. |
I ran into this same issue, unfortunately, and as stated by someone else it appears as though installing both the |
Did not work also on Win10 Arch and awscli v2. Anyone who have the same problem |
I am experiencing the same. By the look at this repository, all development was done in mid 2016 with some contributions in 2018, so I guess it is safe to assume that this project died (unless someone picks it up) |
Managed to get
Suspect this is related to AWS CLI version 2 |
I am also facing the same issue. I am unable to perform any actions. I always get 'Namespace' object has no attribute 'cli_binary_format' I am using:
|
This worked for me, thanks a lot. |
I have tried but it does not work. AWS CLi reverts back to 1.x version
|
Hi Guys, After reading the information from this thread, I guess the root cause is awscli version conflict; aws-shell believes that you are using awscli version 1 that cli_binary_format is not supported; your system has both 2 versions and the command is executed with awscli version 2 which cli_binary_format could be mandatory. The solution is cleaning up all version of awscli and aws-shell in your system, then reinstall them. That solved my issue. Good luck, |
What are your installation commands for re-installing. Still Ihave no luck |
I have same problem on macOS v10.15.6. [ chusiang@catalina ~ ] - 17:20
$ brew install awscli
[ chusiang@catalina ~ ] - 17:39
$ aws --version
aws-cli/2.0.33 Python/3.8.5 Darwin/19.5.0 botocore/2.0.0dev37 I will use the [ chusiang@catalina ~ ] - 17:49
$ docker run -it --rm -v $HOME/.aws:/root/.aws pahud/aws-shell
First run, creating autocomplete index...
Creating doc index in the background. It will be a few minutes before all documentation is available.
aws> s3 ls
2020-06-27 15:15:25 fooooooo
aws> By the way, I also add one alias to disguise the
Thanks for @pahud . |
Is this project abandoned or not? |
Thanks @chusiang. Since I'm using aws-vault to store my Access Keys/Secret Keys instead of ~/.aws/credentials, I improved your alias by passing AWS_* environment variables to the container, and turned it into a wrapper script: #!/bin/bash
function cleanup() {
rm "${env_file}"
}
trap cleanup EXIT
env_file=$(mktemp)
env | grep ^AWS_ > "${env_file}"
docker run -it --rm -v $HOME/.aws:/root/.aws --env-file="${env_file}" pahud/aws-shell |
I fixed in Win10 by selecting in my PATH the AWS CLI v1.x. C:\Program Files\Amazon\AWSCLI AWS CLI V2.x uses C:\Program Files\AWSCLIV2 So how do we get support for AWS CLI V2.x? |
you can fix with installing awscli@1 and changing your path:
(change zshrc to whatever your shell is...) |
Hi Guys, Please allow me to elaborate a bit what happened in macOS environment.
tips: execute sudo find / -name python to see where they are. Gook luck, |
still hopeful that in the meantime based other examples given here I too have resorted to just using a docker container for
|
AWS have added auto-prompt mode to CLI v2, so aws-shell is not required unless you still need v1. |
same issue windows keeps reverting cli back to v1 |
I am happy with v2's auto-prompt mode as described at aws/aws-cli#5664
|
tagging to follow this as well - enjoyed using aws-shell more than awscli, ... however work requires cli v2. |
@angryjenkins You don't need to comment in order to be informed about updates to an issue: just hit the subscribe button. |
remove awscli v2 and use this command "pip install -U awscli aws-shell" it will work |
Anyone landing here, I was able to fix it for myself (OSX Catalina 10.15.7) by force installing awscli@1 in with homebrew
Might not be ideal, but it at least works today |
Can we close this issue now @nathaniel-holder? If it resolved the issue? cc @awslabs |
Fine with me @imoisharma, if it's true that CLI v2 supports aws-shell features. I don't have the bandwidth to verify that right now. |
Hi there! I've executed the steps proposed by @randonia but for me, the issue persists 😞 Here are my steps (running on OSX Big Sur 11.5): # previously installed with just "brew install awscli
> aws --version
aws-cli/2.2.28 Python/3.9.6 Darwin/20.6.0 source/x86_64 prompt/off
> aws-shell
aws> s3 ls
'Namespace' object has no attribute 'cli_binary_format'
^D
> brew install awscli@1
...
==> Summary
🍺 /usr/local/Cellar/awscli@1/1.20.10: 11,559 files, 79.8MB
# still the same aws version as @randonia pointed out
> aws --version
aws-cli/2.2.28 Python/3.9.6 Darwin/20.6.0 source/x86_64 prompt/off
# But when doing an s3 ls the shell crashes
> aws-shell
aws> s3 ls
'Namespace' object has no attribute 'cli_binary_format'
# With the aws command, the `s3 ls` works correctly:
> aws s3 ls
(list of buckets...) |
This issue persists |
@nathaniel-holder The AWS CLI v2 makes AWS Shell features available through its auto-prompt feature. We have the relationship between the AWS Shell and auto-prompt mode detailed here: #253. The auto-prompt functionality is fairly well illustrated in this issue: aws/aws-cli#5664 and in a re:Invent talk I presented that covered it. While auto-prompt mode has some features that the AWS Shell does not (e.g. output panel), the most notable gap in functionality in auto-prompt mode when compared to the AWS Shell is that it does not offer a persistent shell for running CLI commands. We have a GitHub features open tracking the addition of an explicit shell mode (e.g., In terms of this GitHub issue, I'd prefer to close it in favor of the issue tracking the addition of an explicit shell mode built into the AWS CLI v2 for reasons similar to why we launch auto-prompt mode directly in v2: #253. Thoughts? For those tracking this issue:
|
FWIW - new mbp 13" (macOS Big Sur 11.5.2) and functioning as per @randonia suggestion:
removed id's due to internal AWS account usage Hopefully this help some-else bridge the gap until [v2][auto-prompt] Shell mode for AWS CLI auto-prompt be well all... |
Any update on this? I'm still getting the error with version 2 |
u can use cli v2 as or u can set |
Yes, I can confirm that it seems like they've embedded shell into cli from v2.0. It was giving me issues as well, but when I ran auto_prompt ON, cli is now working as shell and that error ['Namespace' object has no attribute 'cli_binary_format'] is gone... Thanks @DrDiman |
Hello,
When using AWS CLI v2, I get this error:
'Namespace' object has no attribute 'cli_binary_format'
On Windows 10, Python 3.8.1
AWS CLI v2 reference: https://aws.amazon.com/blogs/developer/aws-cli-v2-is-now-generally-available/
Thanks!
The text was updated successfully, but these errors were encountered: