MemPalace/mempalace · error · KeyError

unknown source adapter {name!r}; available: {available_adapt

Error message

unknown source adapter {name!r}; available: {available_adapters()}

What it means

Error "unknown source adapter {name!r}; available: {available_adapters()}" thrown in MemPalace/mempalace.

Source

Thrown at mempalace/sources/registry.py:108

                )
                continue
            _registry.setdefault(ep.name, cls)
        _discovered = True


def available_adapters() -> list[str]:
    """Return sorted list of all registered adapter names."""
    _discover_entry_points()
    return sorted(_registry.keys())


def get_adapter_class(name: str) -> Type[BaseSourceAdapter]:
    """Return the registered adapter class for ``name``."""
    _discover_entry_points()
    try:
        return _registry[name]
    except KeyError as e:
        raise KeyError(f"unknown source adapter {name!r}; available: {available_adapters()}") from e


def get_adapter(name: str) -> BaseSourceAdapter:
    """Return a long-lived instance of the named adapter.

    Instances are cached per-name; repeated calls return the same object.
    Call :func:`reset_adapters` in tests that need isolation.
    """
    _discover_entry_points()
    with _lock:
        inst = _instances.get(name)
        if inst is not None:
            return inst
        cls = _registry.get(name)
        if cls is None:
            raise KeyError(
                f"unknown source adapter {name!r}; available: {sorted(_registry.keys())}"
            )

View on GitHub (pinned to 06cb6987f0)

Solutions

  1. Choose one of the listed available adapters, or install the adapter package

When it happens

Trigger: Thrown at mempalace/sources/registry.py:108 when the library encounters an invalid state.

Common situations: An unknown source adapter name was requested.


AI-assisted analysis of MemPalace/mempalace@06cb6987f0 (2026-08-15). Data as JSON: /api/errors/ec760aab910b0c56. Report an issue: GitHub.