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

Okta-awscli uses Click 7.x which is incompatible with latest version of many tools #230

Open
gsantoro opened this issue May 3, 2024 · 0 comments

Comments

@gsantoro
Copy link

gsantoro commented May 3, 2024

Describe the bug
I have issues installing other tools in my Python environment since okta-awscli requires a version of click 7.x, which is 4 years old.

Many version conflicts are raised when installing Black with Poetry and many other internal libraries at Elastic.

To Reproduce
Steps to reproduce the behavior:

  1. Install the tool Black with version 24.4.2 via Poetry
  2. Install version 0.5.5rc of okta-awscli via Poetry in the same environment

The issue happens only with Poetry since Poetry check for libraries conflicts.

If installing okta-awscli with pip, the tool is installed but there are lots of conflicts as warning

Expected behavior
I expect that okta-awscli dependency click is upgrade to 8.x version so that to be compatible with other python libraries.

Output
Output of your okta-awscli run, using the --debug flag.

➜ okta-awscli --debug             
DEBUG - Checking STS token against ARN partition: AwsPartition.AWS
INFO - STS credentials are valid. Nothing to do.

Environment (please complete the following information):

  • OS: [e.g. MacOS, Ubuntu, CentOS, etc.]: MacOs Sonoma 14.4.1 on Apple M1 Max
  • Version of okta-awscli you're running. okta-awscli -V: 0.5.5rc

Additional context
Add any other context about the problem here.

When trying to install the latest version of Black I get the following error

Because okta-awscli (0.5.5rc0) @ git+ssh://git@github.com/elastic/okta-awscli.git@main depends on click (7.0)
 and black (24.4.2) depends on click (>=8.0.0), okta-awscli (0.5.5rc0) @ git+ssh://git@github.com/elastic/okta-awscli.git@main is incompatible with black (24.4.2).
And because no versions of black match >24.4.2,<25.0.0, okta-awscli (0.5.5rc0) @ git+ssh://git@github.com/elastic/okta-awscli.git@main is incompatible with black (>=24.4.2,<25.0.0).
So, because eng-prod-engage depends on both okta-awscli (0.5.5rc0) @ git+ssh://git@github.com/elastic/okta-awscli.git@main and black (^24.4.2), version solving failed.

Some issue happens when trying to install okta-awscli with other tools internally at Elastic

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