Closed dvirginz closed 4 months ago
Hi - we are trying to tidy up the stale issues and PRs in Plotly's public repositories so that we can focus on things that are still important to our community. Since this one has been sitting for several years, I'm going to close it; if it is still a concern, please add a comment letting us know what recent version of our software you've checked it with so that I can reopen it and add it to our backlog. Thanks for your help - @gvwilson
I know this is a question that have been asked before, But non of the previous solutions worked.
I'm trying to save a
plotly
image to a static file. The following error returns in multiple configurations and hacks I tried (the attempts are described below):The things I've attempted:
1 ) Create a
orca_xvfb.bash
with the following content (insideconda/envs/env/bin
):and add
plotly.io.orca.config.executable = 'orca_xvfb.bash'
2 ) Open
xvfb
manually, meaning: 2.1 )import subprocess;os.environ["DISPLAY"]=":0";xvfb = subprocess.Popen(['Xvfb', ':0']);
or 2.2 )from xvfbwrapper import Xvfb; vdisplay = Xvfb(); vdisplay.start()
But all of the above did not worked.
Ubuntu 18.04 plotly 4.7.1