ivanlosarcos
ivanlosarcos

Reputation: 37

Plotly `kaleido` and `orca` installation issues on Raspberry Pi (ARM64) for exporting static images

I'm trying to use Plotly on my Raspberry Pi (ARM64) to export static images from my figures, but I've run into several issues when trying to use both kaleido and orca as image export engines. Basically the first idea was to simply execute:

fig.write_image("static/mensajes_enviados.png")

But when doing so I was facing the following problem:

Failed to start Kaleido subprocess. Error stream: /home/ivanlosarcos/.local/lib/python3.11/site-packages/kaleido/executable/kaleido: line 10: 29947 Segmentation fault ./bin/kaleido $@

After investigating a bit I read somewhere that kaleido and the arm64 of a RaspberryPi5 do not get along very well, so I tried to use orca.

Steps I've tried:

  1. kaleido Installation:

    • I attempted to install kaleido using pip install kaleido, and the installation worked perfectly fine but I kept getting the error showed above.
  2. orca Installation (via apt and conda):

The orca executable is required in order to export figures as static images, but the executable that was found at '/usr/local/bin/orca' does not seem to be a valid plotly orca executable. Please refer to the end of this message for details on what went wrong.

Details:

What I expect:

What I have tried:

My question:

Any help or insights would be greatly appreciated! Thank you!

Upvotes: 0

Views: 92

Answers (0)

Related Questions