Skip to content

"AssertionError: assert by_ref[ref] is not None" with previously working pyproject.toml #3016

@konstin

Description

@konstin
  • I am on the latest Poetry version.
  • I have searched the issues of this repo and believe that this is not a duplicate. There are similar bug reports, but all for older versions
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).

Issue

After updating to poetry 1.1.0, poetry fails with an AssertionError. You can reproduce this by adding the pyproject.toml linked above to an empty directory and running poetry install.

Logs

After 1: Version solving took 0.600 seconds. and 1: Tried 1 solutions., I get:

  AssertionError

  

  at ~/.poetry/lib/poetry/mixology/incompatibility.py:60 in __init__
       56│                     # intersection, they're mutually exclusive, making this incompatibility
       57│                     # irrelevant, since we already know that mutually exclusive version
       58│                     # ranges are incompatible. We should never derive an irrelevant
       59│                     # incompatibility.
    →  60│                     assert by_ref[ref] is not None
       61│                 else:
       62│                     by_ref[ref] = term
       63│ 
       64│             new_terms = []

Metadata

Metadata

Assignees

No one assigned

    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