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

Resolving pdfminer-six depedency causes infinite loop #3132

Closed
3 tasks done
tomlaube opened this issue Oct 7, 2020 · 5 comments
Closed
3 tasks done

Resolving pdfminer-six depedency causes infinite loop #3132

tomlaube opened this issue Oct 7, 2020 · 5 comments
Assignees
Labels
area/solver Related to the dependency resolver kind/bug Something isn't working as expected

Comments

@tomlaube
Copy link

tomlaube commented Oct 7, 2020

  • I am on the latest Poetry version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).

Issue

Minimal toml to replicate issue:

[tool.poetry]
name = "project"
version = "0.1.0"
description = ""
authors = ["Your Name <[email protected]>"]

[tool.poetry.dependencies]
python = "^3.7"
pdfminer-six = "^20200124"

[tool.poetry.dev-dependencies]

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

Running poetry update -vvv results in infinite loop:

   1: fact: pdfminer.six (20200124) depends on pycryptodome (*)
   1: fact: pdfminer.six (20200124) depends on sortedcontainers (*)
   1: fact: pdfminer.six (20200124) depends on chardet (*)
   1: selecting pdfminer.six (20200124)
   1: fact: pdfminer.six (20200124) depends on pycryptodome (*)
   1: fact: pdfminer.six (20200124) depends on sortedcontainers (*)
   1: fact: pdfminer.six (20200124) depends on chardet (*)
   1: selecting pdfminer.six (20200124)
   1: fact: pdfminer.six (20200124) depends on pycryptodome (*)
   1: fact: pdfminer.six (20200124) depends on sortedcontainers (*)
   1: fact: pdfminer.six (20200124) depends on chardet (*)
   1: selecting pdfminer.six (20200124)

The issue is most likely cause be that inconsistent naming: package pdfminer.six is correctly selected, it just doesn't match the provided pdfminer-six constraint.

@tomlaube tomlaube added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Oct 7, 2020
@abn abn added the area/solver Related to the dependency resolver label Oct 7, 2020
@abn
Copy link
Member

abn commented Oct 7, 2020

@sdispater seems that self._solution.relaton(term) is returning a subset. I did see similar cases in other issues. I suspect this is just a missing condition?

Similar issue #3200. Seems to be acused due to some issue with the name normalisation process.

@alexkyllo
Copy link

alexkyllo commented Dec 10, 2020

I am experiencing a similar infinite loop in dependency solving for a different package: azure-kusto-data.
On poetry 1.1.4, in a clean new poetry project, poetry add azure-kusto-data -vvv gets stuck in this loop, on both Win 10 and Ubuntu:

1: fact: azure-identity (1.5.0) depends on azure-core (>=1.0.0,<2.0.0)
   1: fact: azure-identity (1.5.0) depends on cryptography (>=2.1.4)
   1: fact: azure-identity (1.5.0) depends on msal (>=1.6.0,<2.0.0)
   1: fact: azure-identity (1.5.0) depends on msal-extensions (>=0.3.0,<0.4.0)
   1: fact: azure-identity (1.5.0) depends on six (>=1.6)
   1: selecting azure-identity (1.5.0)
   1: fact: azure-identity (1.5.0) depends on azure-core (>=1.0.0,<2.0.0)
   1: fact: azure-identity (1.5.0) depends on cryptography (>=2.1.4)
   1: fact: azure-identity (1.5.0) depends on msal (>=1.6.0,<2.0.0)
   1: fact: azure-identity (1.5.0) depends on msal-extensions (>=0.3.0,<0.4.0)
   1: fact: azure-identity (1.5.0) depends on six (>=1.6)
   1: selecting azure-identity (1.5.0)

@MarlonWe
Copy link

Worked for me:

"pdfminer.six" = "^20220319"

@dimbleby
Copy link
Contributor

should be closed by python-poetry/poetry-core#328

@mkniewallner mkniewallner removed the status/triage This issue needs to be triaged label Jun 11, 2022
Copy link

github-actions bot commented Mar 1, 2024

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 Mar 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area/solver Related to the dependency resolver kind/bug Something isn't working as expected
Projects
None yet
Development

No branches or pull requests

8 participants