Building a simple Python app as Snap

Hello.

I am trying to build this very simple Python tool as a Snap package (You can see the provided YAML file): https://github.com/fosspost/fp-collapse-monitor

However, I am getting the following error when trying to build it: https://pastebin.pl/view/raw/02956ab9

Any idea on what could be causing this? Thanks.

you didn’t share snapcraft.yml

It is on the GitHub repository: https://github.com/fosspost/fp-collapse-monitor/blob/main/snapcraft.yaml

I tried to build it and I got same error message like above then I changed core to core20 and got the following error message:

  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [14 lines of output]
      error: Multiple top-level packages discovered in a flat-layout: ['ui', 'data', 'debian'].
      
      To avoid accidental inclusion of unwanted files or directories,
      setuptools will not proceed with this build.
      
      If you are trying to create a single distribution with multiple packages
      on purpose, you should not rely on automatic discovery.
      Instead, consider the following options:
      
      1. set up custom discovery (`find` directive with `include` or `exclude`)
      2. use a `src-layout`
      3. explicitly set `py_modules` or `packages` with a list of names
      
      To find more information, look for "package discovery" on setuptools docs.
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

also I think you should add compression: lzo to snapcraft.yaml to make your package open faster

I remove debian folder and tried again then I got:

2022-07-18 20:06:12.558 Starting Snapcraft 7.0.11.post37+gite03a971b
2022-07-18 20:06:12.559 lifecycle command: 'pack', arguments: Namespace(bind_ssh=False, build_for=None, debug=False, destructive_mode=False, directory=None, enable_developer_debug=False, enable_experimental_extensions=False, enable_experimental_target_arch=False, enable_manifest=False, manifest_image_information=None, output=None, provider=None, target_arch=None, use_lxd=True)
2022-07-18 20:06:12.559 command: pack, arguments: Namespace(bind_ssh=False, build_for=None, debug=False, destructive_mode=False, directory=None, enable_developer_debug=False, enable_experimental_extensions=False, enable_experimental_target_arch=False, enable_manifest=False, manifest_image_information=None, output=None, provider=None, target_arch=None, use_lxd=True)
2022-07-18 20:06:12.571 CPU count (from process affinity): 8
2022-07-18 20:06:12.571 Invalid SNAPCRAFT_MAX_PARALLEL_BUILD_COUNT value
2022-07-18 20:06:12.571 Running on amd64 for amd64
2022-07-18 20:06:12.573 LXD is used by default on this platform.
2022-07-18 20:06:12.573 Checking build provider availability
2022-07-18 20:06:12.677 Executing on host: lxc --project default profile show local:default
2022-07-18 20:06:12.763 Launching instance...
2022-07-18 20:06:12.763 Executing on host: lxc remote list --format=yaml
2022-07-18 20:06:12.844 Remote 'craft-com.ubuntu.cloud-buildd' already exists.
2022-07-18 20:06:12.845 Executing on host: lxc project list local: --format=yaml
2022-07-18 20:06:12.929 Executing on host: lxc --project snapcraft list local: --format=yaml
2022-07-18 20:06:13.032 Executing on host: lxc --project snapcraft list local: --format=yaml
2022-07-18 20:06:13.129 Executing on host: lxc --project snapcraft start local:snapcraft-fp-collapse-monitor-on-amd64-for-amd64-3284972
2022-07-18 20:06:13.527 Executing in container: lxc --project snapcraft exec local:snapcraft-fp-collapse-monitor-on-amd64-for-amd64-3284972 -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 cat /etc/os-release
2022-07-18 20:06:13.700 Executing in container: lxc --project snapcraft exec local:snapcraft-fp-collapse-monitor-on-amd64-for-amd64-3284972 -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 test -f /etc/craft-instance.conf
2022-07-18 20:06:13.867 Executing on host: lxc --project snapcraft file pull local:snapcraft-fp-collapse-monitor-on-amd64-for-amd64-3284972/etc/craft-instance.conf /home/xlmnxp/tmp4q31swqh.tmp-craft/tmpw04uzuf2
2022-07-18 20:06:13.999 Waiting for environment to be ready...
2022-07-18 20:06:13.999 Executing in container: lxc --project snapcraft exec local:snapcraft-fp-collapse-monitor-on-amd64-for-amd64-3284972 -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 systemctl is-system-running
2022-07-18 20:06:14.129 systemctl is-system-running status: starting
2022-07-18 20:06:14.380 Executing in container: lxc --project snapcraft exec local:snapcraft-fp-collapse-monitor-on-amd64-for-amd64-3284972 -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 systemctl is-system-running
2022-07-18 20:06:14.538 systemctl is-system-running status: starting
2022-07-18 20:06:14.788 Executing in container: lxc --project snapcraft exec local:snapcraft-fp-collapse-monitor-on-amd64-for-amd64-3284972 -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 systemctl is-system-running
2022-07-18 20:06:14.916 systemctl is-system-running status: starting
2022-07-18 20:06:15.167 Executing in container: lxc --project snapcraft exec local:snapcraft-fp-collapse-monitor-on-amd64-for-amd64-3284972 -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 systemctl is-system-running
2022-07-18 20:06:15.325 systemctl is-system-running status: starting
2022-07-18 20:06:15.576 Executing in container: lxc --project snapcraft exec local:snapcraft-fp-collapse-monitor-on-amd64-for-amd64-3284972 -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 systemctl is-system-running
2022-07-18 20:06:15.725 systemctl is-system-running status: starting
2022-07-18 20:06:15.976 Executing in container: lxc --project snapcraft exec local:snapcraft-fp-collapse-monitor-on-amd64-for-amd64-3284972 -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 systemctl is-system-running
2022-07-18 20:06:16.137 systemctl is-system-running status: starting
2022-07-18 20:06:16.387 Executing in container: lxc --project snapcraft exec local:snapcraft-fp-collapse-monitor-on-amd64-for-amd64-3284972 -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 systemctl is-system-running
2022-07-18 20:06:16.544 Waiting for networking to be ready...
2022-07-18 20:06:16.544 Executing in container: lxc --project snapcraft exec local:snapcraft-fp-collapse-monitor-on-amd64-for-amd64-3284972 -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 getent hosts snapcraft.io
2022-07-18 20:06:16.811 Executing in container: lxc --project snapcraft exec local:snapcraft-fp-collapse-monitor-on-amd64-for-amd64-3284972 -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 apt-get install -y gnupg dirmngr git
2022-07-18 20:06:17.385 Installing snap 'snapcraft' from host (classic=True)
2022-07-18 20:06:17.398 Executing in container: lxc --project snapcraft exec local:snapcraft-fp-collapse-monitor-on-amd64-for-amd64-3284972 -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 test -f /etc/craft-instance.conf
2022-07-18 20:06:17.510 Executing on host: lxc --project snapcraft file pull local:snapcraft-fp-collapse-monitor-on-amd64-for-amd64-3284972/etc/craft-instance.conf /home/xlmnxp/tmp_98z6ve0.tmp-craft/tmpyjpik9q_
2022-07-18 20:06:17.594 Revisions found: host='7979', target='7979'
2022-07-18 20:06:17.594 Skipping snap injection: target is already up-to-date with revision on host
2022-07-18 20:06:17.594 Executing on host: lxc --project snapcraft config device show local:snapcraft-fp-collapse-monitor-on-amd64-for-amd64-3284972
2022-07-18 20:06:17.684 Executing on host: lxc --project snapcraft config device add local:snapcraft-fp-collapse-monitor-on-amd64-for-amd64-3284972 disk-/root/project disk source=/home/xlmnxp/Projects/fp-collapse-monitor path=/root/project
2022-07-18 20:06:17.787 Emitter: Pausing control of the terminal
2022-07-18 20:06:43.013 Emitter: Resuming control of the terminal
2022-07-18 20:06:43.401 Logs captured from managed instance:
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:22.499 Starting Snapcraft 7.0.11.post37+gite03a971b
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:22.500 lifecycle command: 'pack', arguments: Namespace(bind_ssh=False, build_for='amd64', debug=False, destructive_mode=False, directory=None, enable_developer_debug=False, enable_experimental_extensions=False, enable_experimental_target_arch=False, enable_manifest=False, manifest_image_information=None, output=None, provider=None, target_arch=None, use_lxd=False)
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:22.501 command: pack, arguments: Namespace(bind_ssh=False, build_for='amd64', debug=False, destructive_mode=False, directory=None, enable_developer_debug=False, enable_experimental_extensions=False, enable_experimental_target_arch=False, enable_manifest=False, manifest_image_information=None, output=None, provider=None, target_arch=None, use_lxd=False)
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:22.523 CPU count (from process affinity): 8
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:22.523 Invalid SNAPCRAFT_MAX_PARALLEL_BUILD_COUNT value
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:22.523 Running on amd64 for amd64
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:22.526 Initializing parts lifecycle
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:22.526 is_snap: True, SNAP_NAME set to snapcraft
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:22.527 load state file: /root/parts/fp-collapse-monitor/state/pull
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:22.554 load state file: /root/parts/fp-collapse-monitor/state/overlay
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:22.562 process fp-collapse-monitor:Step.PULL
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:22.562 check if Part('fp-collapse-monitor'):Step.PULL is dirty
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:22.567 check if Part('fp-collapse-monitor'):Step.PULL is outdated
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:22.567 ignore patterns: ['*.snap']
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:22.571 updated files: {'snapcraft.yaml'}
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:22.571 updated directories: set()
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:22.571 fp-collapse-monitor:Step.PULL is outdated
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:22.571 update step fp-collapse-monitor:Step.PULL
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:22.571 add action fp-collapse-monitor:Step.PULL(ActionType.UPDATE)
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:22.571 process fp-collapse-monitor:Step.OVERLAY
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:22.571 check if Part('fp-collapse-monitor'):Step.OVERLAY is dirty
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:22.571 check if Part('fp-collapse-monitor'):Step.OVERLAY is outdated
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:22.571 fp-collapse-monitor:Step.OVERLAY is outdated
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:22.571 update step fp-collapse-monitor:Step.OVERLAY
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:22.571 add action fp-collapse-monitor:Step.OVERLAY(ActionType.UPDATE)
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:22.571 process fp-collapse-monitor:Step.BUILD
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:22.571 add action fp-collapse-monitor:Step.BUILD(ActionType.RUN)
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:22.572 process fp-collapse-monitor:Step.STAGE
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:22.572 add action fp-collapse-monitor:Step.STAGE(ActionType.RUN)
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:22.572 process fp-collapse-monitor:Step.PRIME
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:22.572 add action fp-collapse-monitor:Step.PRIME(ActionType.RUN)
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:22.572 Executing parts lifecycle...
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:22.573 ignore patterns: ['*.snap']
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:22.573 plugin build packages: {'python3-dev', 'findutils', 'python3-venv'}
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:22.573 Requested build-packages: ['findutils', 'python3-dev', 'python3-venv']
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:23.939 Marking python3-dev (and its dependencies) to be fetched
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:23.939 package: python3-dev
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:23.950 Marking findutils (and its dependencies) to be fetched
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:23.950 package: findutils
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:23.962 Marking python3-venv (and its dependencies) to be fetched
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:23.962 package: python3-venv
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:24.020 Requested build-packages already installed: ['findutils', 'python3-dev', 'python3-venv']
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:24.807 verify plugin environment for part 'fp-collapse-monitor'
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:24.809 Executing parts lifecycle: update sources for fp-collapse-monitor (source changed)
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:24.809 Executing action
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:24.810 execute action fp-collapse-monitor:Action(part_name='fp-collapse-monitor', step=Step.PULL, action_type=ActionType.UPDATE, reason='source changed', project_vars=None)
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:24.822 updated files: {'snapcraft.yaml'}
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:24.822 updated directories: set()
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:24.824 Executed: update sources for fp-collapse-monitor (source changed)
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:24.824 Executing parts lifecycle: update overlay for fp-collapse-monitor ('PULL' step changed)
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:24.825 Executing action
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:24.825 execute action fp-collapse-monitor:Action(part_name='fp-collapse-monitor', step=Step.OVERLAY, action_type=ActionType.UPDATE, reason="'PULL' step changed", project_vars=None)
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:24.826 Executed: update overlay for fp-collapse-monitor ('PULL' step changed)
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:24.827 Executing parts lifecycle: build fp-collapse-monitor
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:24.827 Executing action
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:24.827 execute action fp-collapse-monitor:Action(part_name='fp-collapse-monitor', step=Step.BUILD, action_type=ActionType.RUN, reason=None, project_vars=None)
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:37.877 fix artifacts: unpack_dir='/root/parts/fp-collapse-monitor/install'
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:38.759 fix symlink: path='/root/parts/fp-collapse-monitor/install/bin/python3', unpack_dir='/root/parts/fp-collapse-monitor/install', root='/root/parts/fp-collapse-monitor/install/bin'
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:38.807 fix symlink: target='/root/parts/fp-collapse-monitor/install/usr/bin/python3'
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:38.807 Copying needed target link from the system: /usr/bin/python3.10
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:42.723 remove directory /root/parts/fp-collapse-monitor/build
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:42.752 :: + python3 -m venv /root/parts/fp-collapse-monitor/install
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:42.789 :: Error: [Errno 13] Permission denied: '/root/parts/fp-collapse-monitor/install/bin/python3'
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:42.796 Failed to run the build script for part 'fp-collapse-monitor'.
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:42.800 Traceback (most recent call last):
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:42.800   File "/snap/snapcraft/x1/lib/python3.8/site-packages/craft_parts/executor/step_handler.py", line 134, in _builtin_build
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:42.800     subprocess.run(
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:42.800   File "/snap/snapcraft/x1/usr/lib/python3.8/subprocess.py", line 516, in run
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:42.800     raise CalledProcessError(retcode, process.args,
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:42.800 subprocess.CalledProcessError: Command '['/root/parts/fp-collapse-monitor/run/build.sh']' returned non-zero exit status 1.
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:42.800
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:42.800 The above exception was the direct cause of the following exception:
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:42.800 Traceback (most recent call last):
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:42.800   File "/snap/snapcraft/x1/lib/python3.8/site-packages/snapcraft/parts/parts.py", line 170, in run
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:42.800     aex.execute(action, stdout=stream, stderr=stream)
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:42.800   File "/snap/snapcraft/x1/lib/python3.8/site-packages/craft_parts/executor/executor.py", line 301, in execute
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:42.800     self._executor.execute(actions, stdout=stdout, stderr=stderr)
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:42.800   File "/snap/snapcraft/x1/lib/python3.8/site-packages/craft_parts/executor/executor.py", line 126, in execute
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:42.800     self._run_action(act, stdout=stdout, stderr=stderr)
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:42.800   File "/snap/snapcraft/x1/lib/python3.8/site-packages/craft_parts/executor/executor.py", line 189, in _run_action
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:42.800     handler.run_action(action, stdout=stdout, stderr=stderr)
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:42.800   File "/snap/snapcraft/x1/lib/python3.8/site-packages/craft_parts/executor/part_handler.py", line 161, in run_action
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:42.800     state = handler(step_info, stdout=stdout, stderr=stderr)
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:42.800   File "/snap/snapcraft/x1/lib/python3.8/site-packages/craft_parts/executor/part_handler.py", line 297, in _run_build
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:42.800     self._run_step(
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:42.800   File "/snap/snapcraft/x1/lib/python3.8/site-packages/craft_parts/executor/part_handler.py", line 477, in _run_step
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:42.800     return step_handler.run_builtin()
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:42.800   File "/snap/snapcraft/x1/lib/python3.8/site-packages/craft_parts/executor/step_handler.py", line 106, in run_builtin
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:42.800     return handler()
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:42.800   File "/snap/snapcraft/x1/lib/python3.8/site-packages/craft_parts/executor/step_handler.py", line 142, in _builtin_build
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:42.800     raise errors.PluginBuildError(part_name=self._part.name) from process_error
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:42.800 craft_parts.errors.PluginBuildError: Failed to run the build script for part 'fp-collapse-monitor'.
2022-07-18 20:06:43.402 :: 2022-07-18 17:06:42.800 Full execution log: '/tmp/snapcraft.log'
2022-07-18 20:06:45.023 Failed to execute pack in instance.
2022-07-18 20:06:45.024 Traceback (most recent call last):
2022-07-18 20:06:45.024   File "/snap/snapcraft/7979/lib/python3.8/site-packages/snapcraft/parts/lifecycle.py", line 452, in _run_in_provider
2022-07-18 20:06:45.024     instance.execute_run(cmd, check=True, cwd=output_dir)
2022-07-18 20:06:45.024   File "/snap/snapcraft/7979/lib/python3.8/site-packages/craft_providers/lxd/lxd_instance.py", line 221, in execute_run
2022-07-18 20:06:45.024     return self.lxc.exec(
2022-07-18 20:06:45.024   File "/snap/snapcraft/7979/lib/python3.8/site-packages/craft_providers/lxd/lxc.py", line 326, in exec
2022-07-18 20:06:45.024     return runner(final_cmd, **kwargs)  # pylint: disable=subprocess-run-check
2022-07-18 20:06:45.024   File "/snap/snapcraft/7979/usr/lib/python3.8/subprocess.py", line 516, in run
2022-07-18 20:06:45.024     raise CalledProcessError(retcode, process.args,
2022-07-18 20:06:45.024 subprocess.CalledProcessError: Command '['lxc', '--project', 'snapcraft', 'exec', 'local:snapcraft-fp-collapse-monitor-on-amd64-for-amd64-3284972', '--cwd', '/root/project', '--', 'env', 'PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin', 'SNAPCRAFT_MANAGED_MODE=1', 'snapcraft', 'pack', '--build-for', 'amd64']' returned non-zero exit status 1.
2022-07-18 20:06:45.024 Full execution log: '/home/xlmnxp/.cache/snapcraft/log/snapcraft-20220718-200612.557715.log'