-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
python-poetry/poetry-core
#395Labels
kind/bugSomething isn't working as expectedSomething isn't working as expected
Description
- [ 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.
- [ x ] If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option).
- OS version and name: AmazonLinux 2/Ubuntu
- Poetry version: 1.2.0b2
- Link of a Gist with the contents of your pyproject.toml file:
Issue
A simple poetry lock
fails when I updated to 1.2.0b2. Downgrading to 1.2.0b1 succeeds the command as usual.
Error:
% poetry lock -v
Using virtualenv: /local/home/user/.virtualenvs/test
Updating dependencies
Resolving dependencies... (1.9s)
OverrideNeeded
({Package('pandas', '1.4.2'): {'numpy': <Dependency numpy (>=1.18.5)>}}, {Package('pandas', '1.4.2'): {'numpy': <Dependency numpy (>=1.19.2)>}}, {Package('pandas', '1.4.2'): {'numpy': <Dependency numpy (>=1.20.0)>}})
at ~/.local/share/pypoetry/venv/lib/python3.9/site-packages/poetry/puzzle/provider.py:757 in complete_package
753│ current_overrides.update({package: package_overrides})
754│ overrides.append(current_overrides)
755│
756│ if overrides:
→ 757│ raise OverrideNeeded(*overrides)
758│
759│ # Modifying dependencies as needed
760│ clean_dependencies = []
761│ for dep in dependencies:
The following error occurred when trying to handle this error:
AssertionError
at ~/.local/share/pypoetry/venv/lib/python3.9/site-packages/poetry/mixology/partial_solution.py:151 in _register
147│ name = assignment.dependency.complete_name
148│ old_positive = self._positive.get(name)
149│ if old_positive is not None:
150│ value = old_positive.intersect(assignment)
→ 151│ assert value is not None
152│ self._positive[name] = value
153│
154│ return
155│
Metadata
Metadata
Assignees
Labels
kind/bugSomething isn't working as expectedSomething isn't working as expected