orca icon indicating copy to clipboard operation
orca copied to clipboard

Get error message when trying to run orca from R

Open JinTeng opened this issue 6 years ago • 15 comments

orca(p,"test.png") Error in rethrow_call(c_processx_exec, command, c(command, args), stdin, : Command not found @win/processx.c:977

JinTeng avatar Jul 19 '19 06:07 JinTeng

devtools::session_info()

  • Session info ---------------------------------------------------------------------------------------------------------------------------------------------------- setting value
    version R version 3.6.1 (2019-07-05) os Windows 7 x64 SP 1
    system x86_64, mingw32
    ui RStudio
    language (EN)
    collate English_Australia.1252
    ctype English_Australia.1252
    tz Australia/Sydney
    date 2019-07-19

  • Packages -------------------------------------------------------------------------------------------------------------------------------------------------------- package * version date lib source
    assertthat 0.2.1 2019-03-21 [1] CRAN (R 3.6.1) backports 1.1.4 2019-04-10 [1] CRAN (R 3.6.0) callr 3.3.1 2019-07-18 [1] CRAN (R 3.6.1) cli 1.1.0 2019-03-19 [1] CRAN (R 3.6.1) colorspace 1.4-1 2019-03-18 [1] CRAN (R 3.6.1) crayon 1.3.4 2017-09-16 [1] CRAN (R 3.6.1) crosstalk 1.0.0 2016-12-21 [1] CRAN (R 3.6.1) data.table 1.12.2 2019-04-07 [1] CRAN (R 3.6.1) desc 1.2.0 2018-05-01 [1] CRAN (R 3.6.1) devtools 2.1.0 2019-07-06 [1] CRAN (R 3.6.1) digest 0.6.20 2019-07-04 [1] CRAN (R 3.6.1) dplyr 0.8.3 2019-07-04 [1] CRAN (R 3.6.1) fs 1.3.1 2019-05-06 [1] CRAN (R 3.6.1) ggplot2 * 3.2.0 2019-06-16 [1] CRAN (R 3.6.0) glue 1.3.1 2019-03-12 [1] CRAN (R 3.6.1) gtable 0.3.0 2019-03-25 [1] CRAN (R 3.6.1) htmltools 0.3.6 2017-04-28 [1] CRAN (R 3.6.1) htmlwidgets 1.3 2018-09-30 [1] CRAN (R 3.6.1) httpuv 1.5.1 2019-04-05 [1] CRAN (R 3.6.1) httr 1.4.0 2018-12-11 [1] CRAN (R 3.6.1) jsonlite 1.6 2018-12-07 [1] CRAN (R 3.6.1) later 0.8.0 2019-02-11 [1] CRAN (R 3.6.1) lazyeval 0.2.2 2019-03-15 [1] CRAN (R 3.6.1) magrittr 1.5 2014-11-22 [1] CRAN (R 3.6.1) memoise 1.1.0 2017-04-21 [1] CRAN (R 3.6.1) mime 0.7 2019-06-11 [1] CRAN (R 3.6.0) munsell 0.5.0 2018-06-12 [1] CRAN (R 3.6.1) pillar 1.4.2 2019-06-29 [1] CRAN (R 3.6.1) pkgbuild 1.0.3 2019-03-20 [1] CRAN (R 3.6.1) pkgconfig 2.0.2 2018-08-16 [1] CRAN (R 3.6.1) pkgload 1.0.2 2018-10-29 [1] CRAN (R 3.6.1) plotly * 4.9.0 2019-04-10 [1] CRAN (R 3.6.1) plyr * 1.8.4 2016-06-08 [1] CRAN (R 3.6.1) png * 0.1-7 2013-12-03 [1] CRAN (R 3.6.0) prettyunits 1.0.2 2015-07-13 [1] CRAN (R 3.6.1) processx * 3.4.0 2019-07-03 [1] CRAN (R 3.6.1) promises 1.0.1 2018-04-13 [1] CRAN (R 3.6.1) ps 1.3.0 2018-12-21 [1] CRAN (R 3.6.1) purrr 0.3.2 2019-03-15 [1] CRAN (R 3.6.1) R6 2.4.0 2019-02-14 [1] CRAN (R 3.6.1) Rcpp 1.0.1 2019-03-17 [1] CRAN (R 3.6.1) remotes 2.1.0 2019-06-24 [1] CRAN (R 3.6.1) rlang 0.4.0 2019-06-25 [1] CRAN (R 3.6.1) rprojroot 1.3-2 2018-01-03 [1] CRAN (R 3.6.1) scales 1.0.0 2018-08-09 [1] CRAN (R 3.6.1) sessioninfo 1.1.1 2018-11-05 [1] CRAN (R 3.6.1) shiny 1.3.2 2019-04-22 [1] CRAN (R 3.6.1) testthat 2.1.1 2019-04-23 [1] CRAN (R 3.6.1) tibble 2.1.3 2019-06-06 [1] CRAN (R 3.6.1) tidyr 0.8.3 2019-03-01 [1] CRAN (R 3.6.1) tidyselect 0.2.5 2018-10-11 [1] CRAN (R 3.6.1) usethis 1.5.1 2019-07-04 [1] CRAN (R 3.6.1) viridisLite 0.3.0 2018-02-01 [1] CRAN (R 3.6.1) webshot 0.5.1 2018-09-28 [1] CRAN (R 3.6.1) withr 2.1.2 2018-03-15 [1] CRAN (R 3.6.1) xtable 1.8-4 2019-04-21 [1] CRAN (R 3.6.1) yaml 2.2.0 2018-07-25 [1] CRAN (R 3.6.0)

[1] C:/Users/JinTeng/Documents/R/win-library/3.6 [2] C:/Program Files/R/R-3.6.1/library

JinTeng avatar Jul 19 '19 07:07 JinTeng

Example: p <- plot_ly(z = ~volcano) %>% add_surface() orca(p, "surface-plot.png")

JinTeng avatar Jul 19 '19 07:07 JinTeng

I received the same error message while trying to install a package. Would love to see if anyone has come up with a solution.

vickyliao92 avatar Sep 06 '19 18:09 vickyliao92

I have a same error @JinTeng Could you solve it?

ReyhanehBijari avatar Sep 19 '19 00:09 ReyhanehBijari

Have you added the Start in directory to your system PATH? I believe should solve your issue.

See the detailed instructions here under Windows. It includes a link to tutorial website for how to seth the path and environment variables in Windows.

RoelVerbelen avatar Sep 23 '19 06:09 RoelVerbelen

I'm having a similar issue on Linux. Maybe you can help me. I'm using orca from AppImage and it is on the binaries path. With the example above I get:

> p <- plot_ly(z = ~volcano) %>% add_surface()
> orca(p, "surface-plot.png")
Error in processx::run("orca", "-h") : System command erro

If i do a direct system call:

> system("orca")
/tmp/.mount_orcaOxGHjm/app/orca: symbol lookup error: /tmp/.mount_orcaOxGHjm/app/orca: undefined symbol: _ZN4node20g_upstream_node_modeE
Warning message:
In system("orca") : error in running command

But directly on the bash terminal is working great. Do you know where the problem might be?

ptarroso avatar Sep 26 '19 14:09 ptarroso

orca(p, "surface-plot.png") Error in rethrow_call(c_processx_exec, command, c(command, args), stdin, : create process (system error 740, The requested operation requires elevation. ) @win/processx.c:1025

Hi, I have this error when I am trying to export a png figure. I already added orca to my path. Changed my account setting. Any ideas? Thanks a lot

Yulin-bio avatar Nov 04 '19 08:11 Yulin-bio

There can be various reasons why the orca command fails. In our case (on Linux) it was caused by xvfb not being able to start. We figured this out by adding -e /tmp/xvfb.log to the xvfb-run call. In the log file, we found the following error:

_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running
(EE)
Fatal server error:
(EE) Cannot establish any listening sockets - Make sure an X server isn't already running(EE)​

What helped was to run replace xvfb-run -a with xvfb-run -d since -a is deprecated:

-a        --auto-servernum          try to get a free server number, starting at
                                    --server-num (deprecated, use --auto-display
                                    instead)
-d        --auto-display            use the X server to find a display number
                                    automatically

I'll create a PR to update the doc.

micheljung avatar Dec 04 '19 09:12 micheljung

Have you added the Start in directory to your system PATH? I believe should solve your issue.

See the detailed instructions here under Windows. It includes a link to tutorial website for how to seth the path and environment variables in Windows.

I got the same error message, then I saw that I changed the "user variable" for path instead the "system variable" for path. Rebooting after changing the paths was necessary in my case as well.

phit0 avatar Feb 22 '20 22:02 phit0

I'm having a similar issue on Linux. Maybe you can help me. I'm using orca from AppImage and it is on the binaries path. With the example above I get:

> p <- plot_ly(z = ~volcano) %>% add_surface()
> orca(p, "surface-plot.png")
Error in processx::run("orca", "-h") : System command erro

If i do a direct system call:

> system("orca")
/tmp/.mount_orcaOxGHjm/app/orca: symbol lookup error: /tmp/.mount_orcaOxGHjm/app/orca: undefined symbol: _ZN4node20g_upstream_node_modeE
Warning message:
In system("orca") : error in running command

But directly on the bash terminal is working great. Do you know where the problem might be?

Hi @ptarroso did you find solution for this problem ? I have the same problem and have spent hours trying to find solution with no avail

Additionally the solution that @micheljung posted seems to not work anymore ? the -d flag does not work anymore with xvfb-run

vxg20 avatar Mar 16 '20 04:03 vxg20

Hi I did not find a solution... I had to move the analysis to other computer with more RAM. Although the OS is the same with the same R version, it was running orca flawlessly. So, it should be some configuration in my computer but I did not explore it further...

ptarroso avatar Mar 19 '20 18:03 ptarroso

have u encountered this error?

"Error: The orca command-line utility is required for this functionality." I dont know what else I can do ! thanks

dplazas avatar Apr 02 '20 18:04 dplazas

I am getting error while installing mlflow on R. Please help

mlflow_log_param("param1", 5) Error in rethrow_call(c_processx_exec, command, c(command, args), stdin, : Command 'E:/Downloads Folder/Anaconda/envs/r-mlflow-1.7.0/mlflow' not found @win/processx.c:983 (processx_exec)

NishaKale avatar Apr 17 '20 13:04 NishaKale

Regarding the issue of "undefined symbol: _ZN4node20g_upstream_node_modeE", in my case, I had two libnode.so files:

> find / -name libnode.so
/usr/lib/x86_64-linux-gnu/libnode.so
/usr/local/lib/node_modules/electron/dist/libnode.so

grepping these for "_ZN4node20g_upstream_node_modeE" revealed that only the second one matched. Removing the other by running sudo apt-get remove libnode-dev appeared to fix the issue. I'm still not 100% sure why though...

danhalligan avatar Sep 16 '20 11:09 danhalligan

"Error: The orca command-line utility is required for this functionality." I dont know what else I can do ! thanks

I also have this problem.

bdmiller42 avatar Sep 19 '21 16:09 bdmiller42