From 5a14f204a3434e08ef32e9da598ae5a250f43d43 Mon Sep 17 00:00:00 2001 From: Anton Dziatkovskii <194927794+tonydzi@users.noreply.github.com> Date: Wed, 4 Nov 2026 20:04:07 +0000 Subject: [PATCH] docs(install): pin Python 3.12 in the sqlite-graph-memory uvx lines Without the pin, an Intel Mac whose uv defaults to a newer Python cannot install [embeddings]: torch has no wheels there for 3.13+. Resolver on x86_64-apple-darwin for [embeddings]==0.3.5: 3.14 fails, 3.12 passes with torch 2.2.2. Same fix as tonydzi/sqlite-graph-memory#76. Versions in the guide are unchanged, since it is a dated snapshot. Assisted-by: Claude Code/claude-opus-5-5 Machine: MacPro192 Account: tonydzi Operator: Anton Co-Authored-By: Claude Opus 5.5 --- README.md | 2 +- README.ru.md | 2 +- docs/EXISTING-SETUP.ru.md | 14 +++++++------- plugins/memory/.claude-plugin/plugin.json | 4 +++- 4 files changed, 12 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index f08c401..e6a3399 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ marketplace, because its embeddings stack downloads about 2 GB on first start: It registers the [sqlite-graph-memory](https://github.com/tonydzi/sqlite-graph-memory) MCP server (`sgm-mcp`) and asks for one setting, the index folder (`BRAIN_INDEX_DIR`) you built with -`uvx --from 'sqlite-graph-memory[embeddings]' sgm-index `. +`uvx --python 3.12 --from 'sqlite-graph-memory[embeddings]' sgm-index `. It is MIT, it costs nothing, and nothing here phones home. Take what you need, delete the rest, and open an issue if a skill breaks on your machine. Paths are documented in diff --git a/README.ru.md b/README.ru.md index b8acacb..7126e98 100644 --- a/README.ru.md +++ b/README.ru.md @@ -53,7 +53,7 @@ npx skills add tonydzi/second-brain-starter-kit Плагин регистрирует MCP-сервер [sqlite-graph-memory](https://github.com/tonydzi/sqlite-graph-memory) (`sgm-mcp`) и спрашивает одну настройку: папку индекса (`BRAIN_INDEX_DIR`), собранную командой -`uvx --from 'sqlite-graph-memory[embeddings]' sgm-index <папка с заметками>`. +`uvx --python 3.12 --from 'sqlite-graph-memory[embeddings]' sgm-index <папка с заметками>`. MIT, бесплатно, никуда не звонит. Берите нужное, лишнее удаляйте, а если скилл сломался на вашей машине, заводите issue. Пути описаны в [docs/PATHS.md](docs/PATHS.md). diff --git a/docs/EXISTING-SETUP.ru.md b/docs/EXISTING-SETUP.ru.md index 0c6d63f..aecccf1 100644 --- a/docs/EXISTING-SETUP.ru.md +++ b/docs/EXISTING-SETUP.ru.md @@ -73,18 +73,18 @@ macOS/Linux, в терминале: ```bash export BRAIN_INDEX_DIR="$PWD/.sgm-index" -uvx --from 'sqlite-graph-memory[embeddings]==0.3.5' sgm-index ./notes -uvx --from 'sqlite-graph-memory[embeddings]==0.3.5' sgm-ask --ab "What decision is recorded in the sample notes?" -claude mcp add -s local sqlite-graph-memory -e "BRAIN_INDEX_DIR=$BRAIN_INDEX_DIR" -- uvx --from 'sqlite-graph-memory[embeddings]==0.3.5' sgm-mcp +uvx --python 3.12 --from 'sqlite-graph-memory[embeddings]==0.3.5' sgm-index ./notes +uvx --python 3.12 --from 'sqlite-graph-memory[embeddings]==0.3.5' sgm-ask --ab "What decision is recorded in the sample notes?" +claude mcp add -s local sqlite-graph-memory -e "BRAIN_INDEX_DIR=$BRAIN_INDEX_DIR" -- uvx --python 3.12 --from 'sqlite-graph-memory[embeddings]==0.3.5' sgm-mcp ``` Windows PowerShell, в терминале: ```powershell $env:BRAIN_INDEX_DIR = Join-Path (Get-Location) '.sgm-index' -uvx --from 'sqlite-graph-memory[embeddings]==0.3.5' sgm-index ./notes -uvx --from 'sqlite-graph-memory[embeddings]==0.3.5' sgm-ask --ab 'What decision is recorded in the sample notes?' -claude mcp add -s local sqlite-graph-memory -e "BRAIN_INDEX_DIR=$env:BRAIN_INDEX_DIR" -- uvx --from 'sqlite-graph-memory[embeddings]==0.3.5' sgm-mcp +uvx --python 3.12 --from 'sqlite-graph-memory[embeddings]==0.3.5' sgm-index ./notes +uvx --python 3.12 --from 'sqlite-graph-memory[embeddings]==0.3.5' sgm-ask --ab 'What decision is recorded in the sample notes?' +claude mcp add -s local sqlite-graph-memory -e "BRAIN_INDEX_DIR=$env:BRAIN_INDEX_DIR" -- uvx --python 3.12 --from 'sqlite-graph-memory[embeddings]==0.3.5' sgm-mcp ``` Последняя команда только для Claude Code: область `local` относится к текущему проекту. Новый проверочный чат открывайте **в этой же папке**, затем выполните `claude mcp list` и проверьте подключение. В среде только с Codex последнюю строку пропустите. Для Codex добавьте **одну** запись в существующий `~/.codex/config.toml` (или конфиг, указанный настройками вашего запуска), сохранив остальные настройки: @@ -96,7 +96,7 @@ claude mcp add -s local sqlite-graph-memory -e "BRAIN_INDEX_DIR=$env:BRAIN_INDEX ```toml [mcp_servers.sqlite-graph-memory] command = "uvx" -args = ["--from", "sqlite-graph-memory[embeddings]==0.3.5", "sgm-mcp"] +args = ["--python", "3.12", "--from", "sqlite-graph-memory[embeddings]==0.3.5", "sgm-mcp"] env = { BRAIN_INDEX_DIR = "/absolute/path/to/.sgm-index" } ``` diff --git a/plugins/memory/.claude-plugin/plugin.json b/plugins/memory/.claude-plugin/plugin.json index f8d0338..8a6f752 100644 --- a/plugins/memory/.claude-plugin/plugin.json +++ b/plugins/memory/.claude-plugin/plugin.json @@ -12,7 +12,7 @@ "index_dir": { "type": "directory", "title": "Index directory", - "description": "The folder `sgm-index` wrote for your notes (BRAIN_INDEX_DIR). Build it once with: uvx --from 'sqlite-graph-memory[embeddings]' sgm-index ", + "description": "The folder `sgm-index` wrote for your notes (BRAIN_INDEX_DIR). Build it once with: uvx --python 3.12 --from 'sqlite-graph-memory[embeddings]' sgm-index ", "required": true } }, @@ -20,6 +20,8 @@ "sgm-mcp": { "command": "uvx", "args": [ + "--python", + "3.12", "--with", "sqlite-graph-memory[embeddings]>=0.3.1,<0.4", "sqlite-graph-memory"