I am using Ubuntu running on Windows 10 using WSL1 (https://ubuntu.com/tutorials/ubuntu-on-windows#1-overview).
The first time I run kaleido write_image function to export a PNG figure it works fine.
The second and subsequent times write_image function hangs. When I interrupt with the keyboard I get the following on the terminal:
I have left it run overnight and didn't finish so it definitely hangs.
^CTraceback (most recent call last):
File "main.py", line 43, in
barChart.graphBarChart(cfg.emotionalGraphFilename, cfg.outputImagesFolder, xAxisLabels, yAxisValues)
File "/home/soltuin/devsource/doc-to-pdf/doc-to-pdf/barChart.py", line 81, in graphBarChart
fig.write_image(fileName, width=barWidth, height=barHeight, engine="kaleido", validate=False)
File "/home/soltuin/pythonenvironments/neocemod/lib/python3.8/site-packages/plotly/basedatatypes.py", line 3251, in write_image
return pio.write_image(self, *args, **kwargs)
File "/home/soltuin/pythonenvironments/neocemod/lib/python3.8/site-packages/plotly/io/_kaleido.py", line 244, in write_image
img_data = to_image(
File "/home/soltuin/pythonenvironments/neocemod/lib/python3.8/site-packages/plotly/io/_kaleido.py", line 130, in to_image
img_bytes = scope.transform(
File "/home/soltuin/pythonenvironments/neocemod/lib/python3.8/site-packages/kaleido/scopes/plotly.py", line 102, in transform
response = self._perform_transform(
File "/home/soltuin/pythonenvironments/neocemod/lib/python3.8/site-packages/kaleido/scopes/base.py", line 218, in _perform_transform
response = self._proc.stdout.readline()
I looked at the kaleido/scopes/base.py line 218 and it seems to be waiting for a response from kaleido process? (I don't know kaleido internals)
Is there anyway I can debug this issue? add verbose of some sort?
I am using Ubuntu running on Windows 10 using WSL1 (https://ubuntu.com/tutorials/ubuntu-on-windows#1-overview).
The first time I run kaleido write_image function to export a PNG figure it works fine.
The second and subsequent times write_image function hangs. When I interrupt with the keyboard I get the following on the terminal:
I have left it run overnight and didn't finish so it definitely hangs.
^CTraceback (most recent call last):
File "main.py", line 43, in
barChart.graphBarChart(cfg.emotionalGraphFilename, cfg.outputImagesFolder, xAxisLabels, yAxisValues)
File "/home/soltuin/devsource/doc-to-pdf/doc-to-pdf/barChart.py", line 81, in graphBarChart
fig.write_image(fileName, width=barWidth, height=barHeight, engine="kaleido", validate=False)
File "/home/soltuin/pythonenvironments/neocemod/lib/python3.8/site-packages/plotly/basedatatypes.py", line 3251, in write_image
return pio.write_image(self, *args, **kwargs)
File "/home/soltuin/pythonenvironments/neocemod/lib/python3.8/site-packages/plotly/io/_kaleido.py", line 244, in write_image
img_data = to_image(
File "/home/soltuin/pythonenvironments/neocemod/lib/python3.8/site-packages/plotly/io/_kaleido.py", line 130, in to_image
img_bytes = scope.transform(
File "/home/soltuin/pythonenvironments/neocemod/lib/python3.8/site-packages/kaleido/scopes/plotly.py", line 102, in transform
response = self._perform_transform(
File "/home/soltuin/pythonenvironments/neocemod/lib/python3.8/site-packages/kaleido/scopes/base.py", line 218, in _perform_transform
response = self._proc.stdout.readline()
I looked at the kaleido/scopes/base.py line 218 and it seems to be waiting for a response from kaleido process? (I don't know kaleido internals)
Is there anyway I can debug this issue? add verbose of some sort?