Shubham Jha
04/10/2024, 4:21 PM/opt/hostedtoolcache/Python/3.9.19/x64/lib/python3.9/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
src/tests/test_run.py:16: in <module>
from kedro.config import ConfigLoader
ImportError: cannot import name 'ConfigLoader' from 'kedro.config' (/home/runner/.cache/pypoetry/virtualenvs/audiences-NIUknnYt-py3.9/lib/python3.9/site-packages/kedro/config/__init__.py)
Upon checking the Kedro Docs, https://docs.kedro.org/en/stable/configuration/config_loader_migration.html#configloader-to-omegaconfigloader, I've updated my settings.py file to have Kedro OmegaConfigLoader. However, the pipeline which used to run fine earlier, gives the following errors when executed locally using base environment.
so after changing it to omega config loader, it is giving errors by saying that duplicate keys exist for base and mlops environments. Although they are different.
ValueError: Duplicate keys found in
../../../conf/base/mlflow.yml and
../../../conf/mlops/mlflow.yml: server, tracking
If I remove one of the mlflow.yml files, it then gives the duplicate error for all the catalog and parameters between the two environments.
ValueError: Duplicate keys found in
../../../conf/mlops/catalog.yml and
../../../conf/base/catalog.yml:
constraint_performance, target_profile, targeting_dataset,...
Problem is, the catalog definitely has to be same between the two environments as we are dealing with exactly same datasets/datatypes/output paths etc. Not sure how to fix this.Ankita Katiyar
04/10/2024, 4:25 PMCONFIG_LOADER_ARGS
that you pass in settings.py
?Nok Lam Chan
04/10/2024, 4:29 PMNok Lam Chan
04/10/2024, 4:29 PMAnkita Katiyar
04/10/2024, 4:29 PMShubham Jha
04/10/2024, 4:30 PMShubham Jha
04/10/2024, 4:31 PMAnkita Katiyar
04/10/2024, 4:32 PMbase_env
and default_run_env
too -
CONFIG_LOADER_ARGS = {
"base_env": "base",
"default_run_env": "local",
"config_patterns": {
"spark": ["spark*", "spark*/**"],
}
}
Nok Lam Chan
04/10/2024, 4:33 PMCONFIG_LOADER_ARGS
, it should work as expected, if you added new one you need to provide the arugments.Shubham Jha
04/10/2024, 4:37 PMCONFIG_LOADER_ARGS