Skip to content
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 loading metadata.yaml with non-ascii chars #130

Open
tvansteenburgh opened this issue May 2, 2016 · 3 comments
Open

Error loading metadata.yaml with non-ascii chars #130

tvansteenburgh opened this issue May 2, 2016 · 3 comments

Comments

@tvansteenburgh
Copy link
Contributor

tvansteenburgh commented May 2, 2016

From a test run of lp:~jose/charms/trusty/pubphoto/trunk

DEBUG:runner:call ['/tmp/bundletester-KdHqrm/pubphoto/tests/10-deploy'] (cwd: /tmp/bundletester-KdHqrm/pubphoto)
DEBUG:runner:/usr/lib/python3/dist-packages/path.py:1719: DeprecationWarning: path is deprecated. Use Path instead.
DEBUG:runner:  warnings.warn(msg, DeprecationWarning)
DEBUG:runner:E
DEBUG:runner:======================================================================
DEBUG:runner:ERROR: setUpClass (__main__.TestDeployment)
DEBUG:runner:----------------------------------------------------------------------
DEBUG:runner:Traceback (most recent call last):
DEBUG:runner:  File "/tmp/bundletester-KdHqrm/pubphoto/tests/10-deploy", line 13, in setUpClass
DEBUG:runner:    cls.deployment.add('pubphoto')
DEBUG:runner:  File "/usr/lib/python3/dist-packages/amulet/deployer.py", line 184, in add
DEBUG:runner:    service_name, charm, branch=branch, series=series or self.series)
DEBUG:runner:  File "/usr/lib/python3/dist-packages/amulet/charm.py", line 57, in fetch
DEBUG:runner:    series=series)
DEBUG:runner:  File "/usr/lib/python3/dist-packages/amulet/charm.py", line 40, in get_charm
DEBUG:runner:    return LocalCharm(charm_path, series)
DEBUG:runner:  File "/usr/lib/python3/dist-packages/amulet/charm.py", line 83, in __init__
DEBUG:runner:    self._raw = self._load(os.path.join(path, 'metadata.yaml'))
DEBUG:runner:  File "/usr/lib/python3/dist-packages/amulet/charm.py", line 110, in _load
DEBUG:runner:    data = yaml.safe_load(f.read())
DEBUG:runner:  File "/usr/lib/python3.4/encodings/ascii.py", line 26, in decode
DEBUG:runner:    return codecs.ascii_decode(input, self.errors)[0]
DEBUG:runner:UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 83: ordinal not in range(128)
DEBUG:runner:
DEBUG:runner:----------------------------------------------------------------------
DEBUG:runner:Ran 0 tests in 0.204s
DEBUG:runner:
DEBUG:runner:FAILED (errors=1)
DEBUG:runner:Exit Code: 1
DEBUG:bundletester.utils:Updating JUJU_ENV: "charm-testing-aws" -> ""
DEBUG:bundletester.fetchers:bzr revision-info: 1 jose@ubuntu.com-20160425170434-2f3bc23vit8wqtik
@marcoceppi
Copy link
Contributor

I don't think Juju will be able to deploy this either though, have we tried?

@tvansteenburgh
Copy link
Contributor Author

@marcoceppi Yep, just deployed it (juju2).

@marcoceppi
Copy link
Contributor

It must only be the name field

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants