plotly / Kaleido

Fast static image export for web-based visualization libraries with zero dependencies
Other
363 stars 36 forks source link

Kaleido failed to start in docker running windows #123

Closed flo453 closed 2 months ago

flo453 commented 2 years ago

Hello everyone,

I have a working plotly dash project that generates png files when I run it in my local environment. I now set up a docker container and generating png does suddenly not work anymore.

Error: "File "C:\venv\lib\site-packages\plotly\basedatatypes.py", line 3821, in write_image return pio.write_image(self, *args, **kwargs) File "C:\venv\lib\site-packages\plotly\io_kaleido.py", line 268, in write_image img_data = to_image( File "C:\venv\lib\site-packages\plotly\io_kaleido.py", line 145, in to_image img_bytes = scope.transform( File "C:\venv\lib\site-packages\kaleido\scopes\plotly.py", line 153, in transform response = self._perform_transform( File "C:\venv\lib\site-packages\kaleido\scopes\base.py", line 293, in _perform_transform self._ensure_kaleido() File "C:\venv\lib\site-packages\kaleido\scopes\base.py", line 198, in _ensure_kaleido raise ValueError(message) ValueError: Failed to start Kaleido subprocess"

Used Docker Enviroment:

Is there a way to solve this ?

gvwilson commented 2 months ago

Thanks for your interest in Kaleido. We are currently working on an overhaul that might address your issue - we hope to have news in a few weeks and will post an update then. Thanks - @gvwilson