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

Docker Run Issue #219

Open
kjenney opened this issue Jul 19, 2023 · 0 comments
Open

Docker Run Issue #219

kjenney opened this issue Jul 19, 2023 · 0 comments

Comments

@kjenney
Copy link

kjenney commented Jul 19, 2023

Describe the bug
Unable to run okta-awscli from Docker container

To Reproduce
Steps to reproduce the behavior:

  1. docker build -t okta-awscli .
  2. 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.

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