Closed brunotjuliani closed 3 years ago
Hi @brunotjuliani,
thanks for the report. This part of the error messages
[0510/172927.836500:ERROR:platform_shared_memory_region_posix.cc(253)] Unable to access(W_OK|X_OK) /tmp: Read-only file system (30)
.
Does it make sense that your process wouldn't have write access to the /tmp
directory? If that's the case (and you can't change it), you could try removing the --disable-dev-shm-usage
chromium flag and see if that makes a difference. Here's the general docs on customizing chromium flags (https://github.com/plotly/Kaleido/wiki/Customizing-Chromium-Flags). In particular, try doing this before the write_image
call.
import plotly.io as pio
pio.kaleido.scope.chromium_args = tuple([arg for arg in pio.kaleido.scope.chromium_args if arg != "--disable-dev-shm-usage"])
Hi @brunotjuliani,
thanks for the report. This part of the error messages
[0510/172927.836500:ERROR:platform_shared_memory_region_posix.cc(253)] Unable to access(W_OK|X_OK) /tmp: Read-only file system (30)
.Does it make sense that your process wouldn't have write access to the
/tmp
directory? If that's the case (and you can't change it), you could try removing the--disable-dev-shm-usage
chromium flag and see if that makes a difference. Here's the general docs on customizing chromium flags (https://github.com/plotly/Kaleido/wiki/Customizing-Chromium-Flags). In particular, try doing this before thewrite_image
call.import plotly.io as pio pio.kaleido.scope.chromium_args = tuple([arg for arg in pio.kaleido.scope.chromium_args if arg != "--disable-dev-shm-usage"])
This worked just fine. Thanks for the response.
I'm having and issue with the fig.write_image() function. The code was functioning well, but now the following message appears:
Already tried to reinstall the package.