-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
preferences is wrong type
#8018
Comments
Hi @yujiri8 thanks for reaching out. The aws configure sso command is only available in v2, and the v1 versions you referenced are very old. (The latest CLI versions are 1.29.0 and 2.12.7). We recommend using v2 if possible, and installing the CLI per the documentation here: https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html. If you're still receiving an error after updating, could you share your debug logs (with any sensitive info redacted) by adding |
Sorry, I accidentally wrote 1.x on all the version numbers when I meant to write 2.x. I will try building the newest version and getting a debug log later. |
Fixed when building from source. This must've been caused by Alpine packaging the wrong version of dependencies. |
|
@yujiri8, as I also observe the issue, did you maybe file an issue for the alpine package? |
I did not because I wasn't sure which package was responsible, and I have very little motivation to effectively contribute to gross corporate software like this, which I would never use voluntarily. |
Faced the same issue with
It happened when I run
The solution helped: https://docs.aws.amazon.com/cli/latest/userguide/getting-started-source-install.html#source-getting-started-install-workflows-alpine
It seems that the alpine package https://pkgs.alpinelinux.org/package/edge/community/x86_64/aws-cli has an incompatible dependency that causes such an issue. |
I filed https://gitlab.alpinelinux.org/alpine/aports/-/issues/15133 for the issue. Feel free to improve it or add details. |
Describe the bug
I ran
aws configure sso
, thenaws eks update-kubeconfig --name $cluster --profile $profile
, and got this error message:preferences is wrong type: <class 'dict'> (Should be <class 'collections.OrderedDict'>)
.Expected Behavior
The
eks
command should work. It works with the same procedure for a friend on MacOS, on aws version 1.12.5.Current Behavior
I got this error message after running the
aws eks
command. Note that if I run it with the name of a cluster that doesn't exist, it doesn't give me this error, it gives me a normal error about the cluster not existing.Reproduction Steps
Possible Solution
No response
Additional Information/Context
Installed aws-cli from the Alpine package manger.
CLI version used
1.12.4 and 1.12.6 both have this problem for me
Environment details (OS name and version, etc.)
Alpine Linux
The text was updated successfully, but these errors were encountered: