docs: add Troubleshooting section — absolute import pitfall (archivar) + tools import crash
This commit is contained in:
@@ -102,6 +102,14 @@ GATEWAY_ALLOW_ALL_USERS=true
|
|||||||
- Bot user account on the Rocket.Chat server
|
- Bot user account on the Rocket.Chat server
|
||||||
- Python 3.10+ (hermes-agent venv)
|
- 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
|
## License
|
||||||
|
|
||||||
[Unlicense](LICENSE) — Public Domain. See [LICENSE](LICENSE).
|
[Unlicense](LICENSE) — Public Domain. See [LICENSE](LICENSE).
|
||||||
|
|||||||
Reference in New Issue
Block a user