-
Notifications
You must be signed in to change notification settings - Fork 928
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve error message when _
convention is not used in catalog.yml
#3555
Comments
For context, there's two situations -
my_var: "whatever" It fails with this unhelpful error message because we assume the catalog entries are dicts. We could check for this at the config loader stage and/or display a more helpful error message.
my_var:
name: "whatever" The error message is still a bit more informative but could be improved -
|
Currently mentioned in the catalog docs: https://docs.kedro.org/en/latest/configuration/advanced_configuration.html#catalog Ideally the traceback in both cases from #3555 (comment) should be
However, it was raised that template values are a more advanced configuration, and also that performing this validation might be tricky. |
Close this in favour of #3910? |
Description
https://linen-slack.kedro.org/t/16334283/hi-all-i-m-looking-into-kedro-0-19-2-and-i-created-a-project#84a17399-4031-4976-93d4-11c71d5a465a
The error look like this:
AttributeError: 'str' object has no attribute 'items'
Context
When using OmegaConfigLoader, user need to use
{_xxxx}
underscore convention to use template variable. It produces an obscure error when user forgot to do so, it creates confusion particularly when they try to upgrade from older version of Kedro.Steps to Reproduce
ipython - then
%load_ext kedro.ipython` - it should raise an error when catalog is initialised.Expected Result
Actual Result
Your Environment
pip show kedro
orkedro -V
):python -V
):The text was updated successfully, but these errors were encountered: