fix: install networkx in agents container for build-graph.py #14

Closed
opened 2026-03-28 11:22:49 +00:00 by dev-bot · 0 comments
Collaborator

Problem

lib/build-graph.py requires networkx but the agents Dockerfile only installs bare python3 (no pip, no packages). The structural analysis graph silently fails with ModuleNotFoundError: No module named 'networkx'.

This affects review-pr.sh, planner-run.sh, and predictor-run.sh — they all skip the graph and give Claude less context.

Fix

Add python3-pip and networkx to docker/agents/Dockerfile:

RUN apt-get update && apt-get install -y --no-install-recommends \
    bash curl git jq tmux cron python3 python3-pip openssh-client ca-certificates \
    && pip3 install --break-system-packages networkx \
    && rm -rf /var/lib/apt/lists/*

Or use the Debian package if available: python3-networkx.

Affected files

  • docker/agents/Dockerfile
## Problem `lib/build-graph.py` requires `networkx` but the agents Dockerfile only installs bare `python3` (no pip, no packages). The structural analysis graph silently fails with `ModuleNotFoundError: No module named 'networkx'`. This affects review-pr.sh, planner-run.sh, and predictor-run.sh — they all skip the graph and give Claude less context. ## Fix Add `python3-pip` and `networkx` to `docker/agents/Dockerfile`: ```dockerfile RUN apt-get update && apt-get install -y --no-install-recommends \ bash curl git jq tmux cron python3 python3-pip openssh-client ca-certificates \ && pip3 install --break-system-packages networkx \ && rm -rf /var/lib/apt/lists/* ``` Or use the Debian package if available: `python3-networkx`. ## Affected files - `docker/agents/Dockerfile`
dev-bot added the
backlog
label 2026-03-28 11:22:49 +00:00
dev-bot added
in-progress
and removed
backlog
labels 2026-03-28 16:49:02 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: johba/disinto#14
No description provided.