Skip to content

can not find pyyaml #29

Closed
Closed

Description

@grunnersvip

Just installed Hermes on a headless linux box this morning and there is no pyyaml apparently.

What was wrong: the third-party plugin does import yaml, but Hermes' runtime Python doesn't ship PyYAML — Hermes core uses its own vendored parser (import hermes_yaml as yaml).
The plugin's _read_yaml() caught the ImportError and silently returned an empty config, so the page fell back to its hardcoded defaults: DEFAULT_MEMORY_LIMIT = 2200 and no provider → holographic showing as disabled.

What I did: patched _read_yaml in ~/.hermes/plugins/hermes-memory-ui/dashboard/plugin_api.py to fall back to hermes_yaml when PyYAML is missing.

Activity

  1. xraysight commented on Oct 7, 2026

    @xraysight
    Owner

    Hi @grunnersvip, thanks for reporting this and identifying the cause. I reproduced the silent config fallback and submitted a fix in PR #32.

    The plugin now falls back to hermes_yaml when PyYAML is unavailable, while remaining compatible with older Hermes installations. Regression tests cover memory limits and holographic provider detection with both parser options. All 103 tests and CI checks pass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions