Skip to content

Commit 80994ee

Browse files
fix(tools): invoke remote_monitor via python3.11 on nodes
The experiment Python stack (prometheus-client requirements, promql-parser, and the local promql_utilities package) is installed only under python3.11 on the CloudLab nodes (see installation/common/setup_dependencies.sh). system python3 lacks these (and loguru on some nodes), so remote_monitor.py - which imports PrometheusClientService - must run under python3.11. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent a67d2be commit 80994ee

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

asap-tools/experiments/experiment_utils/services/remote_monitor_service.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,10 @@ def start(
111111
if use_timed_mode:
112112
# Build command for timed mode (skip_querying)
113113
cmd = (
114-
"python3 -u remote_monitor.py "
114+
# python3.11: the experiment stack (prometheus-client reqs,
115+
# promql-parser, promql_utilities) is installed only under
116+
# python3.11 on the nodes; system python3 lacks them.
117+
"python3.11 -u remote_monitor.py "
115118
"--execution_mode timed "
116119
"--experiment_mode {} "
117120
r"--keywords \"{}\" "
@@ -164,7 +167,8 @@ def start(
164167
assert controller_remote_output_dir is not None
165168

166169
cmd = (
167-
"python3 -u remote_monitor.py "
170+
# python3.11: see note above; experiment deps live under python3.11.
171+
"python3.11 -u remote_monitor.py "
168172
"--execution_mode prometheus_client "
169173
"--experiment_mode {} "
170174
r"--keywords \"{}\" "

0 commit comments

Comments
 (0)