Goodmorning, I’ve updated my Kedro project version...
# questions
n
Goodmorning, I’ve updated my Kedro project version to 0.19.6 and my globals.yml file is not working anymore. I’m getting this error: File “data_catalog.py” line 82 in resolve_credentials: Return {k: _map_value(k,v) for k, v in config.items()} AttributeError: ‘str’ object has no attribute ‘items’ Somebody had the same error? Had you solve this ?_
j
Hi Nicolò What versions of Python are you using?” Can you share a full traceback?”
a
Hey Nicolo, I suspect it might be that one of the keys in your
catalog.yml
(potentially an interpolation variable) that doesn’t start with an underscore. This section in the docs might be useful - https://docs.kedro.org/en/stable/configuration/advanced_configuration.html#catalog
n
I have only one variable in catalog which is: var: ${globals:USER} In my globals file I have: USER: ‘admin’ Actually I cannot share the entire full trace for security reasons of my company. Is it possible to check it live?
a
What was the previous version that this was working for?
n
0.18.14
My python version is: 3.10.12
a
And this
var
is then used somewhere else in the catalog?
n
No
I deleted all the other variables to find the error
a
So in the catalog you can only have either valid dataset entries or just variables that start with an underscore so changing
var
to
_var
would get rid of this error.
n
Seems working ! Thanks a lot