Skip to content
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

Problema quando usa python 3.6 #8

Open
claytonsilva opened this issue Apr 29, 2021 · 0 comments
Open

Problema quando usa python 3.6 #8

claytonsilva opened this issue Apr 29, 2021 · 0 comments

Comments

@claytonsilva
Copy link
Owner

Temos um erro na formatação de data quando usamos python 3.6

ValueError: time data '2021-04-30T01:15:47Z' does not match format '%Y-%m-%dT%H:%M:%S%z'
4:12
`Traceback (most recent call last):
  File "/usr/local/bin/aws-sso-cred-restore", line 33, in <module>
    sys.exit(load_entry_point('aws-sso-cred-restore==1.1.0', 'console_scripts', 'aws-sso-cred-restore')())
  File "/usr/local/lib/python3.6/dist-packages/awsssocredrestore/__init__.py", line 181, in main
    process_profile(profile, args.export)
  File "/usr/local/lib/python3.6/dist-packages/awsssocredrestore/__init__.py", line 154, in process_profile
    sso_access_token = retrieve_token(sso_start_url, sso_region, profile)
  File "/usr/local/lib/python3.6/dist-packages/awsssocredrestore/__init__.py", line 114, in retrieve_token
    token = retrieve_token_from_file(cachefile, sso_start_url, sso_region)
  File "/usr/local/lib/python3.6/dist-packages/awsssocredrestore/__init__.py", line 99, in retrieve_token_from_file
    expires_at.replace("UTC", "+0000"), "%Y-%m-%dT%H:%M:%S%z")
  File "/usr/lib/python3.6/_strptime.py", line 565, in _strptime_datetime
    tt, fraction = _strptime(data_string, format)
  File "/usr/lib/python3.6/_strptime.py", line 362, in _strptime
    (data_string, format))`

Seria necessário ou atualizar para 3.7 ou resolver esse problema de formatação que ocorre com o formato do fuso que alega que está incorreto.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant