Join the Kedro community

Updated 3 weeks ago

Trying to run OmegaConfigLoader configuration code but encountering an error

Hi all, I tried to run this code "config_loader = OmegaConfigLoader(conf_source="conf/")", but I got this error message.
Any idea how could I solve it? 😟

L
S
6 comments

Hey , could you post the error message that you received?

Sorry, forgot to put it
AttributeError: type object 'OmegaConf' has no attribute 'clear_resolver'"

Could you tell me what version of Kedro are you using? And also what version of the OmegaConf library, I believe some of the older ones do not support clear_resolver

kedro=0.19.8 and Omegaconf=2.1.1

OmegaConf added the clear_resolver on version 2.2.1 (https://github.com/omry/omegaconf/releases/tag/v2.2.1)

Try updating it and let me know if this solves the issue.

Yes, it works. Thanks!

Add a reply
Sign up and join the conversation on Slack