Fix run-vps-data-production.sh to use PYTHON_BIN (resolving Pillow ModuleNotFoundError on VPS)

This commit is contained in:
Hermes Agent committed 2026-12-02 08:30:04 +00:00
1 parent 9378c594f9
commit 9ae3beb05a
2 files changed
+16 -11

No files matched your search

+2 -2
View File
@@ -3,8 +3,8 @@
<!-- HS-COMMIT-STATUS:START --> <!-- HS-COMMIT-STATUS:START -->
> **Gitea Commit & Release Telemetry (`v2.17.1` • Namespace `urn:io:hyperstitionstud`)** > **Gitea Commit & Release Telemetry (`v2.17.1` • Namespace `urn:io:hyperstitionstud`)**
> - **Repository Role & Public Route:** Shared PEP 420 Python core library (`hyperstitionstud_io.*`), MCP/REST server, `/quant/`, `/learn/`, `/engineering/`, `/math/`, & `/donate/` webroots &rarr; [`https://hyperstitionstud.io/`](https://hyperstitionstud.io/) > - **Repository Role & Public Route:** Shared PEP 420 Python core library (`hyperstitionstud_io.*`), MCP/REST server, `/quant/`, `/learn/`, `/engineering/`, `/math/`, & `/donate/` webroots &rarr; [`https://hyperstitionstud.io/`](https://hyperstitionstud.io/)
> - **Latest Commit Scope (`hyperstitionstudio-core`):** Synchronized v2.17.1 release state across 14 tracked module/artifact surface(s) > - **Latest Commit Scope (`hyperstitionstudio-core`):** Synchronized v2.17.1 release state across 1 tracked module/artifact surface(s)
> - **Touched Files / Surfaces:** `docs/SHORTHAND-DISAMBIGUATION-STANDARD.md`, `pyproject.toml`, `site/assets/hs-matrix-coderain.js`, `site/learn/index.html`, `site/learn/learn-app.js`, `site/quant/OPERATORS-MANUAL-QUANT-TIMESERIES-WORKBENCH.pdf`, `src/hyperstitionstud_io/ci/deploy_scripts_sync.py`, `src/hyperstitionstud_io/ci/public_regression.py` (+6 more) > - **Touched Files / Surfaces:** `deploy/run-vps-data-production.sh`
> - **Live Verified Ecosystem Metrics (`v2.17.1`):** `6` Repositories • `17` CLI Entrypoints • `20` MCP/REST Tools • `14` URN Resources • `63` Verified Web Routes • `388` KG Nodes / `1,282` Edges • `282` Glossary Entries • `4,943` Offline CMUdict Phonetics • `0` Synthetic Data > - **Live Verified Ecosystem Metrics (`v2.17.1`):** `6` Repositories • `17` CLI Entrypoints • `20` MCP/REST Tools • `14` URN Resources • `63` Verified Web Routes • `388` KG Nodes / `1,282` Edges • `282` Glossary Entries • `4,943` Offline CMUdict Phonetics • `0` Synthetic Data
<!-- HS-COMMIT-STATUS:END --> <!-- HS-COMMIT-STATUS:END -->
+14 -9
View File
@@ -38,6 +38,11 @@ if [[ -f "${REPOS_ROOT}/workspace.toml" ]]; then
export HYPERSTITIONSTUDIO_CONFIG="${REPOS_ROOT}/workspace.toml" export HYPERSTITIONSTUDIO_CONFIG="${REPOS_ROOT}/workspace.toml"
fi fi
PYTHON_BIN="python3"
if [[ -x "${REPOS_ROOT}/.venv/bin/python3" ]]; then
PYTHON_BIN="${REPOS_ROOT}/.venv/bin/python3"
fi
WINDOW_MODE="us-closing-bell" WINDOW_MODE="us-closing-bell"
OFFLINE_MODE=0 OFFLINE_MODE=0
DO_PUSH=1 DO_PUSH=1
@@ -73,11 +78,11 @@ unset OPENROUTER_API_KEY OPENAI_API_KEY ANTHROPIC_API_KEY
echo "[1/5] Running Stage 1 & Stage 2 periodic data production (window=${WINDOW_MODE}, offline=${OFFLINE_MODE})..." echo "[1/5] Running Stage 1 & Stage 2 periodic data production (window=${WINDOW_MODE}, offline=${OFFLINE_MODE})..."
if [[ "${OFFLINE_MODE}" -eq 1 ]]; then if [[ "${OFFLINE_MODE}" -eq 1 ]]; then
run_checked "hs-quant-harvest (offline)" python3 -m hyperstitionstud_io.quant.collector --mode "${WINDOW_MODE}" run_checked "hs-quant-harvest (offline)" "${PYTHON_BIN}" -m hyperstitionstud_io.quant.collector --mode "${WINDOW_MODE}"
run_checked "hs-macro-harvest (offline)" python3 -m hyperstitionstud_io.quant.macro --offline run_checked "hs-macro-harvest (offline)" "${PYTHON_BIN}" -m hyperstitionstud_io.quant.macro --offline
else else
run_checked "hs-quant-harvest (--append-history --live)" python3 -m hyperstitionstud_io.quant.collector --mode "${WINDOW_MODE}" --append-history --live run_checked "hs-quant-harvest (--append-history --live)" "${PYTHON_BIN}" -m hyperstitionstud_io.quant.collector --mode "${WINDOW_MODE}" --append-history --live
run_checked "hs-macro-harvest (live FRED CSV)" python3 -m hyperstitionstud_io.quant.macro run_checked "hs-macro-harvest (live FRED CSV)" "${PYTHON_BIN}" -m hyperstitionstud_io.quant.macro
fi fi
if [[ "${WINDOW_MODE}" == "utc-rollover" ]] && [[ -f "${REPOS_ROOT}/ingglish-hyperdope-gematria/ingglish-aq-archive/scripts/ci_provision_ingglish.py" ]]; then if [[ "${WINDOW_MODE}" == "utc-rollover" ]] && [[ -f "${REPOS_ROOT}/ingglish-hyperdope-gematria/ingglish-aq-archive/scripts/ci_provision_ingglish.py" ]]; then
CI_OUT_DIR="${REPOS_ROOT}/ingglish-hyperdope-ci" CI_OUT_DIR="${REPOS_ROOT}/ingglish-hyperdope-ci"
@@ -85,18 +90,18 @@ if [[ "${WINDOW_MODE}" == "utc-rollover" ]] && [[ -f "${REPOS_ROOT}/ingglish-hyp
CI_OUT_DIR="${REPOS_ROOT}/hyperdope-ci-build" CI_OUT_DIR="${REPOS_ROOT}/hyperdope-ci-build"
fi fi
if [[ -d "${CI_OUT_DIR}" ]]; then if [[ -d "${CI_OUT_DIR}" ]]; then
run_checked "ci_provision_ingglish.py (--tier 2)" python3 "${REPOS_ROOT}/ingglish-hyperdope-gematria/ingglish-aq-archive/scripts/ci_provision_ingglish.py" \ run_checked "ci_provision_ingglish.py (--tier 2)" "${PYTHON_BIN}" "${REPOS_ROOT}/ingglish-hyperdope-gematria/ingglish-aq-archive/scripts/ci_provision_ingglish.py" \
--archive-dir "${REPOS_ROOT}/ingglish-hyperdope-gematria/ingglish-aq-archive" \ --archive-dir "${REPOS_ROOT}/ingglish-hyperdope-gematria/ingglish-aq-archive" \
--out-dir "${CI_OUT_DIR}" \ --out-dir "${CI_OUT_DIR}" \
--tier 2 --tier 2
fi fi
fi fi
run_checked "quant.timeseries" python3 -m hyperstitionstud_io.quant.timeseries run_checked "quant.timeseries" "${PYTHON_BIN}" -m hyperstitionstud_io.quant.timeseries
run_checked "hs-daily-brief" python3 -m hyperstitionstud_io.quant.daily_brief run_checked "hs-daily-brief" "${PYTHON_BIN}" -m hyperstitionstud_io.quant.daily_brief
run_checked "build_encyclopedia_knowledge_graph.py" python3 "${REPOS_ROOT}/encyclopedia-knowledge-graph/scripts/build_encyclopedia_knowledge_graph.py" --verify-only run_checked "build_encyclopedia_knowledge_graph.py" "${PYTHON_BIN}" "${REPOS_ROOT}/encyclopedia-knowledge-graph/scripts/build_encyclopedia_knowledge_graph.py" --verify-only
echo "[2/5] Running Stage 3 transactional verification gates (hs-doctor, ReadOnlyIsolationGuard, test_core_suite)..." echo "[2/5] Running Stage 3 transactional verification gates (hs-doctor, ReadOnlyIsolationGuard, test_core_suite)..."
if ! python3 -m hyperstitionstud_io.ci.doctor || ! python3 "${REPOS_ROOT}/hyperstitionstudio-core/tests/test_core_suite.py"; then if ! "${PYTHON_BIN}" -m hyperstitionstud_io.ci.doctor || ! "${PYTHON_BIN}" "${REPOS_ROOT}/hyperstitionstudio-core/tests/test_core_suite.py"; then
echo "[ROLLBACK] Verification gate failed! Rolling back uncommitted changes in ${REPOS_ROOT} without touching tmpfs..." >&2 echo "[ROLLBACK] Verification gate failed! Rolling back uncommitted changes in ${REPOS_ROOT} without touching tmpfs..." >&2
for r in hyperstitionstudio-core ingglish-hyperdope-gematria encyclopedia-knowledge-graph; do for r in hyperstitionstudio-core ingglish-hyperdope-gematria encyclopedia-knowledge-graph; do
if [[ -d "${REPOS_ROOT}/${r}/.git" ]]; then if [[ -d "${REPOS_ROOT}/${r}/.git" ]]; then