From 1aaa8365d2529068d802924b8e7ca08fa7124046 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Wed, 31 Jul 2024 09:52:41 -0300 Subject: [PATCH] more debug if pip installs fail --- aider/utils.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/aider/utils.py b/aider/utils.py index 6786ec480..3ac7d1dc5 100644 --- a/aider/utils.py +++ b/aider/utils.py @@ -255,14 +255,13 @@ def check_pip_install_extra(io, module, prompt, pip_install_cmd): return success, output = run_install(cmd) - if not success: - return - - try: - __import__(module) - return True - except (ImportError, ModuleNotFoundError): - pass + if success: + try: + __import__(module) + return True + except (ImportError, ModuleNotFoundError) as err: + io.tool_error(str(err)) + pass io.tool_error(output)