python - snapcraft register failing with "can't encode character" -
i'm running through create first snap tutorial @ (https://tutorials.ubuntu.com/tutorial/create-your-first-snap)
i've made step 7 (upload store) , stuck on step register app name.
running snapcraft register hello-pward123
returns following python error stack:
traceback (most recent call last): file "/usr/bin/snapcraft", line 9, in <module> load_entry_point('snapcraft==2.33', 'console_scripts', 'snapcraft')() file "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 542, in load_entry_point return get_distribution(dist).load_entry_point(group, name) file "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2569, in load_entry_point return ep.load() file "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2229, in load return self.resolve() file "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2235, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) file "/usr/lib/python3/dist-packages/snapcraft/cli/__main__.py", line 19, in <module> run(prog_name='snapcraft') file "/usr/lib/python3/dist-packages/click/core.py", line 716, in __call__ return self.main(*args, **kwargs) file "/usr/lib/python3/dist-packages/click/core.py", line 696, in main rv = self.invoke(ctx) file "/usr/lib/python3/dist-packages/click/core.py", line 1060, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) file "/usr/lib/python3/dist-packages/click/core.py", line 889, in invoke return ctx.invoke(self.callback, **ctx.params) file "/usr/lib/python3/dist-packages/click/core.py", line 534, in invoke return callback(*args, **kwargs) file "/usr/lib/python3/dist-packages/snapcraft/cli/store.py", line 76, in register if click.confirm(_message_register_confirm.format(snap_name)): file "/usr/lib/python3/dist-packages/click/termui.py", line 138, in confirm echo(prompt, nl=false, err=err) file "/usr/lib/python3/dist-packages/click/utils.py", line 259, in echo file.write(message) unicodeencodeerror: 'latin-1' codec can't encode character '\u2018' in position 255: ordinal not in range(256)
my snapfile.yaml looks like:
name: hello-pward123 version: '2.10' summary: gnu hello, hello world snap description: | gnu hello prints friendly greeting. grade: devel confinement: strict apps: hello: command: bin/hello bash: command: bash parts: gnu-hello: source: http://ftp.gnu.org/gnu/hello/hello-2.10.tar.gz plugin: autotools gnu-bash: source: http://ftp.gnu.org/gnu/bash/bash-4.3.tar.gz plugin: autotools configflags: ["--infodir=/var/bash/info"]
i'm running snapcraft 2.33 on ubuntu 16.04.3
we use click parse cli , requires utf-8 documented here
that said, error unfortunate , should fixed.
Comments
Post a Comment