orca icon indicating copy to clipboard operation
orca copied to clipboard

Mac OS X: error creating executable on path

Open antoinerg opened this issue 5 years ago • 6 comments

On a fresh installation of Mac OS Fresh Sierra, when opening Orca, the following silently fails because folder /usr/local/bin does not exist: https://github.com/plotly/orca/blob/14de6f55838c0570dd455222ebd78e9f69c404d4/bin/orca_electron.js#L31

antoinerg avatar Mar 05 '20 21:03 antoinerg

P.S. This is not a regression and this was discovered by installing on a fresh machine with nothing else installed!

antoinerg avatar Mar 05 '20 21:03 antoinerg

I managed to install it following this :

"Sys.setenv("PATH" = paste(Sys.getenv("PATH"), "/your path", sep = .Platform$path.sep))"

now Orca is shown, but nothing is exported... it only shows this

"Error: The orca command-line utility is required for this functionality." have u got something similar?

dplazas avatar Apr 02 '20 18:04 dplazas

@dplazas I take it you are running Mac OS X? Did you have the issue described in https://github.com/plotly/orca/issues/291#issue-576533072? Can you run orca from the command-line?

antoinerg avatar Apr 02 '20 19:04 antoinerg

thanks for reply! yes I am on Mac, Now Orca function disappeared from R ! Dont now what’s going on..  minutes ago it was shown as suggested function, so I ran fig <- plot_ly(z = ~volcano) %>% add_surface() fig orca(fig, "surface-plot.svg") and got" Error: The orca command-line utility is required for this functionality." I put orca here : Users/danplaza/.npm-global/bin/orca any suggestion? thanks!

dplazas avatar Apr 02 '20 20:04 dplazas

Can you run /Users/danplaza/.npm-global/bin/orca in a terminal?

antoinerg avatar Apr 03 '20 00:04 antoinerg

  • yes, I can, got this:

Plotly's image-exporting utilities

Usage: orca [--version] [--help] []

Available commands:

  • graph [or plotly-graph, plotly_graph] Generates an image of plotly graph from inputted plotly.js JSON attributes. For more info, run orca graph --help.

  • serve [or server] Boots up a server with one route per available export component For more info, run orca serve --help.

  • and running this "which -a orca" , weirdly got this: /Users/danplaza/.npm-global/bin/orca /Users/danplaza/.npm-global/bin/orca /Users/danplaza/.npm-global/bin/orca /Users/danplaza/.npm-global/bin/orca /Users/danplaza/.npm-global/bin/orca /Users/danplaza/.npm-global/bin/orca /Users/danplaza/.npm-global/bin/orca /Users/danplaza/.npm-global/bin/orca /Users/danplaza/.npm-global/bin/orca /Users/danplaza/.npm-global/bin/orca

in R tried this " p <- plot_ly(z = ~volcano) %>% add_surface() p orca(p, "surface-plot.png") and got this again: "Error: The orca command-line utility is required for this functionality. ..." I think is time to go back to gggplot...

El jue., 2 abr. 2020 a las 21:35, Antoine Roy-Gobeil (< [email protected]>) escribió:

Can you run /Users/danplaza/.npm-global/bin/orca in a terminal?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/plotly/orca/issues/291#issuecomment-608166212, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIZH364HU4QSGR6BFM6VXDDRKUVNTANCNFSM4LCSUMDQ .

-- ≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈≈ Daniel Plaza Sáez +569 98762026

dplazas avatar Apr 03 '20 09:04 dplazas