mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-15 14:52:59 +00:00
fix error in web v2
This commit is contained in:
@@ -44,9 +44,14 @@ def main():
|
|||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
logger.info("Installing dependencies...")
|
logger.info("Installing dependencies...")
|
||||||
subprocess.check_call([
|
try:
|
||||||
str(venv_pip), 'install', '-r', 'requirements_web_v2.txt'
|
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
|
# Run the web interface
|
||||||
logger.info("Starting web interface on http://0.0.0.0:5001")
|
logger.info("Starting web interface on http://0.0.0.0:5001")
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ def check_dependencies(venv_path):
|
|||||||
try:
|
try:
|
||||||
subprocess.check_call([
|
subprocess.check_call([
|
||||||
str(venv_python), '-c', f'import {package}'
|
str(venv_python), '-c', f'import {package}'
|
||||||
], capture_output=True)
|
], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
|
||||||
except subprocess.CalledProcessError:
|
except subprocess.CalledProcessError:
|
||||||
missing_packages.append(package)
|
missing_packages.append(package)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user