Installed snapcraft version: 2.43.1
Multipass VM with Ubuntu 16.04 (all packages updated)
Snap to build: https://code.launchpad.net/~bernermic/cheat-snap/master
App is building, but when installing the packages, the following error comes up:
Successfully built docopt cheat
Looking in links: /home/multipass/snap/temp/cheat/parts/cheat/python-packages
Collecting Pygments
Collecting cheat
Collecting docopt
Installing collected packages: Pygments, cheat, docopt
Successfully installed Pygments-2.3.1 cheat-2.3.1 docopt-0.6.2
/home/multipass/snap/temp/cheat/parts/cheat/install/usr/bin/python3 setup.py --no-user-cfg install --single-version-externally-managed --user --record install.txt
/home/multipass/snap/temp/cheat/parts/cheat/install/usr/lib/python3.5/distutils/dist.py:261: UserWarning: Unknown distribution option: 'install_requires'
warnings.warn(msg)
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: option --single-version-externally-managed not recognized
Sorry, an error occurred in Snapcraft:
Traceback (most recent call last):
File "/usr/bin/snapcraft", line 9, in <module>
load_entry_point('snapcraft==2.43.1', 'console_scripts', '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 1037, in invoke
return Command.invoke(self, 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/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/usr/lib/python3/dist-packages/snapcraft/cli/_runner.py", line 93, in run
ctx.forward(lifecyclecli.commands["snap"])
File "/usr/lib/python3/dist-packages/click/core.py", line 552, in forward
return self.invoke(cmd, **kwargs)
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/lifecycle.py", line 136, in snap
project = _execute(steps.PRIME, parts=[], **kwargs)
File "/usr/lib/python3/dist-packages/snapcraft/cli/lifecycle.py", line 35, in _execute
lifecycle.execute(step, project_config, parts)
File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_runner.py", line 90, in execute
executor.run(step, part_names)
File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_runner.py", line 194, in run
self._handle_step(part_names, part, step, current_step, cli_config)
File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_runner.py", line 208, in _handle_step
getattr(self, "_run_{}".format(current_step.name))(part)
File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_runner.py", line 261, in _run_build
self._run_step(step=steps.BUILD, part=part, progress="Building")
File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_runner.py", line 327, in _run_step
getattr(part, step.name)()
File "/usr/lib/python3/dist-packages/snapcraft/internal/pluginhandler/__init__.py", line 523, in build
self._do_build()
File "/usr/lib/python3/dist-packages/snapcraft/internal/pluginhandler/__init__.py", line 558, in _do_build
self.mark_build_done()
File "/usr/lib/python3/dist-packages/snapcraft/internal/pluginhandler/__init__.py", line 563, in mark_build_done
machine_manifest = self._get_machine_manifest()
File "/usr/lib/python3/dist-packages/snapcraft/internal/pluginhandler/__init__.py", line 637, in _get_machine_manifest
"installed-snaps": repo.snaps.get_installed_snaps(),
File "/usr/lib/python3/dist-packages/snapcraft/internal/repo/snaps.py", line 298, in get_installed_snaps
snap_info.raise_for_status()
File "/usr/lib/python3/dist-packages/requests/models.py", line 840, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http+unix://%2Frun%2Fsnapd.socket/v2/snaps
Update: when using snapcrtaft 3.0.1 the issue is gone ...