"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).
- OS version and name: Ubuntu 20.04
- Poetry version: 1.1.0
- Link of a Gist with the contents of your pyproject.toml file: https://gist.github.com/konstin/8d8c412fdd1ed76e2c42cea8e444f891
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:
- Created 3 years ago
- Reactions:3
- Comments:8 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@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 : )