7

I have installed MLFLOW for R in my ubuntu environment. When I try to execute any command for mlflow I am getting below error

mlflow_ui() Error in rethrow_call(c_processx_exec, command, c(command, args), stdin, : cannot start processx process (system error 2, No such file or directory) @unix/processx.c:573

theduck
  • 2,589
  • 13
  • 17
  • 23
digvijay
  • 71
  • 4
  • 1
    Similar problem with the error: Error in rethrow_call(c_processx_exec, command, c(command, args), stdin, : Command not found @win/processx.c:977 ----- Did you solve it? – Jan Janiszewski Oct 17 '19 at 12:22
  • @digvijay I'm having the same error message in Windows, had anyone solved? – GitHunter0 Aug 07 '20 at 03:04

2 Answers2

1

You can install MLFlow separately using pip and then specify the variables in your ~/.Renviron. If you don't have a .Renviron file, create one. (Checkout out help("Startup") in R for more info).

The environment variables you need to set in the .Renviron file are:

MLFLOW_PYTHON_BIN and MLFLOW_BIN. These need to set to the location of your python executable and mlflow executable.

Simply get those by running which python and which mlflow after installing mlflow with pip.

Make sure to restart Rstudio (perhaps try removing mlflow and re-installing the package).

Then there will be no need to run mlflow::install_mlflow().

Vivek Katial
  • 543
  • 4
  • 17
0

@digvijay have you installed conda & invoked the R install_mlflow function on your machine? It's necessary to do so before invoking the R APIs - install_mlflow creates a conda environment for installing the MLflow CLI, which some of the R APIs (e.g. mlflow_ui) depend on.

smurching
  • 456
  • 4
  • 3
  • Yes I did that. Post installation mlflow , below are commands that I executed library(mlflow) install_mlflow() – digvijay Oct 15 '19 at 05:34
  • 1
    I had a similar problem, then I realized that the python version shipped with reticulate was 3.7 and install_mlflow() would by default install for 3.6, so I tried mlflow::install_mlflow("3.7") and it worked. – Lorenz Walthert Dec 10 '19 at 15:52