From 64e961dcf131ab32c886246ee0b9e42a184ba26e Mon Sep 17 00:00:00 2001 From: "Kim, Vinnam" Date: Wed, 3 Jan 2024 16:41:11 +0900 Subject: [PATCH] Add importlib_resources to direct dependencies Signed-off-by: Kim, Vinnam --- pyproject.toml | 3 ++- src/otx/cli/utils/installation.py | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index fb3c2a1ea38..6beab01a2e2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,7 +35,8 @@ dependencies = [ "jsonargparse==4.27.1", "psutil", # Mem cache needs system checks "ftfy", - "regex" + "regex", + "importlib_resources" ] [project.optional-dependencies] diff --git a/src/otx/cli/utils/installation.py b/src/otx/cli/utils/installation.py index 36af4037e9a..1e758ad9be0 100644 --- a/src/otx/cli/utils/installation.py +++ b/src/otx/cli/utils/installation.py @@ -515,6 +515,8 @@ def patch_mmaction2() -> None: """Patch MMAction2==1.2.0 with the custom code. The patch is at `src/otx/cli/patches/mmaction2.patch`. + The reason why we need is that `__init__.py` is missing in + https://github.com/open-mmlab/mmaction2/tree/v1.2.0/mmaction/models/localizers/drn """ dir_patches: Path = files("otx") / "cli" / "patches" file_mmaction2_patch = dir_patches / "mmaction2.patch"