You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AssertionError
at ~/.virtualenvs/poetry/lib/python3.11/site-packages/poetry/mixology/partial_solution.py:152 in _register
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
154│
So I modified the file and inserted a print statement
Resolving dependencies... (0.5s)
Old posi: vmwarecloud_draas (1.23.1) @ file:////Users/XXXX/.virtualenvs/vcenter-inventory/src/vsphere-automation-sdk-python/lib/vmwarecloud-draas/vmwarecloud_draas-1.23.1-py2.py3-none-any.whl
Assignment: vmwarecloud-draas (1.23.1) @ file:///Users/XXXX/.virtualenvs/vcenter-inventory/src/vsphere-automation-sdk-python/lib/vmwarecloud-draas/vmwarecloud_draas-1.23.1-py2.py3-none-any.whl
AssertionError
at ~/.virtualenvs/poetry/lib/python3.11/site-packages/poetry/mixology/partial_solution.py:152 in _register
148│ old_positive = self._positive.get(name)
149│ print(f"\nOld posi: {old_positive}\nAssignment: {assignment}")
150│ if old_positive is not None:
151│ value = old_positive.intersect(assignment)
→ 152│ assert value is not None
153│ self._positive[name] = value
154│
155│ return
156│
and I think I see what is wrong: four / vs three / in path.
I didn't dive deep into right now but I think, somewhere is a slash doubling inside, where file:/// mutates to file://// and the intersections fails.
vsphere-automation-sdk-python is mispackaged and does some weird path replacement things in their setup.py. Not much we can do about it. There is an issue on their issue tracker about it: vmware/vsphere-automation-sdk-python#38. There are some duplicates like that on our issue tracker too.
Description
I try to install the vmware python SDK with poetry but I have no chance doing this.
When running poetry lock I just get:
So I modified the file and inserted a print statement
and get following
and I think I see what is wrong: four / vs three / in path.
I didn't dive deep into right now but I think, somewhere is a slash doubling inside, where file:/// mutates to file://// and the intersections fails.
Workarounds
Nope, no workaround known this moment.
Poetry Installation Method
pip
Operating System
Macos
Poetry Version
Poetry (version 1.8.3)
Poetry Configuration
Python Sysconfig
Example pyproject.toml
Poetry Runtime Logs
The text was updated successfully, but these errors were encountered: