Another probably :man-facepalming:question. Could...
# questions
c
Another probably 🤦‍♂️question. Could someone help me understand why the env parameter in my catalog isn't being injected into the catalog from my
locals/parameters.yml
file? catalog:
Copy code
parsed_documents:  # Just one document for now.
  type: json.JSONDataSet
  filepath: '<s3://mybucket/${env}/myjson.json>
local/parameters.yml file entry:
env: "main"
in kedro ipython trying to load i am getting:
Copy code
DataSetError: Failed while loading data from data set JSONDataSet(filepath=mybucket/${env}/myjson.json, protocol=s3, save_args={'indent': 2}).
mybucket/${env}/myjson.json
f
Do you use a
TemplatedConfigLoader
in
settings.py
? And have you given a
global_path
(from memory, not sure it is the real name, you have commented examples in the file)
c
i am not but i thought in 0.18.7 we don't have to. is that confirmed wrong?
f
You can indeed use
OmegaConfigLoader
, but I do not think it is on by default in
0.18.*
m
By default Kedro still uses the
ConfigLoader
which doesn’t support any templating. From
0.19.0
we are planning to make the
OmegaConfigLoader
the default.
c
^ that's what I thought. So I don't need to do anything for the above to work right?
m
No you do, because
ConfigLoader
doesn’t support templating
${env}
is templating so you’ll need to specifically use the
TemplatedConfigLoader
to make that work.
c
Because I am not templating I am passing in parameters.
ok