Skip to content

Poetry cannot install dvc[ssh] package #4683

@lambda-science

Description

@lambda-science
  • I am on the latest Poetry version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).

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:

  1. poetry init
  2. poetry add dvc[ssh]
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions