0

我有一个工作的 plotly dash 项目,当我在本地环境中运行它时会生成 png 文件。我现在设置了一个 docker 容器并且生成 png 突然不再起作用了。

错误:

"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"

使用的 Docker 环境:

  • 来自微软的 windows servercore mcr,“mcr.microsoft.com/windows/servercore:ltsc2019”
  • 蟒蛇 3.8.6
  • 万花筒 0.2.1
  • 情节 5.3.1
  • 破折号 2.0.0

有没有办法解决这个问题?

4

0 回答 0