Skip to content
This repository was archived by the owner on Aug 27, 2026. It is now read-only.
This repository was archived by the owner on Aug 27, 2026. It is now read-only.

electron cannot open display when running orca --help (Ubuntu) #386

Open

Description

@williamlai2

Hi, am running Ubuntu 18.04 and am trying to install orca. It is installed, but I can't get it to work. I have followed the instructions and also looked at previous issues, but it hasn't helped.

I have installed these in ubuntu:

sudo apt-get install nodejs-dev node-gyp libssl1.0-dev
apt install npm
npm install -g electron@6.1.4 orca
sudo apt-get install xvfb

Looking at the location:

root@cmcapvm01:~# which orca
/usr/local/bin/orca
root@cmcapvm01:~# orca --help

(electron:7505): Gtk-WARNING **: 00:58:35.738: cannot open display: :0

And testing the export: https://plotly.com/r/static-image-export/

library(plotly)

if (!require("processx")) install.packages("processx")
fig <- plot_ly(z = ~volcano) %>% add_surface()
orca(fig, "surface-plot.svg")


Error: The orca command-line utility is required for this functionality.

Please follow the installation instructions here -- https://github.com/plotly/orca#installation

I have also tried the headless server configuration:

$ sudo apt-get install xvfb

#!/bin/bash
xvfb-run -a /path/to/orca-X.Y.Z-x86_64.AppImage "$@"

But it still doesn't run.

Activity

  1. changed the title [-]electron cannot open display wneh running orca --help (Ubuntu)[/-] [+]electron cannot open display when running orca --help (Ubuntu)[/+] on Jan 31, 2022
  2. hailindu commented on Feb 14, 2022

    @hailindu

    Hi @williamlai2, any solution to it? I am having the same issue

  3. williamlai2 commented on Feb 14, 2022

    @williamlai2
    Author

    No, I haven't found a solution to it yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions