Comments (9)
@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:
from mlflow.
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.
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.
@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.
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.
What if you run R
in terminal within the same python venv and try those R commands?
from mlflow.
Using the R -e '...'
commands in the terminal, I get the same error as above.
from mlflow.
@mlflow/mlflow-team Please assign a maintainer and start triaging this issue.
from mlflow.
Let me know if there is any other information you would like me to provide.
from mlflow.
Related Issues (20)
- Hello, I encountered an issue while attempting to run the official MLflow image. Can anyone assist me with this? I'm a beginner. Thanks HOT 6
- Add load_delta support with `deltalake` package HOT 2
- [BUG] Exception During Model Logging with Custom Ollama Class HOT 6
- comparing metrics with timestamp is not working if step is same between them [BUG] HOT 4
- [BUG] Can't delete runs with mlflow gc due to api timeout HOT 11
- [FR] Display the complete dataset profile in the data details view HOT 1
- Improve `_init_server` HOT 2
- [FR] Improve UI stability to corrupt metric files HOT 2
- [BUG] UI Crash - Unterminated string in JSON at position 5000 for mlflow.log-model.history HOT 4
- [BUG] pyfunc.load_model ignores logged model with trust_remote_code set to True HOT 1
- [BUG] HOT 2
- [BUG]Prompt Engineering request from UI to Deployments Server Connection TimeOut HOT 5
- [FR]MLflow Deployments Server Support inside corporate proxy HOT 3
- Fix typos
- Fix docstrings in `mlflow/tracing` HOT 1
- [FR] Multiple retrievers with mlflow.langchain.log_model HOT 1
- [BUG] MLFlow Deployment Server for LLMs using chatCompletion on Azure OpenAI text-davinci-003 HOT 4
- [SETUP-BUG] Multi-Cloud artifact-destination migration HOT 3
- mlflow.pyfunc.load_model is loading model of class <class 'mlflow.pyfunc.PyFuncModel'> instead of original class HOT 2
- [BUG] ModuleNotFoundError: No module named 'fcntl' HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mlflow.