From 9c2c2b307dc44e5d3b9fc0f306d2f0a79a7b1d11 Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Tue, 10 Dec 2019 01:02:50 +0200 Subject: [PATCH] s3: dynamically import botocore https://github.com/iterative/dvc/issues/2927 --- dvc/remote/s3.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dvc/remote/s3.py b/dvc/remote/s3.py index 8dd2bdf48..0b8237549 100644 --- a/dvc/remote/s3.py +++ b/dvc/remote/s3.py @@ -5,7 +5,6 @@ import logging import os import threading -from botocore.exceptions import ClientError from funcy import cached_property, wrap_prop from dvc.config import Config @@ -209,6 +208,8 @@ class RemoteS3(RemoteBASE): return self._list_paths(self.path_info) def isfile(self, path_info): + from botocore.exceptions import ClientError + if path_info.path.endswith("/"): return False