fix error in web v2

This commit is contained in:
Chuck
2025-07-27 21:00:49 -05:00
parent 88078111b4
commit 0f6e3c9497
2 changed files with 9 additions and 4 deletions

View File

@@ -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")

View File

@@ -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)