mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 08:44:59 +00:00
more debug if pip installs fail
This commit is contained in:
parent
080953760f
commit
1aaa8365d2
1 changed files with 7 additions and 8 deletions
|
@ -255,14 +255,13 @@ def check_pip_install_extra(io, module, prompt, pip_install_cmd):
|
||||||
return
|
return
|
||||||
|
|
||||||
success, output = run_install(cmd)
|
success, output = run_install(cmd)
|
||||||
if not success:
|
if success:
|
||||||
return
|
try:
|
||||||
|
__import__(module)
|
||||||
try:
|
return True
|
||||||
__import__(module)
|
except (ImportError, ModuleNotFoundError) as err:
|
||||||
return True
|
io.tool_error(str(err))
|
||||||
except (ImportError, ModuleNotFoundError):
|
pass
|
||||||
pass
|
|
||||||
|
|
||||||
io.tool_error(output)
|
io.tool_error(output)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue