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

Unable to resolve non-SemVer 4-part version numbers of Python stubs #9438

Closed
albertvillanova opened this issue May 24, 2024 · 5 comments
Closed
Labels
kind/bug Something isn't working as expected status/triage This issue needs to be triaged

Comments

@albertvillanova
Copy link

albertvillanova commented May 24, 2024

Description

The versions of Python third-party stub packages consist of four parts, like 2.32.0.20240523 (see: types-requests-2.32.0.20240523). More info in their README: https://github.com/python/typeshed?tab=readme-ov-file#package-versioning-for-third-party-stubs

However Poetry cannot resolve these packages and it hangs indefinitely.

For example, when executing poetry update types-requests with any of the following dependency specifications:

  • Caret: types-requests = "^2.32"
  • Tilde: types-requests = "~2.32"
  • Wildcard: types-requests = "2.32.*"
  • Inequality: types-requests = ">=2.32"
  • Exact requirement: types-requests = "2.32.0.20240523"

Workarounds

No workaround.

Poetry Installation Method

pipx

Operating System

Ubuntu 20.04

Poetry Version

1.8.2

Poetry Configuration

cache-dir = "~/.cache/pypoetry"
experimental.new-installer = true
experimental.system-git-client = false
installer.max-workers = null
installer.modern-installation = true
installer.no-binary = null
installer.parallel = true
keyring.enabled = true
solver.lazy-wheel = true
virtualenvs.create = true
virtualenvs.in-project = true
virtualenvs.options.always-copy = false
virtualenvs.options.no-pip = false
virtualenvs.options.no-setuptools = false
virtualenvs.options.system-site-packages = false
virtualenvs.path = "{cache-dir}/virtualenvs"  # ~/.cache/pypoetry/virtualenvs
virtualenvs.prefer-active-python = true
virtualenvs.prompt = "{project_name}-py{python_version}"
warnings.export = true

Python Sysconfig

No response

Example pyproject.toml

No response

Poetry Runtime Logs

Updating dependencies
Resolving dependencies... (451.1s)^C
@albertvillanova albertvillanova added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels May 24, 2024
@clintonroy
Copy link
Contributor

Please follow the bug template and run with -vvv. For me, it's instant. For you, it could be slow downloading, it could be waiting for a password, I can't tell.

@dimbleby
Copy link
Contributor

this will certainly be nothing to do with the version numbers, you have taken a wrong guess there

most often this sort of thing is to do with keyring per #8623 etc

@albertvillanova
Copy link
Author

Thanks for the hint, @dimbleby. I think it can be caused by that: some keyring message appears sometimes...

I am just confirming it...

@albertvillanova
Copy link
Author

In the end it was due to a conflict among dependencies. Sorry for the inconvenience.

@albertvillanova albertvillanova closed this as not planned Won't fix, can't repro, duplicate, stale May 27, 2024
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Something isn't working as expected status/triage This issue needs to be triaged
Projects
None yet
Development

No branches or pull requests

3 participants