dvc: `poetry add dvc[s3]` does not install `boto3`
Bug Report
Description
Installing dvc[s3]
with poetry does not install boto3
, so dvc push
or dvc pull
do not work.
Reproduce
poetry init -q
poetry add dvc[s3]
poetry run python3 -c "import boto3"
Expected
It is expected that boto3
is installed.
Environment information
Python 3.8, poetry 1.1.12, DVC 2.9.3.
Output of dvc doctor
:
DVC version: 2.9.3 (pip)
---------------------------------
Platform: Python 3.8.10 on Linux-5.10.60.1-microsoft-standard-WSL2-x86_64-with-glibc2.17
Supports:
webhdfs (fsspec = 2021.11.1),
http (aiohttp = 3.8.1, aiohttp-retry = 2.4.6),
https (aiohttp = 3.8.1, aiohttp-retry = 2.4.6)```
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 3
- Comments: 16 (8 by maintainers)
Commits related to this issue
- s3: add aiobotocore as dependency explicitly Fixes #7257 and fixes #7475. — committed to skshetry/dvc by skshetry 2 years ago
- s3: add aiobotocore as dependency explicitly Fixes #7257 and fixes #7475. — committed to iterative/dvc by skshetry 2 years ago
@dtrifiro That one should be solved by
pip install -U pip
, there was some bug in dep resolution in pip that got fixed.dvc==2.10.0
is released which should fix the issue. Let us know if there’s any issue.@tomliptrot explicitly specifying
boto3 = "1.19.8"
inpyproject.toml
functioned for me as a workaround.I get a similar issue when trying to install boto3 after installing dvc[s3].
My investigations led to this issue https://github.com/fsspec/s3fs/issues/357
I tried installing just dvc and adding s3fs<0.5.0 separately.
This allowed me to install boto3, but now dvc does not work.
This looks like a bug in poetry, similar to https://github.com/iterative/dvc/issues/6886. See https://github.com/python-poetry/poetry/issues/4683.
A workaround may be to just explicitly specify dependencies in dvc as we did with others.