-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Image export fails with Chromium 132 #253
Comments
Updated my MRE repo: https://github.com/mschoettle/plotly-image-export-alpine |
I managed to avoid these two errors and make it work by using Kaleido 0.1.0.post1 with choreographer 0.99.7 and then changing |
Hi @breJcharAff , we don't recommend pinning the old version. So @mschoettle, thanks so much for your patience, two things: chromium versionThe newer versions of Kaleido are going to, instead of automatically downloading the latest version of chromium, use a last known good version. This is a fix in These "last known good versions" can be downloaded through the cli These new versions of Kaleido ( Version ChangesKaleido v1.0.0.rc0 was the old api with the new engine, but strategy has changed, and all Kaleido v1 will be new api new engine. We haven't pushed anything > rc0 yet because we're still working on documentation and because Here is v1.0.0rc6 (current master branch), here is v1.0.0rc7. The api is slightly different and my personal reference is here: (for rc7) https://geopozo.github.io/Kaleido/ I know this is a lot. Once the documentation is done, v1 of Kaleido will 100% use the new API and engine. @gvwilson I think this is what support is going to look like during the migration. Closing, but open for discussion. |
I got the same error on Debian Bullseye in docker. Setting log level to DEBUG revealed that alot of dependencies for chrome was missing. Once that was solved I was able to get Kaleido running. Not sure if all are needed but this is what worked for me:
|
So what was the proposed workaround for this while we wait? @ayjayt |
@mrdobalina2k how did you install chrome in this case? |
Hi @dlogozz0 , this what I recommended elsewhere. Let me know if it works for you: mschoettle/plotly-image-export-alpine#1 That solution should basically be permanent. edit: One thing to note, if you're using alpine/musl, you have to install chromium from their package manager. if you're using a standard win/mac/linux distribution, you can use |
I used the method in the docs, kaleido.get_chrome_sync. It is a method imported from choreographer, and that was version 1.0.5 |
@ayjayt thanks for the suggestions. I've made a couple edits to our functions to use
I do have Kaleido installed in the Do you have any ideas why plotly is not recognizing kaleido? I have the following versions installed:
|
@mrdobalina2k I'm glad you were able to resolve the issue by installing dependencies. It is unfortunate that you need to do that, however. @dlogozz0 plotly will not recognize kaleido until plotly 6.1.0, this is the pr. A permanent solution is to use the kaleido library directly each time, it is also more efficient since you can control the lifetime of the engine. |
Since my example is using a |
@mschoettle in general yes but your docker examples use alpine which uses musl and |
Somewhat related to #211, with
alpine3.21
chromium v132 is now installed which fails with the following error:Kaleido: v1.0.0rc0
choreographer: 0.99.7
I pinned choreographer to
0.99.7
because with1.0.3
I get:For that error I created the following issue: plotly/choreographer#218 but maybe it is a Plotly/kaleido issue?
The text was updated successfully, but these errors were encountered: