Nike-Inc / gimme-aws-creds

A CLI that utilizes Okta IdP via SAML to acquire temporary AWS credentials
Apache License 2.0
921 stars 262 forks source link

KeyError: "name='sid', domain=None, path=None" #324

Open briandaltilio opened 2 years ago

briandaltilio commented 2 years ago

New installation of gimme-aws-creds v2.4.0 on Windows 10. Python version 3.10.0. After entering Okta credentials, a bunch of errors are displayed ending with KeyError: "name='sid', domain=None, path=None".

Anonymized output and config file attached. okta_aws_login_config.txt error-output.txt

PeteW commented 2 years ago

it is a known error in gimme-aws-creds v 2.4.0 you must upgrade to gimme-aws-creds 2.4.3

so you will try to run something like pip install --upgrade gimme-aws-creds and you will see that gimme-aws-creds --version yields 2.4.0 and you failed to upgrade

then you may try to run pip install --upgrade gimme-aws-creds==2.4.3

and you will get an error message like ERROR: No matching distribution found for winrt>=1.0.20330.1; platform_system == "Windows" and python_version >= "3.7"

and you will scratch your head because 3.10 > 3.7 but then your head will hurt because "3.10" < "3.7" and then if youre like me you will install python 3.9 and then you will get around this.

anyways this was my afternoon today

rsichnyi commented 2 years ago

It has nothing to do with string comparisons in requirements (that issue was fixed in pip back in 2019). The reason is that there's no winrt release for 3.10, see https://github.com/microsoft/xlang/issues/763

burrand commented 2 years ago

Any idea how we can work around this? Is it just to downgrade your python version from 3.10 to 3.9?

rsichnyi commented 2 years ago

yes, you can only install it on python 3.9 (or lower) until winrt is upgraded to 3.10

burrand commented 2 years ago

Thank you for your reply, that worked for me.

Loukili-Rachid commented 2 years ago

Any idea how we can work around this? Is it just to downgrade your python version from 3.10 to 3.9?

https://www.python.org/downloads/release/python-3912/

jmoraRMS commented 2 years ago

I already downgrade my python to 3.9 and even with that change I have the same issue. Any help of what I can do?

ngalaby-jhb commented 2 years ago

Having same issues with python 3.10 running on Macos. gimme-aws-creds version = 2.4.4

santoshgonela commented 2 years ago

I have python 3.9.13 and gimme creds 2.4.4 , when I use the command "gimme-aws-creds" I see my terminal is hanging at "Using password from keyring" and does not respond. Can anyone help me on how to resolve this please?

Kyle-Payne commented 1 year ago

Team, per https://github.com/microsoft/xlang/issues/763 are there plans to replace winrt with https://pypi.org/project/winsdk/ in gimme-aws-creds in the near future?

kishorer00 commented 1 year ago

Finally, Install gimme creds without any error on my system. Here are the steps , ==> Install 2.3.1

pip install gimme-aws-creds==2.3.1

==> Upgrade to 2.4.3

pip install --upgrade gimme-aws-creds==2.4.3

It worked for me !!!.