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.

Cannot get Orca to save a plotly figure #406

Description

@ndrubins

Hi,

I'm using R on my mac to try and save a plotly figure as a PDF using orca.
I have installed orca using: conda install -c plotly plotly-orca, and made sure it is in my PATH using:

Sys.setenv("PATH" = paste(Sys.getenv("PATH"), "/Users/rn/miniconda3/lib/node_modules/orca/bin/", sep = .Platform$path.sep))

Which then appears in PATH:

Sys.getenv("PATH")
[1] "/Users/rn/miniconda3/bin:/Users/rn/miniconda3/condabin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/X11/bin:/Applications/iTerm.app/Contents/Resources/utilities:/Library/Frameworks/Python.framework/Versions/3.13/bin:/Users/rn:/usr/local/bin:/usr/local/bin:/Users/rn/miniconda3/lib/node_modules/orca/bin/"

But when I try saving my plotly object (pl below), I get:

orca(pl,"pl.pdf")

Error in `processx::run("orca", "-h")`:
! System command 'orca' failed
---
Exit status: 1
Stderr (last 10 lines, see `$stderr` for more):
    at Module.load (node:internal/modules/cjs/loader:1288:32)
    at Module._load (node:internal/modules/cjs/loader:1104:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:174:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/Users/rn/miniconda3/lib/node_modules/orca/bin/orca.js'
  ]
}

Node.js v20.17.0
---
Type .Last.error to see the more details.

Note that npm is in my /usr/local/bin, which is part of PATH.

Thanks

Activity

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