cevoaustralia / aws-google-auth

Provides AWS STS credentials based on Google Apps SAML SSO auth (what a jumble!)
MIT License
537 stars 181 forks source link

macOS 10.13.6 and -k yields error: #99

Closed sinkr closed 6 years ago

sinkr commented 6 years ago

HomeBrew-installed Python 2.7.15.

Bottom-line error: AssertionError: Expected password to be a string. Got <type 'unicode'>.

(I am entering the correct password for KeyChain access, etc.)

Full debug detail: Traceback (most recent call last): File "/usr/local/bin/aws-google-auth", line 11, in <module> sys.exit(main()) File "/usr/local/lib/python2.7/site-packages/aws_google_auth/__init__.py", line 225, in main cli(cli_args) File "/usr/local/lib/python2.7/site-packages/aws_google_auth/__init__.py", line 64, in cli process_auth(args, config) File "/usr/local/lib/python2.7/site-packages/aws_google_auth/__init__.py", line 182, in process_auth config.raise_if_invalid() File "/usr/local/lib/python2.7/site-packages/aws_google_auth/configuration.py", line 117, in raise_if_invalid assert (self.password.__class__ is str), "Expected password to be a string. Got {}.".format(self.password.__class__) AssertionError: Expected password to be a string. Got <type 'unicode'>.

sinkr commented 6 years ago

Resolved by upgrading to Python 3.7.

stevemac007 commented 6 years ago

I started work on this fix for 2.7 in fix-keystore-unicode-password.

stevemac007 commented 6 years ago

Looks like that branch just needed some persuasion to fix the problem.