You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Oh, I see, thanks! Now it works fine. Not sure how I manage to get the version 1. My mistake, sorry.
BTW, I initially wanted to use your pyyaml-include "indirectly", via OmegaConf.
OmegaConf uses yaml internally, and I hoped to add a constructor globally from my main. But it does not work. If you have any idea or hint, please share! :-)
Hi,
The documentation is inaccurate for my installation.
import yaml_include
-->
ModuleNotFoundError: No module named 'yaml_include'
import yamlinclude
OK
but
AttributeError: module 'yamlinclude' has no attribute 'Constructor'
I had to do:
yaml.add_constructor("!inc", yamlinclude.YamlIncludeConstructor("pypath"))
The versions I use are below.
JL
Python 3.11.11
The text was updated successfully, but these errors were encountered: