- OS version and name: Windows 10 21H1 with WSL2 (Ubuntu 20.04)
- Poetry version: 1.1.11
- Link of a Gist with the contents of your pyproject.toml file: https://pastebin.com/avWt6UNk
Issue
This issue has been cross-posted in the dvc git repo. Here: treeverse/dvc#6886
dvc[ssh] can't be added to a project using Poetry env manager.
When I create my package environnement using Poetry adding dvc with [ssh] extra create a weird unrelated error.
Here is my full error log from poetry https://pastebin.com/MBveHXbW
Reproductibility
Minimal failing example:
- poetry init
- poetry add dvc[ssh]
- poetry install
Full reproductibilty: get the pyproject.toml at the bottom, get an python installation with poetry installed and simply run poetry install with the file in the working directory.
I have the weird feeling that this issue is due to the fact that you need to first install dvc package and THEN dvc[ssh] (bcrypt looks missing) as described here: https://dvc.org/doc/install/linux#install-with-pip
But that's not possible with Poetry, I can't have two line called "dvc" (one vanilla, one with the extra) and I can't have a line starting with dvc[ssh]
KeyError
Package('bcrypt', '3.2.0')
at ~/miniconda3/lib/python3.9/site-packages/poetry/puzzle/solver.py:270 in _solve
By removing the dvc with extras line from .toml file and doing poetry add dvc it works, but I can't use ssh plugin. Doing poetry add dvc[ssh] fails with the erros in the previous pastebin log.
EDIT: By using a fresh .toml file from poetry with only dvc[ssh] added, the same error arise.
-vvvoption).Issue
This issue has been cross-posted in the dvc git repo. Here: treeverse/dvc#6886
dvc[ssh] can't be added to a project using Poetry env manager.
When I create my package environnement using Poetry adding dvc with [ssh] extra create a weird unrelated error.
Here is my full error log from poetry https://pastebin.com/MBveHXbW
Reproductibility
Minimal failing example:
Full reproductibilty: get the pyproject.toml at the bottom, get an python installation with poetry installed and simply run
poetry installwith the file in the working directory.I have the weird feeling that this issue is due to the fact that you need to first install dvc package and THEN dvc[ssh] (bcrypt looks missing) as described here: https://dvc.org/doc/install/linux#install-with-pip
But that's not possible with Poetry, I can't have two line called "dvc" (one vanilla, one with the extra) and I can't have a line starting with dvc[ssh]
By removing the dvc with extras line from .toml file and doing
poetry add dvcit works, but I can't use ssh plugin. Doingpoetry add dvc[ssh]fails with the erros in the previous pastebin log.EDIT: By using a fresh .toml file from poetry with only dvc[ssh] added, the same error arise.