Skip to content

plotly.write_image fails to find Kaleido executable #210

Closed

Description

@augustebaum

Versions:

  • plotly: 5.24.1
  • Kaleido: 0.2.1

To reproduce:

import plotly.graph_objects as go
fig = go.Figure()
fig.write_image('test.png')

I get the error:

FileNotFoundError: [Errno 2] No such file or directory: '/my/project/.venv/lib/python3.12/site-packages/kaleido/executable/kaleido'

which is true: in my filesystem the executable is installed as

/my/project/.venv/lib/python3.12/site-packages/kaleido/executable/bin/kaleido

(note the /bin)

Activity

  1. gvwilson commented on Oct 24, 2024

    @gvwilson
    Contributor

    @augustebaum we are prototyping a completely new version of Kaleido that may resolve some of these issues - if you'd like to help us test it out on your platform, please email me ([email protected]) and I'll point you in the right direction. thanks - @gvwilson

  2. transferred this issue fromplotly/plotly.pyon Oct 24, 2024
  3. self-assigned this
    on Nov 15, 2024
  4. added
    stale
    and removed on Nov 15, 2024
  5. ayjayt commented on Nov 15, 2024

    @ayjayt
    Collaborator

    There is a new version of kaleido out, I wonder if there is any follow up to this?

  6. obarbachan commented on Nov 22, 2024

    @obarbachan

    I'm using plotly==5.24.1 and have faced the same issue. Add to this that simply putting kaleido in requirements.txt does not solve the problem as follows:

    ERROR: Ignored the following yanked versions: 0.4.0, 0.4.1, 0.4.2
    ERROR: Could not find a version that satisfies the requirement kaleido (from versions: 0.4.0rc1, 0.4.0rc2, 0.4.0rc3, 0.4.0rc4, 0.4.0rc5, 1.0.0rc0)
    ERROR: No matching distribution found for kaleido
    
  7. gvwilson commented on May 28, 2025

    @gvwilson
    Contributor

    I am closing this issue as I believe it is stale - if it's still relevant to your work, please try the latest release candidate of Kaleido (1.0.0rc13) and if the problem persist, we'll re-open the issue. Thanks - @gvwilson

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

Metadata

Metadata

Assignees

Labels

stale

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions