error when exporting scatter3d image with orca under Xvfb
See original GitHub issueI am trying to export scatter3d plot using orca under xvfb. 2D scatter plots are exported correctly. The error occurs only for 3d scatter plots. I will appreciate any help.
library(plotly)
p <- plot_ly(x = 1:10, y = 1:10, color = 1:10)
b <- plotly_build(p)$x[c("data", "layout")]
json <- plotly:::to_JSON(b)
write(json, file="test_1.json")
p <- plot_ly(x = 1:10, y = 1:10, z=1:10, color = 1:10)
b <- plotly_build(p)$x[c("data", "layout")]
json <- plotly:::to_JSON(b)
write(json, file="test_2.json")
test@bc6ecceb987e:~$ orca graph test_1.json -o test_1.png
test@bc6ecceb987e:~$ orca graph test_2.json -o test_2.png
done with code 1 in 154.64 ms - failed or incomplete task(s)
test@bc6ecceb987e:~$ cat `which orca`
#!/bin/bash
xvfb-run /usr/bin/orca "$@"
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Python Orca error - Plotly Community Forum
The orca executable is required in order to export figures as static images, but the executable that was found at 'anaconda3/bin/orca'
Read more >plotlywidget | Yarn - Package Manager
Install with jupyter labextension install plotlywidget in JupyterLab, otherwise just install Plotly.py and it will automatically work in Classic Notebooks.
Read more >python-plotly-4.7.1-bp152.1.1 - SUSE Package Hub -
changes from version 4.5.2: * Fixed + Fix build errors in JupyterLab ... for using an externally managed orca server for image export...
Read more >locate lib Orca with python - plotly - Stack Overflow
This is the error that I got: ValueError: The orca executable is required in order to export figures as static images, but the...
Read more >save plotly images from Rstudio in docker, get error ! System ...
I have RStudio in docker, and am trying to save a plotly image using orca. I installed orca following python 3.x - Docker...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, I am trying to run it as a docker image. I have the following lines in a Dockerfile:
This works for 2d plots but fails for 3d. I don’t know how to run xvfb as a server as you suggested. Any ideas how to modify Dockerfile to get it working? Thank you.
Coming here from #97. if I’m using the flag correctly,
--enable-webgl
does not get around the error for me (Linux 5.10.3-arch1-1
) but using the1.1.1
app image does! 1.3.1 appimage errors in the same way.plotly::orca
also works from R, but only withprocessx::run
and not withsystem
.My current work around is to mv the 1.1.1 Appimage to
~/bin/orca
with$HOME/bin
first in$PATH
plotly::orca
from R produces a plot without error:I edited the
orca
R function to print the command it runs (processx::run
). Works in R but not in bash. I cannot find what’s different between the two environments!Using
system
in R gives the same error as in bash