Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
AttributeError on parse error for layer.yaml with req.txt version of ruamel.yaml #233
Comments
johnsca
referenced this issue
Jul 12, 2016
Closed
Pinning the ruamel.yaml version in setup.py same as requirements.txt #232
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
johnsca commentedJul 12, 2016
Checklist
What version am I running?
I ran the following command:
charm versionand got the following ouput:I am using: Ubuntu trusty
Issue/Feature
I expect/expected the following
With the version of
ruamel.yamlthat is pinned inrequirements.txt(0.10.23) if there is a YAML syntax error inlayer.yamlthe error handler designed to catch it instead fails with anAttributeErrordue toruamel.yaml.parserhaving been temporarily renamed toruamel.yaml.parser_. This has been resolved in newer versions ofruamel.yaml.Additionally, we don't have
ruamel.yamlpinned insetup.pyso most people won't hit this. However, #229 shows that breaking changes get introduced toruamel.yamlfrequently enough that we should pin it.I propose that we update
requirements.txtto the current, working version (0.11.14) and pin it to that insetup.py. We should probably also report the parsing error in a more friendly way, although the current error does provide a sufficiently useful message (if not with the prettiest presentation).What I got