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
Error reading yaml file using poyo
- ValueError: Parent of ChildMixin instance needs to be a Container.
#1513
Comments
poyo
: ValueError: Parent of ChildMixin instance needs to be a Container.
poyo
- ValueError: Parent of ChildMixin instance needs to be a Container.
@simobasso #1516 does not fix this issue, unfortunately. The error comes from |
I looked into it, it's a problem with poyo not being able to correctly parse the list of authors dictionaries in the yaml file. There's even an open issue for that (hackebrot/poyo#12) dating back to 2016. +1 for switching to PyYAML, as @samj1912 said in #1515 (comment) they now provide pre-compiled binaries for windows so cross-platform compatibility shouldn't be a problem anymore. |
Fixed with #1489. |
Description:
When using a nested configuration which includes a list (see the list of authors in example template), we obtain an error from
poyo
simply trying to read the yaml file:What I've run:
git clone https://github.com/acturner/cookiecutter-value-error
cookiecutter cookiecutter-value-error --config-file=cookiecutter-value-error/init.yaml --no-input
The text was updated successfully, but these errors were encountered: