Artur Dobrogowski
05/30/2023, 8:15 AMValidationError: 1 validation error for KedroMlflowConfig
tracking -> disable_tracking -> pipelines
value is not a valid list (type=type_error.list)
While the config looks like this:
tracking:
disable_tracking:
pipelines: []
Juan Luis
05/30/2023, 8:36 AMArtur Dobrogowski
05/30/2023, 8:36 AMJuan Luis
05/30/2023, 8:37 AMArtur Dobrogowski
05/30/2023, 8:38 AMJuan Luis
05/30/2023, 8:46 AMfrom kedro.config import OmegaConfigLoader
from kedro.config import ConfigLoader
from kedro_mlflow.config.kedro_mlflow_config import KedroMlflowConfig
loader = OmegaConfigLoader(".", config_patterns={"conf": ["conf*"]})
loader_ok = ConfigLoader(".", config_patterns={"conf": ["conf*"]})
KedroMlflowConfig.parse_obj({**loader.get("conf")})
KedroMlflowConfig.parse_obj({**loader_ok.get("conf.yml")})
$ tree .
.
├── base
│ └── conf.yml
├── local
$ cat base/conf.yml
tracking:
disable_tracking:
pipelines: []
now checking if this is fixed in main
Artur Dobrogowski
05/30/2023, 8:51 AMJuan Luis
05/30/2023, 8:53 AMIn [2]: conf_bad = loader.get("conf")
In [3]: conf_bad
Out[3]: {'tracking': {'disable_tracking': {'pipelines': []}}}
In [4]: type(conf_bad)
Out[4]: omegaconf.dictconfig.DictConfig
it's not a real dictionary. that was the topic of https://github.com/kedro-org/kedro/issues/2466, and it's indeed fixed in the main
branch. so, Kedro 0.18.9 will not have this problem @Artur Dobrogowskimain
it worksArtur Dobrogowski
05/30/2023, 8:54 AMJuan Luis
05/30/2023, 9:22 AM