From fddae35479fe965063408166790b7fd0eb72ffa6 Mon Sep 17 00:00:00 2001 From: Qing Date: Mon, 17 Mar 2025 16:07:59 +0800 Subject: [PATCH] print plugin check_dep error --- iopaint/plugins/remove_bg.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/iopaint/plugins/remove_bg.py b/iopaint/plugins/remove_bg.py index bd03575..4f59b76 100644 --- a/iopaint/plugins/remove_bg.py +++ b/iopaint/plugins/remove_bg.py @@ -95,8 +95,11 @@ class RemoveBG(BasePlugin): def check_dep(self): try: import rembg - except ImportError: - return "RemoveBG is not installed, please install it first. pip install -U rembg" + except ImportError as e: + import traceback + + error_msg = traceback.format_exc() + return f"Install rembg failed, Error details:\n{error_msg}" def device_warning(self): if self.device == Device.cuda and self.model_name not in [