Spaces:
Sleeping
Sleeping
fix: Call uv directly instead of as Python module in dashboard
Browse filesChanged subprocess commands from:
[sys.executable, '-m', 'uv', 'run', ...]
to:
['uv', 'run', ...]
This fixes the 'No module named uv' error when running EDA pipeline
or generating test cases from the dashboard UI buttons.
scheduler/dashboard/app.py
CHANGED
|
@@ -87,12 +87,11 @@ if not all(data_status.values()):
|
|
| 87 |
|
| 88 |
if st.button("Run EDA Pipeline", type="primary", use_container_width=True):
|
| 89 |
import subprocess
|
| 90 |
-
import sys
|
| 91 |
|
| 92 |
with st.spinner("Running EDA pipeline... This may take a few minutes."):
|
| 93 |
try:
|
| 94 |
result = subprocess.run(
|
| 95 |
-
[
|
| 96 |
capture_output=True,
|
| 97 |
text=True,
|
| 98 |
cwd=str(Path.cwd()),
|
|
@@ -119,12 +118,11 @@ if not all(data_status.values()):
|
|
| 119 |
|
| 120 |
if st.button("Generate Test Cases", use_container_width=True):
|
| 121 |
import subprocess
|
| 122 |
-
import sys
|
| 123 |
|
| 124 |
with st.spinner(f"Generating {n_cases} test cases..."):
|
| 125 |
try:
|
| 126 |
result = subprocess.run(
|
| 127 |
-
[
|
| 128 |
capture_output=True,
|
| 129 |
text=True,
|
| 130 |
cwd=str(Path.cwd()),
|
|
|
|
| 87 |
|
| 88 |
if st.button("Run EDA Pipeline", type="primary", use_container_width=True):
|
| 89 |
import subprocess
|
|
|
|
| 90 |
|
| 91 |
with st.spinner("Running EDA pipeline... This may take a few minutes."):
|
| 92 |
try:
|
| 93 |
result = subprocess.run(
|
| 94 |
+
["uv", "run", "court-scheduler", "eda"],
|
| 95 |
capture_output=True,
|
| 96 |
text=True,
|
| 97 |
cwd=str(Path.cwd()),
|
|
|
|
| 118 |
|
| 119 |
if st.button("Generate Test Cases", use_container_width=True):
|
| 120 |
import subprocess
|
|
|
|
| 121 |
|
| 122 |
with st.spinner(f"Generating {n_cases} test cases..."):
|
| 123 |
try:
|
| 124 |
result = subprocess.run(
|
| 125 |
+
["uv", "run", "court-scheduler", "generate", "--cases", str(n_cases)],
|
| 126 |
capture_output=True,
|
| 127 |
text=True,
|
| 128 |
cwd=str(Path.cwd()),
|