Sneha Kumari
05/19/2023, 6:11 PM/opt/anaconda3/envs/frontline/lib/python3.8/site-packages/kedro_mlflow/framework/cli/cli.py:161 │
│ in ui
│ 158 │ ) as session:
│ 159 │ │
│ 160 │ │ context = session.load_context()
│ ❱ 161 │ │ host = host or context.mlflow.ui.host
│ 162 │ │ port = port or context.mlflow.ui.port
│ 163 │ │
│ 164 │ │ if context.mlflow.server.mlflow_tracking_uri.startswith("http"): │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
AttributeError: 'KedroContext' object has no attribute 'mlflow'
Python version: 3.8.16
Kedro: 0.18.6
kedro-mlflow: 0.11.8Deepyaman Datta
05/19/2023, 6:16 PMhost
in a mlflow.yml
like it says here: https://kedro-mlflow.readthedocs.io/en/stable/source/04_experimentation_tracking/01_configuration.html#configure-the-user-interface That's probably what populates it.
If you read the code, it will also prefer the --host
option, if you passed that. Maybe you didn't do either?Sneha Kumari
05/19/2023, 6:30 PMDeepyaman Datta
05/19/2023, 6:32 PMhost
in mlflow.yml
I assume? Can you just try passing it via --host
to see if that works/eliminate some other issue? Since if you do that, it should not even hit the context.mlflow
there I think.
Although I see what you mean, if it's not hitting context.mlflow
it probably would fail couple lines down anyway in the if
.kedro-mlflow
is to post a question to the GitHub https://github.com/Galileo-Galilei/kedro-mlflow.Sneha Kumari
05/19/2023, 6:49 PMYolan Honoré-Rougé
05/21/2023, 9:14 PM