Plotly 5.x recommends `pip install -U kaleido` which is no longer compatible
未关闭
@emilykl 已经在做这个了。
开始于 2025年6月25日。
feature
P1
- 主要语言
- Python
- 星标
- 18.8k
- 派生
- 2.8k
- 平均合并
- 16 小时 26 分钟
- 30 天内合并 PR
- 21
描述
Just ran into this issue since kaleido 1.0.0 was just released yesterday.
Steps to Reproduce
- Install plotly 5.x (
pip install "plotly<6.0.0") - In a python session, create a plotly figure and try to write it using
to_image(using instructions from https://plotly.com/python/static-image-export/) - Follow the steps in the error message to install kaleido
pip install -U kaleido - Repeat step 2
Expected Results
4. Image export should work
Actual Results
4. Get an error about the version of kaleido not being compatible with plotly.
Warning: You have Plotly version 5.24.1, which is not compatible with this version of Kaleido (1.0.0).
This means that static image generation (e.g. `fig.write_image()`) will not work.
Please upgrade Plotly to version 6.1.1 or greater, or downgrade Kaleido to version 0.2.1.
Two things could help here:
- In
plotly 5.x, update the error message to saypip install -U "kaleido<1.0.0": https://github.com/plotly/plotly.py/blob/5d79b80c53f779274170743539a481c524e04c8f/packages/python/plotly/plotly/io/_kaleido.py#L136 - In
kaleido 1.x, update the error message to say how to upgrade plotly or downgrade kaleido, e.g.pip install -U plotly, orpip install "kaleido<1.0.0"
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
评估
这个 Issue 还没有评估数据。