Cannot install using poetry
mlhamel opened this issue · 2 comments
mlhamel commented
when trying to install googleapis-common-protos
using Poetry we've got the following error Package 'googleapis-common-protos' is listed as a dependency of itself.
Environment details
- OS type and version: maxOS Monterey 12.2.1
- Python version: Python 3.9.11
- pip version: pip 22.1.2
- poetry version: Poetry (version 1.2.0b1)
- googleapis-common-protos version: 1.5.6
Steps to reproduce
- Add
googleapis-common-protos = "^1.5.6"
to yourpyproject.toml
insidetool.poetry.dependencies
section - Run either
poetry install
orpoetry update
- After a while it stop working
Stack trace
✗ poetry install --no-dev
The `--no-dev` option is deprecated, use the `--without dev` notation instead.
Installing dependencies from lock file
AssertionError
Package 'googleapis-common-protos' is listed as a dependency of itself.
at ~/Library/Application Support/pypoetry/venv/lib/python3.9/site-packages/poetry/mixology/incompatibility.py:61 in __init__
57│ # incompatibility irrelevant, since we already know that mutually
58│ # exclusive version ranges are incompatible. We should never derive
59│ # an irrelevant incompatibility.
60│ err_msg = f"Package '{ref}' is listed as a dependency of itself."
→ 61│ assert by_ref[ref] is not None, err_msg
62│ else:
63│ by_ref[ref] = term
64│
65│ new_terms = []
vam-google commented
Hi @mlhamel, did you mean 1.56.0 version (instead of 1.5.6)? The latest version of googleapis-common-protos is 1.56.4, the 1.5.6 version is very old and I don't think we support it still. Can you please try if your build works with 1.56.0?