You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Unable to run okta-awscli from Docker container
To Reproduce
Steps to reproduce the behavior:
docker build -t okta-awscli .
docker run -it --rm -v ~/.aws/credentials:/root/.aws/credentials -v ~/.okta-aws:/root/.okta-aws okta-awscli iam list-users
Expected behavior
I'm prompted for a password and an MFA code and then get my credentials.
Output
Traceback (most recent call last):
File "/usr/local/bin/okta-awscli", line 10, in <module>
from importlib.metadata import distribution
ModuleNotFoundError: No module named 'importlib.metadata'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/okta-awscli", line 13, in <module>
from importlib_metadata import distribution
File "/usr/local/lib/python3.7/site-packages/importlib_metadata-6.8.0-py3.7.egg/importlib_metadata/__init__.py", line 6, in <module>
import zipp
File "/usr/local/lib/python3.7/site-packages/zipp-3.16.2-py3.7.egg/zipp/__init__.py", line 9, in <module>
from .py310compat import text_encoding
File "/usr/local/lib/python3.7/site-packages/zipp-3.16.2-py3.7.egg/zipp/py310compat.py", line 5
def _text_encoding(encoding, stacklevel=2, /): # pragma: no cover
^
SyntaxError: invalid syntax
Environment (please complete the following information):
OS: MacOS
Version of okta-awscli you're running: 0.5.4
Additional context
Running on python 3.11 works for me locally so I created a PR to resolve this issue for me: #218.
The text was updated successfully, but these errors were encountered:
Describe the bug
Unable to run okta-awscli from Docker container
To Reproduce
Steps to reproduce the behavior:
docker build -t okta-awscli .
docker run -it --rm -v ~/.aws/credentials:/root/.aws/credentials -v ~/.okta-aws:/root/.okta-aws okta-awscli iam list-users
Expected behavior
I'm prompted for a password and an MFA code and then get my credentials.
Output
Environment (please complete the following information):
0.5.4
Additional context
Running on python 3.11 works for me locally so I created a PR to resolve this issue for me: #218.
The text was updated successfully, but these errors were encountered: