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
Confirmed this is an issue with charm-tools, not charmstore-client
Provide versions of tools used
Described the feature or ways to replicate the issue
What version am I running?
I ran the following command: charm version and got the following output:
charm 2.1.1-0ubuntu1
charm-tools 2.1.2
I am using: Ubuntu 16.04 Xenial
Issue
After issuing a charm build command I got a python stack trace that told me nothing about the problem or how to fix it.
I expect/expected the following
The actual problem ended up being in layer.yaml with some invalid yaml: includes: ['layer:docker', 'layer:flannel', layer:storage, 'layer:tls', 'interface:etcd'] As you can see I was missing the quotes around layer:storage.
I expected to get a yaml parsing error with the file and line number that was incorrect.
What I got
$ charm build -l DEBUG --series trusty
...(standard debug output omitted)...
Traceback (most recent call last):
File "/usr/bin/charm-build", line 9, in <module>
load_entry_point('charm-tools==2.1.2', 'console_scripts', 'charm-build')()
File "/usr/lib/python2.7/dist-packages/charmtools/build/__init__.py", line 673, in main
build()
File "/usr/lib/python2.7/dist-packages/charmtools/build/__init__.py", line 515, in __call__
self.validate()
File "/usr/lib/python2.7/dist-packages/charmtools/build/__init__.py", line 471, in validate
self._validate_charm_repo()
File "/usr/lib/python2.7/dist-packages/charmtools/build/__init__.py", line 500, in _validate_charm_repo
if 'repo' not in self.top_layer.config:
File "/usr/lib/python2.7/dist-packages/charmtools/build/__init__.py", line 139, in top_layer
self._top_layer = Layer(self.charm, self.deps).fetch()
File "/usr/lib/python2.7/dist-packages/charmtools/build/__init__.py", line 102, in fetch
self._name = self.config.name
File "/usr/lib/python2.7/dist-packages/charmtools/build/__init__.py", line 46, in config
self._config.configure(self.config_file)
File "/usr/lib/python2.7/dist-packages/charmtools/build/config.py", line 59, in configure
except yaml.parser.ParserError:
AttributeError: 'module' object has no attribute 'parser'
The text was updated successfully, but these errors were encountered:
Checklist
What version am I running?
I ran the following command:
charm version
and got the following output:I am using: Ubuntu 16.04 Xenial
Issue
After issuing a
charm build
command I got a python stack trace that told me nothing about the problem or how to fix it.I expect/expected the following
The actual problem ended up being in
layer.yaml
with some invalid yaml:includes: ['layer:docker', 'layer:flannel', layer:storage, 'layer:tls', 'interface:etcd']
As you can see I was missing the quotes around layer:storage.I expected to get a yaml parsing error with the file and line number that was incorrect.
What I got
The text was updated successfully, but these errors were encountered: