Code Monkey home page Code Monkey logo

Comments (9)

serena-ruan avatar serena-ruan commented on June 2, 2024

@acircleda I can't repro your problem on MLflow 2.11.3, could you double check you installed it correctly? Are the environment variables (MLFLOW_BIN, MLFLOW_PYTHON_BIN) set correctly?
I can correctly open mlflow ui with below command:
image

from mlflow.

acircleda avatar acircleda commented on June 2, 2024

I suspect (from some previous issues) this may be a Windows-specific issue.

I believe the environment variables are set correctly:

> Sys.which('python')
                    python 
"C:\\PYTHON~1\\python.exe" 
> Sys.which('mlflow')
                             mlflow 
"C:\\PYTHON~1\\Scripts\\mlflow.exe" 

In checking these paths I can confirm the exe's exist.

Some additional info:

If I run, server <- mlflow::mlflow_server(), the following is returned:

$server_url
[1] "http://127.0.0.1:5000"

$handle
PROCESS 'mlflow.exe', running, pid 22388.

$file_store
[1] "file://C:/Users/XXX/Documents/mlruns"

attr(,"class")
[1] "mlflow_server"

However, no other commands work and http://127.0.0.1:5000 is not accessible. If I switch to the terminal and run mlflow server --host 127.0.0.1 --port 8080, I get mlflow server --host 127.0.0.1 --port 8080, after which the UI is accessible.

from mlflow.

acircleda avatar acircleda commented on June 2, 2024

Just as a follow-up, I ran the following code:
Sys.setenv(MLFLOW_BIN=Sys.which("mlflow"))
Sys.setenv(MLFLOW_PYTHON_BIN=Sys.which("python"))

and verified using Sys.getenv() that these existed in the system environment, which they did. Running the following commands still resulted in the same error:

library(mlflow)
mlflow_client(tracking_uri = NULL)

from mlflow.

serena-ruan avatar serena-ruan commented on June 2, 2024

@acircleda Could you try if the python code works? Want to see if your tracking server breaks or it's R installation problem.

import mlflow

with mlflow.start_run():
    mlflow.log_param("test", "test")

from mlflow.

acircleda avatar acircleda commented on June 2, 2024

This seems to work. I did a fresh install into a venv-controlled environment on python 3.11.3

import mlflow
with mlflow.start_run():
... mlflow.log_param("test", "test")
...
'test'

I also ran this same python code in R Studio (via reticulate) and got the same result.

Tried the same command in R and got the same error reported in this ticket.

library(mlflow)
mlflow::mlflow_log_param("test", "test")

from mlflow.

serena-ruan avatar serena-ruan commented on June 2, 2024

What if you run R in terminal within the same python venv and try those R commands?

from mlflow.

acircleda avatar acircleda commented on June 2, 2024

Using the R -e '...' commands in the terminal, I get the same error as above.

from mlflow.

github-actions avatar github-actions commented on June 2, 2024

@mlflow/mlflow-team Please assign a maintainer and start triaging this issue.

from mlflow.

acircleda avatar acircleda commented on June 2, 2024

Let me know if there is any other information you would like me to provide.

from mlflow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.