-
Notifications
You must be signed in to change notification settings - Fork 116
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
Duplicate Key Error #1194
Labels
bug
Something isn't working
Comments
I cannot reproduce: from yaml import safe_load
from omegaconf import OmegaConf
from ruamel.yaml import YAML
yaml = YAML()
with open("conf.yaml") as fh:
content = safe_load(fh)
content_oc = OmegaConf.load("conf.yaml")
with open("conf.yaml") as fh:
content_ru = yaml.load(fh.read())
|
@astrojuanlu now you should be able to replicate. It throws error when I have the entries like |
Now I can reproduce:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Omega conf can't parse the valid yaml file with anchors defined. The following yaml throws duplicate key error for the section:
When I replace that it works. That's a valid yaml format and key merging should happen
To Reproduce
Expected behavior
I expect omegaconf to read the file without errors.
Additional context
The text was updated successfully, but these errors were encountered: