Clone
2
WIKI_SETUP
stan44 edited this page 2026-02-23 20:19:14 -06:00
Setup and Installation
This page covers local setup for the Python baseline and optional C# migration workspace.
Prerequisites
- Python
3.14 pipand virtual environment support- Windows or Linux
- Optional: GPU drivers/toolkit if using
requirements_gpu.txt
Dependency Profiles
requirements_base.txt: shared runtime dependenciesrequirements_cpu_only.txt: base + CPU AI stackrequirements_gpu.txt: base + GPU AI stackrequirements_nlp_optional.txt: optional spaCy backend
Windows Setup (CPU default)
cd Project_Journal
py -3.14 -m venv .venv
.\.venv\Scripts\Activate.ps1
python -m pip install --upgrade pip
python -m pip install --extra-index-url https://download.pytorch.org/whl/cpu -r requirements_cpu_only.txt
Run desktop app:
python .\journal\run_desktop.py
Linux Setup (CPU default)
cd Project_Journal
python3.14 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install --extra-index-url https://download.pytorch.org/whl/cpu -r requirements_cpu_only.txt
Run desktop app:
python ./journal/run_desktop.py
Linux GPU Setup (optional)
cd Project_Journal
python3.14 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install -r requirements_gpu.txt
Optional NLP Backend (spaCy)
python -m pip install -r requirements_nlp_optional.txt
python -m spacy download en_core_web_sm
NLP backend modes:
auto(default): spaCy if available, fallback otherwisespacy: require spaCy and fail if unavailablefallback: always use fallback NLP heuristics
Examples:
$env:JOURNAL_NLP_BACKEND = "fallback"
python .\journal\run_desktop.py
export JOURNAL_NLP_BACKEND=spacy
python ./journal/run_desktop.py
C# Migration Workspace Setup (optional)
Location: journal-master/journal/
Use:
journal-master/journal/README.mdjournal-master/journal/MINIMAL_MACHINE_SETUP.md
Quick check:
cd journal-master/journal
./scripts/dotnet-min.ps1 restore Journal.Sidecar/Journal.Sidecar.csproj
./scripts/dotnet-min.ps1 build Journal.Sidecar/Journal.Sidecar.csproj
./scripts/dotnet-min.ps1 run --project Journal.SmokeTests/Journal.SmokeTests.csproj
Release gate (repo root):
cd Project_Journal
./scripts/migration-gate.ps1
This command runs:
- C# sidecar/api builds
- C# smoke suite
- Python-vs-C# parity harness + vault fixture matrix
- HTTP API contract tests