From 0f6e3c9497d5fbe6292e3edc0ac6bd810e675146 Mon Sep 17 00:00:00 2001 From: Chuck <33324927+ChuckBuilds@users.noreply.github.com> Date: Sun, 27 Jul 2025 21:00:49 -0500 Subject: [PATCH] fix error in web v2 --- run_web_v2_simple.py | 11 ++++++++--- start_web_v2.py | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/run_web_v2_simple.py b/run_web_v2_simple.py index d6c3630e..e1f3f050 100644 --- a/run_web_v2_simple.py +++ b/run_web_v2_simple.py @@ -44,9 +44,14 @@ def main(): # Install dependencies logger.info("Installing dependencies...") - subprocess.check_call([ - str(venv_pip), 'install', '-r', 'requirements_web_v2.txt' - ]) + try: + subprocess.check_call([ + str(venv_pip), 'install', '-r', 'requirements_web_v2.txt' + ], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) + logger.info("Dependencies installed successfully") + except subprocess.CalledProcessError as e: + logger.error(f"Failed to install dependencies: {e}") + return # Run the web interface logger.info("Starting web interface on http://0.0.0.0:5001") diff --git a/start_web_v2.py b/start_web_v2.py index 87ca2dd6..86c092e3 100755 --- a/start_web_v2.py +++ b/start_web_v2.py @@ -71,7 +71,7 @@ def check_dependencies(venv_path): try: subprocess.check_call([ str(venv_python), '-c', f'import {package}' - ], capture_output=True) + ], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) except subprocess.CalledProcessError: missing_packages.append(package)