Skip to content

Resolving pdfminer-six depedency causes infinite loop #3132

@tomlaube

Description

@tomlaube
  • 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.

Metadata

Metadata

Assignees

Labels

area/solverRelated to the dependency resolverkind/bugSomething isn't working as expected

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions