mother: preflight numpy/Pillow imports, not just python3 #179
2 changed files with 14 additions and 4 deletions
|
|
@ -20,9 +20,10 @@ infrastructure.
|
||||||
|
|
||||||
## Prerequisites
|
## Prerequisites
|
||||||
|
|
||||||
- **`python3` on PATH** — `geodesic-dome-mcp` is a python3 script (standard
|
- **`python3` with `numpy` + `Pillow`** — `geodesic-dome-mcp` imports both at
|
||||||
library only, no `pip install`). `setup-mother.sh` preflights this and aborts
|
module load (not stdlib-only). `setup-mother.sh` preflights that python3 exists
|
||||||
if it is missing. Install with `pkg install python3`.
|
*and* that `numpy`/`PIL` actually import, aborting if either is missing. Install
|
||||||
|
with `pkg install python3 py311-numpy py311-pillow`.
|
||||||
- **`COLIBRI_AUTOSPAWN_RPC_PROMPT` (a decision, not a dependency)** — the daemon
|
- **`COLIBRI_AUTOSPAWN_RPC_PROMPT` (a decision, not a dependency)** — the daemon
|
||||||
reads this on boot (`crates/colibri-daemon/src/socket.rs`). Set it to have the
|
reads this on boot (`crates/colibri-daemon/src/socket.rs`). Set it to have the
|
||||||
daemon auto-spawn an agent with that opening prompt on boot; leave it unset for
|
daemon auto-spawn an agent with that opening prompt on boot; leave it unset for
|
||||||
|
|
|
||||||
|
|
@ -74,7 +74,16 @@ if ! command -v python3 >/dev/null 2>&1; then
|
||||||
echo " Install it first: pkg install python3"
|
echo " Install it first: pkg install python3"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
echo " python3: $(command -v python3) OK"
|
# geodesic-dome-mcp imports numpy + PIL at module load, so a present python3
|
||||||
|
# is not enough — verify the modules actually import, or the tool fails only
|
||||||
|
# when the MCP host first calls it.
|
||||||
|
if ! python3 -c "import numpy, PIL" >/dev/null 2>&1; then
|
||||||
|
echo " ERROR: python3 present but numpy/Pillow are not importable."
|
||||||
|
echo " geodesic-dome-mcp needs both (imported at module load)."
|
||||||
|
echo " Install them: pkg install py311-numpy py311-pillow"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
echo " python3: $(command -v python3) (numpy + PIL OK)"
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
# ── 1. colibri binaries ───────────────────────────────────────────────
|
# ── 1. colibri binaries ───────────────────────────────────────────────
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue