Change8
Error1 reports

Fix FileNotFoundError

in MLflow

Solution

FileNotFoundError in mlflow often occurs due to absolute paths being used when logging models or artifacts, especially the model's code dependencies (model_code_path). The fix is to ensure that paths for dependencies are relative to the model's root directory during logging, and to use mlflow.get_model_uri() to construct the correct absolute path to the model rather than hardcoding it, especially when loading the model in a different environment.

Related Issues

Real GitHub issues where developers encountered this error:

Timeline

First reported:Jan 5, 2026
Last reported:Jan 5, 2026

Need More Help?

View the full changelog and migration guides for MLflow

View MLflow Changelog