From e6eddcd3dafa2b274782e8a98230f3d353c470bb Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Wed, 3 Jun 2026 06:50:35 +0200 Subject: [PATCH] =?UTF-8?q?docs:=20add=20Troubleshooting=20section=20?= =?UTF-8?q?=E2=80=94=20absolute=20import=20pitfall=20(archivar)=20+=20tool?= =?UTF-8?q?s=20import=20crash?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 69e0718..2e57842 100644 --- a/README.md +++ b/README.md @@ -102,6 +102,14 @@ GATEWAY_ALLOW_ALL_USERS=true - Bot user account on the Rocket.Chat server - Python 3.10+ (hermes-agent venv) +## Troubleshooting + +| Symptom | Cause | Fix | +|---------|-------|-----| +| `No module named 'hermes_plugins.rocketchat_platform.tools'` | `__init__.py` has hard `from .tools import register_tools` but `tools.py` missing | Wrap import in `try/except ImportError` and guard `register_tools(ctx)` call | +| `Failed to load plugin 'rocketchat-platform': No module named 'archivar'` | Plugin submodule uses **absolute imports** (`from archivar.X import Y`) — these only work when the module is on global `sys.path`, not in Hermes' Plugin-Loader context | **All imports within the plugin package MUST be relative.** Rule: `from archivar.X` → `from .X` (inside submodule), `from archivar.X` → `from .archivar.X` (from `adapter.py`). Affects ALL `.py` files in the submodule. 2026-06-03: 11 imports in 5 files affected | +| Gateway shows `No adapter available for rocketchat`, only Telegram active | Plugin loading failed silently — check `errors.log` for the exact import error | Fix the import, then `systemctl --user restart hermes-gateway`. Verify: `journalctl --user -u hermes-gateway | grep "Subscribed to"` | + ## License [Unlicense](LICENSE) — Public Domain. See [LICENSE](LICENSE).