Hello everyone, I am following the documentation t...
# questions
s
Hello everyone, I am following the documentation to use kedro-mlflow with my pipeline registry and it gives me the following error when running kedro mlflow ui: Any inputs are helpful. Thanks!
Copy code
/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.8
d
I'm not familiar with the plugin, but did you configure
host
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?
s
yes I did. Its not able to recognize mlflow in kedro context. So its failing at context.mlflow . It didn't even go till ui.host
d
You passed the
host
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
.
Anyway, that's about the extent to which I know. 🤷 Best way to get support on
kedro-mlflow
is to post a question to the GitHub https://github.com/Galileo-Galilei/kedro-mlflow.
(the author has said he doesn't monitor Slack all that much, even though he does pop in occasionally)
s
Okay, Thanks!
y
I've just answered on github :)
🙌🏼 1
🙌 2