-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assertion error when installing Prefect with poetry #7904
Comments
Works fine for me. Please respect the issue template and provide the details that it asks for. |
My apologies for not following throuh the template: Poetry version: Poetry (version 1.4.2)
[tool.poetry.dependencies] [build-system]
IssueI am on a new poetry project. I am trying to install Prefect as my first package but there is an assertion error. Debug mode error: Updating dependencies Stack trace: 16 /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/cleo/application.py:327 in run 15 /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/poetry/console/application.py:190 in _run 14 /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/cleo/application.py:431 in _run 13 /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/cleo/application.py:473 in _run_command 12 /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/cleo/application.py:457 in _run_command 11 /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/cleo/commands/base_command.py:119 in run 10 /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/cleo/commands/command.py:62 in execute 9 /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/poetry/console/commands/add.py:262 in handle 8 /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/poetry/installation/installer.py:116 in run 7 /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/poetry/installation/installer.py:263 in _do_install 6 /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/poetry/puzzle/solver.py:74 in solve 5 /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/poetry/puzzle/solver.py:157 in _solve 4 /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/poetry/mixology/init.py:18 in resolve_version 3 /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/poetry/mixology/version_solver.py:112 in solve 2 /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/poetry/mixology/version_solver.py:432 in _choose_package_version 1 /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/poetry/mixology/version_solver.py:468 in _add_incompatibility AssertionError at /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/poetry/mixology/incompatibility.py:113 in str |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
when I run: poetry add prefect trying to install prefect 2.10.8
poetry add prefect
Creating virtualenv prefect in /Users/realonbebeto/Kazispace/local/py/prefect/.venv
Using version ^2.10.8 for prefect
Updating dependencies
Resolving dependencies... (0.0s)
AssertionError
at /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/poetry/mixology/incompatibility.py:113 in str
109│ )
110│
111│ def str(self) -> str:
112│ if isinstance(self._cause, DependencyCause):
→ 113│ assert len(self._terms) == 2
114│
115│ depender = self._terms[0]
116│ dependee = self._terms[1]
117│ assert depender.is_positive()
The text was updated successfully, but these errors were encountered: