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

Created on 1 Oct 2020  Â·  8Comments  Â·  Source: python-poetry/poetry

  • [x] I am on the latest Poetry version.
  • [x] 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_
  • [x] 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 = []
Bug Dependency resolution Triage

Most helpful comment

For those with broken pipelines: downgrading to 1.0.10 (poetry self update 1.0.10) did the trick for me. So I can wait with green pipelines until 1.1.1 is rolled out : )

All 8 comments

@konstin poetry add --lock django-anymail@^7.2 should resolve your issue.

@abn If we do that, then the extras don't show in pyproject.toml (in my case, I would need those), would the workaround also include extras?

Update: I filed a report in #3017

I made an issue at #3017 - same error message - but I'm not sure if it's related (at the core of things) or not yet.

I added a full traceback via -vvv. Please feel free to close #3017 if its a duplicate / handled via this issue

Thank you!

@abn Any recommendation for a workaround while waiting for 1.2 to be released? This is currently breaking multiple of our pipelines.

@aaaaahaaaaa we will be releasing a bug fix release 1.1.1 soon :)

@abn Any rough ETA?

@aaaaahaaaaa if the current open bugfix PRs get reviewed and verified, this weekend. Otherwise early next week.

For those with broken pipelines: downgrading to 1.0.10 (poetry self update 1.0.10) did the trick for me. So I can wait with green pipelines until 1.1.1 is rolled out : )

Was this page helpful?
0 / 5 - 0 ratings

Related issues

etijskens picture etijskens  Â·  3Comments

Euphorbium picture Euphorbium  Â·  3Comments

mozartilize picture mozartilize  Â·  3Comments

ulope picture ulope  Â·  3Comments

jeremy886 picture jeremy886  Â·  3Comments