mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-10 13:02:59 +00:00
fix error in web v2
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user