Skip to content

Docs build fails: kaleido 0.2.1 rejects plotly 7.0.0's image export #8307

Closed

Description

@blink1073

Description:

pyproject.toml pins kaleido==0.2.1 against an unbounded plotly>=5.20. plotly 7.0.0 (released 2026-08-25) dropped support for kaleido below 1.0, so write_image now raises for every gallery example, and every doc build since has failed on both macos-docs and CircleCI's doc job. SphinxGalleryPngRenderer.render catches the real exception and re-raises a misleading "kaleido and psutil are required" message; both packages are in fact installed.

Expected: the docs build succeeds with the dependencies pyproject.toml specifies.

Way to reproduce:

import plotly.graph_objects as go
from plotly.io import write_image

fig = go.Figure(data=go.Scatter(x=[1, 2, 3], y=[1, 2, 3]))
write_image(fig, "/tmp/test.png")
RuntimeError:
Image export requires the Kaleido package, v1.0.0 or greater,
which can be installed using pip:

    $ pip install --upgrade "kaleido>=1"

Also visible directly in CI: https://github.com/scikit-image/scikit-image/actions/runs/33330155165/job/99307175347

Version information:

plotly 7.0.0, kaleido 0.2.1, Python 3.13.15, Ubuntu 24.04 (arm64), scikit-image main at f0b504e

Activity

  1. added 3 commits that reference this issue on Aug 31, 2026
    7f51c24
    90d73f5
    ec72b0c
  2. added a commit that references this issue on Sep 2, 2026
    a69547b
  3. added a commit that references this issue on Sep 4, 2026
    96244a6
  4. added a commit that references this issue on Nov 13, 2026
    bf5c145
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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions