plotly / Kaleido

Fast static image export for web-based visualization libraries with zero dependencies
MIT License
378 stars 38 forks source link

`plotly.write_image` fails to find Kaleido executable #210

Open augustebaum opened 1 month ago

augustebaum commented 1 month ago

Versions:

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)

gvwilson commented 1 month ago

@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 (greg.wilson@plot.ly) and I'll point you in the right direction. thanks - @gvwilson

ayjayt commented 1 week ago

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

obarbachan commented 3 days ago

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