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

Add mypy to hyp3-autorift #301

Closed
jtherrmann opened this issue Jan 8, 2025 · 1 comment
Closed

Add mypy to hyp3-autorift #301

jtherrmann opened this issue Jan 8, 2025 · 1 comment
Labels
Jira Bug Create a Jira Bug for this issue

Comments

@jtherrmann
Copy link
Contributor

jtherrmann commented Jan 8, 2025

Jira: https://asfdaac.atlassian.net/browse/TOOL-3400

Note: The above link is accessible only to members of ASF.


In attempting to add our reusable mypy action to this repo, I'm running into the following issue when mypy attempts to install type stubs (via the --install-types option):

Installing collected packages: urllib3, types-requests
  Attempting uninstall: urllib3
    Found existing installation: urllib3 1.26.19
    Uninstalling urllib3-1.26.19:
      Successfully uninstalled urllib3-1.26.19
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
botocore 1.35.94 requires urllib3<1.27,>=1.25.4; python_version < "3.10", but you have urllib3 2.3.0 which is incompatible.

When I ran into this error for https://github.com/ASFHyP3/hyp3, the easiest resolution was to upgrade beyond Python 3.9. I haven't investigated other ways to resolve it, so I'm not sure how difficult it would be to address this issue without first addressing #300

@jtherrmann jtherrmann added the Jira Bug Create a Jira Bug for this issue label Jan 8, 2025
@jtherrmann
Copy link
Contributor Author

Nevermind, it was easy; just add types-requests to environment.yml so it gets installed with the other dependencies.

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

No branches or pull requests

1 participant