Skip to content

Python Session discards startup plugin load failures #2204

Closed

Description

@giswqs

Session(plugins=True) calls load_plugins() before constructing its engine, but discards the returned errors (apps/rustgis-python/python/rustgis/__init__.py:790). A failed startup plugin load therefore produces a usable session without reporting which plugin failed or why. This includes refusal caused by an invalid cached blocklist, so it is also hard to understand why installed commands did not become available.

Source confirmed on main during the release sweep. Original deferred review comment. Duplicate search checked Python/plugin issues and the broader #2008 audit; this issue scopes the Python startup reporting boundary.

  • Surface returned load failures through the Python package's documented exception, warning or session-notice channel, with plugin identity and reason.
  • Preserve the intended ability to start when some plugins fail, if that is the chosen policy; document that policy.
  • Add a regression for a failed plugin load and a clean-start control, including an invalid blocklist-cache failure if feasible.

No runtime reproduction is claimed here; the discarded return value is verified in source.

Activity

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