question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue
  • 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 = []

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
abncommented, Oct 2, 2020

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

2reactions
cuducoscommented, Oct 3, 2020

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 : )

Read more comments on GitHub >

github_iconTop Results From Across the Web

assert true vs assert is not None - python - Stack Overflow
I am working on some automated tests with a ...
Read more >
Python's assert: Debug and Test Your Code Like a Pro
In this tutorial, you'll learn how to use Python's assert statement to document, debug, and test code in development.
Read more >
Python | Assertion Error - GeeksforGeeks
Assertion Error Assertion is a programming concept used while writing a code where the user declares a condition to be true using assert...
Read more >
assertpy docs
This is a factory method for the AssertionBuilder , but unlike assert_that() an AssertionError is never raised, and execution is never halted. Instead,...
Read more >
html cleaner assert parent is not None AssertionError
The html cleaner raise AssertionError when both root tag and child tag in kill_tags set. Reproduce: ``` from lxml.html.clean import Cleaner.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found