canonical / snapcraft

Package, distribute, and update any app for Linux and IoT.
https://snapcraft.io
GNU General Public License v3.0
1.18k stars 444 forks source link

snapcraft fails for python projects if there is no setup.py #4300

Open dstathis opened 1 year ago

dstathis commented 1 year ago

Bug Description

The modern way to package python projects is to use pyproject.toml instead of setup.py. If you use the python plugin to package a snap, there will be a failure if there is no setup.py. This appears to not be a craft-parts but as the failure seems to happen later.

To Reproduce

git clone git@github.com:canonical/cos-alerter.git cd cos-alerter snapcraft clean snapcraft

Environment

Ubuntu 22.04 with snapcraft installed using apt.

snapcraft.yaml

name: cos-alerter
version: '0.5.0'
summary: A watchdog alerting on alertmanager notification failures.
license: Apache-2.0
contact: simon.aronsson@canonical.com
issues: https://github.com/canonical/cos-alerter/issues
source-code: https://github.com/canonical/cos-alerter/
website: https://charmhub.io/topics/canonical-observability-stack/
description: |
  COS Alerter is a watchdog used to alert on alertmanager notification failures.
  By leveraging an always-firing alert rule routed specifically to cos-alerter, you'll
  be alerted if the pings stop happening - meaning your alertmanager is likely malfunctioning.

base: core22
grade: stable
confinement: strict
compression: lzo 

plugs:
  etc-cos-alerter:
    interface: system-files
    read:
      - /etc/cos-alerter.yaml

parts:
  cos-alerter:
    plugin: python
    source: .

apps:
  daemon:
    command: bin/cos-alerter --config /etc/cos-alerter.yaml
    install-mode: disable
    restart-condition: on-failure
    daemon: simple
    plugs:
      - network
      - network-bind
      - etc-cos-alerter

Relevant log output

2023-07-31 14:06:05.206 Starting Snapcraft 7.5.0
2023-07-31 14:06:05.208 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_plugins=False, enable_experimental_target_arch=False, enable_experimental_ua_services=False, enable_manifest=False, http_proxy=None, https_proxy=None, manifest_image_information=None, output=None, provider=None, target_arch=None, ua_token=None, use_lxd=False)
2023-07-31 14:06:05.208 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_plugins=False, enable_experimental_target_arch=False, enable_experimental_ua_services=False, enable_manifest=False, http_proxy=None, https_proxy=None, manifest_image_information=None, output=None, provider=None, target_arch=None, ua_token=None, use_lxd=False)
2023-07-31 14:06:05.223 CPU count (from process affinity): 4
2023-07-31 14:06:05.223 Invalid SNAPCRAFT_MAX_PARALLEL_BUILD_COUNT ''
2023-07-31 14:06:05.223 Running on amd64 for amd64
2023-07-31 14:06:05.225 Checking build provider availability
2023-07-31 14:06:05.235 Retrieved snap config: {}
2023-07-31 14:06:05.235 Using default provider 'lxd' on linux system.
2023-07-31 14:06:05.378 Executing on host: lxc --project default profile show local:default
2023-07-31 14:06:05.489 Using hostname 'snapcraft-cos-alerter-on-amd64-for-amd64-2883685'
2023-07-31 14:06:05.489 Launching instance...
2023-07-31 14:06:05.489 Executing on host: lxc remote list --format=yaml
2023-07-31 14:06:05.583 Remote 'craft-com.ubuntu.cloud-buildd' already exists.
2023-07-31 14:06:05.583 Executing on host: lxc project list local: --format=yaml
2023-07-31 14:06:05.702 Set LXD instance name to 'snapcraft-cos-alerter-on-amd64-for-amd64-2883685'
2023-07-31 14:06:05.702 Checking for instance 'snapcraft-cos-alerter-on-amd64-for-amd64-2883685' in project 'snapcraft' in remote 'local'
2023-07-31 14:06:05.702 Executing on host: lxc --project snapcraft list local: --format=yaml
2023-07-31 14:06:05.827 Instance 'snapcraft-cos-alerter-on-amd64-for-amd64-2883685' does not exist.
2023-07-31 14:06:05.827 Set LXD instance name to 'base-instance-snapcraft-buildd-base-v10--2d55678e0339df02cd48'
2023-07-31 14:06:05.827 Checking for base instance 'base-instance-snapcraft-buildd-base-v10--2d55678e0339df02cd48' in project 'snapcraft' in remote 'local'
2023-07-31 14:06:05.827 Executing on host: lxc --project snapcraft list local: --format=yaml
2023-07-31 14:06:05.953 Checking validity of instance 'base-instance-snapcraft-buildd-base-v10--2d55678e0339df02cd48'.
2023-07-31 14:06:05.953 Executing on host: lxc --project snapcraft info local:base-instance-snapcraft-buildd-base-v10--2d55678e0339df02cd48
2023-07-31 14:06:06.070 Instance is valid.
2023-07-31 14:06:06.070 Creating instance from base instance 'base-instance-snapcraft-buildd-base-v10--2d55678e0339df02cd48'
2023-07-31 14:06:06.070 Executing on host: lxc --project snapcraft list local: --format=yaml
2023-07-31 14:06:06.179 Executing on host: lxc --project snapcraft copy local:base-instance-snapcraft-buildd-base-v10--2d55678e0339df02cd48 local:snapcraft-cos-alerter-on-amd64-for-amd64-2883685
2023-07-31 14:06:15.256 Executing on host: lxc --project snapcraft list local: --format=yaml
2023-07-31 14:06:15.384 Executing on host: lxc --project snapcraft config set local:snapcraft-cos-alerter-on-amd64-for-amd64-2883685 raw.idmap 'both 1000 0'
2023-07-31 14:06:15.514 Starting instance.
2023-07-31 14:06:15.514 Executing on host: lxc --project snapcraft start local:snapcraft-cos-alerter-on-amd64-for-amd64-2883685
2023-07-31 14:06:16.144 Executing on host: lxc --project snapcraft file push /tmp/tmp74tt4fuj local:snapcraft-cos-alerter-on-amd64-for-amd64-2883685/etc/hostname --mode=0644
2023-07-31 14:06:16.315 Executing in container: lxc --project snapcraft exec local:snapcraft-cos-alerter-on-amd64-for-amd64-2883685 -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 chown root:root /etc/hostname
2023-07-31 14:06:17.035 Executing in container: lxc --project snapcraft exec local:snapcraft-cos-alerter-on-amd64-for-amd64-2883685 -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 hostname -F /etc/hostname
2023-07-31 14:06:17.222 Executing in container: lxc --project snapcraft exec local:snapcraft-cos-alerter-on-amd64-for-amd64-2883685 -- 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
2023-07-31 14:06:17.360 Executing on host: lxc --project snapcraft file pull local:snapcraft-cos-alerter-on-amd64-for-amd64-2883685/etc/craft-instance.conf /home/dylan/tmpybw1lqqz.tmp-craft/tmpab8cbt17
2023-07-31 14:06:17.465 Instance has already been setup.
2023-07-31 14:06:17.465 Executing in container: lxc --project snapcraft exec local:snapcraft-cos-alerter-on-amd64-for-amd64-2883685 -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 cat /etc/os-release
2023-07-31 14:06:17.616 Executing in container: lxc --project snapcraft exec local:snapcraft-cos-alerter-on-amd64-for-amd64-2883685 -- 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
2023-07-31 14:06:17.776 Executing on host: lxc --project snapcraft file pull local:snapcraft-cos-alerter-on-amd64-for-amd64-2883685/etc/craft-instance.conf /home/dylan/tmpl3g0dtbm.tmp-craft/tmp_mvhcbp5
2023-07-31 14:06:17.900 Instance is compatible with compatibility tag 'snapcraft-buildd-base-v1.0'
2023-07-31 14:06:17.901 Waiting for environment to be ready...
2023-07-31 14:06:17.901 Executing in container: lxc --project snapcraft exec local:snapcraft-cos-alerter-on-amd64-for-amd64-2883685 -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 systemctl is-system-running
2023-07-31 14:06:18.075 systemctl is-system-running status: starting
2023-07-31 14:06:18.326 Executing in container: lxc --project snapcraft exec local:snapcraft-cos-alerter-on-amd64-for-amd64-2883685 -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 systemctl is-system-running
2023-07-31 14:06:18.497 systemctl is-system-running status: starting
2023-07-31 14:06:18.748 Executing in container: lxc --project snapcraft exec local:snapcraft-cos-alerter-on-amd64-for-amd64-2883685 -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 systemctl is-system-running
2023-07-31 14:06:18.929 systemctl is-system-running status: starting
2023-07-31 14:06:19.180 Executing in container: lxc --project snapcraft exec local:snapcraft-cos-alerter-on-amd64-for-amd64-2883685 -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 systemctl is-system-running
2023-07-31 14:06:19.501 systemctl is-system-running status: starting
2023-07-31 14:06:19.751 Executing in container: lxc --project snapcraft exec local:snapcraft-cos-alerter-on-amd64-for-amd64-2883685 -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 systemctl is-system-running
2023-07-31 14:06:19.976 Waiting for networking to be ready...
2023-07-31 14:06:19.976 Executing in container: lxc --project snapcraft exec local:snapcraft-cos-alerter-on-amd64-for-amd64-2883685 -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 getent hosts snapcraft.io
2023-07-31 14:06:20.226 Holding refreshes for snaps.
2023-07-31 14:06:20.227 Executing in container: lxc --project snapcraft exec local:snapcraft-cos-alerter-on-amd64-for-amd64-2883685 -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 snap set system refresh.hold=2023-08-01T14:06:20.226351Z
2023-07-31 14:06:20.664 Waiting for pending snap refreshes to complete.
2023-07-31 14:06:20.664 Executing in container: lxc --project snapcraft exec local:snapcraft-cos-alerter-on-amd64-for-amd64-2883685 -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 snap watch '--last=auto-refresh?'
2023-07-31 14:06:20.974 Executing in container: lxc --project snapcraft exec local:snapcraft-cos-alerter-on-amd64-for-amd64-2883685 -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 snap unset system proxy.http
2023-07-31 14:06:21.397 Executing in container: lxc --project snapcraft exec local:snapcraft-cos-alerter-on-amd64-for-amd64-2883685 -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 snap unset system proxy.https
2023-07-31 14:06:21.774 Installing snap 'snapcraft' with channel=None and classic=True
2023-07-31 14:06:21.774 Installing snap 'snapcraft' from host (classic=True)
2023-07-31 14:06:21.781 Executing in container: lxc --project snapcraft exec local:snapcraft-cos-alerter-on-amd64-for-amd64-2883685 -- 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
2023-07-31 14:06:21.946 Executing on host: lxc --project snapcraft file pull local:snapcraft-cos-alerter-on-amd64-for-amd64-2883685/etc/craft-instance.conf /home/dylan/tmptw73w_9j.tmp-craft/tmpvfgjp_gt
2023-07-31 14:06:22.104 Revisions found: host='9510', target='9510'
2023-07-31 14:06:22.104 Skipping snap injection: target is already up-to-date with revision on host
2023-07-31 14:06:22.104 Executing on host: lxc --project snapcraft config device show local:snapcraft-cos-alerter-on-amd64-for-amd64-2883685
2023-07-31 14:06:22.213 Executing on host: lxc --project snapcraft config device add local:snapcraft-cos-alerter-on-amd64-for-amd64-2883685 disk-/root/project disk source=/home/dylan/cos-alerter path=/root/project
2023-07-31 14:06:22.382 Executing on host: lxc --project snapcraft file push /tmp/tmpmc2wx41x local:snapcraft-cos-alerter-on-amd64-for-amd64-2883685/root/.bashrc --mode=644
2023-07-31 14:06:22.487 Executing in container: lxc --project snapcraft exec local:snapcraft-cos-alerter-on-amd64-for-amd64-2883685 -- env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin SNAPCRAFT_MANAGED_MODE=1 chown root:root /root/.bashrc
2023-07-31 14:06:22.617 Emitter: Pausing control of the terminal
2023-07-31 14:07:33.189 Emitter: Resuming control of the terminal
2023-07-31 14:07:34.245 Logs retrieved from managed instance:
2023-07-31 14:07:34.245 :: 2023-07-31 14:06:28.759 Starting Snapcraft 7.5.0
2023-07-31 14:07:34.245 :: 2023-07-31 14:06:28.761 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_plugins=False, enable_experimental_target_arch=False, enable_experimental_ua_services=False, enable_manifest=False, http_proxy=None, https_proxy=None, manifest_image_information=None, output=None, provider=None, target_arch=None, ua_token=None, use_lxd=False)
2023-07-31 14:07:34.245 :: 2023-07-31 14:06:28.761 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_plugins=False, enable_experimental_target_arch=False, enable_experimental_ua_services=False, enable_manifest=False, http_proxy=None, https_proxy=None, manifest_image_information=None, output=None, provider=None, target_arch=None, ua_token=None, use_lxd=False)
2023-07-31 14:07:34.245 :: 2023-07-31 14:06:28.790 CPU count (from process affinity): 4
2023-07-31 14:07:34.245 :: 2023-07-31 14:06:28.790 Invalid SNAPCRAFT_MAX_PARALLEL_BUILD_COUNT ''
2023-07-31 14:07:34.245 :: 2023-07-31 14:06:28.790 Running on amd64 for amd64
2023-07-31 14:07:34.245 :: 2023-07-31 14:06:28.794 Initializing parts lifecycle
2023-07-31 14:07:34.245 :: 2023-07-31 14:06:28.801 is_snap: True, SNAP_NAME set to snapcraft
2023-07-31 14:07:34.245 :: 2023-07-31 14:06:28.803 process cos-alerter:Step.PULL
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:28.803 add action cos-alerter:Step.PULL(ActionType.RUN)
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:28.804 process cos-alerter:Step.BUILD
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:28.804 add action cos-alerter:Step.BUILD(ActionType.RUN)
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:28.804 process cos-alerter:Step.STAGE
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:28.804 add action cos-alerter:Step.STAGE(ActionType.RUN)
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:28.805 process cos-alerter:Step.PRIME
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:28.805 add action cos-alerter:Step.PRIME(ActionType.RUN)
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:28.805 Executing parts lifecycle...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:28.806 ignore patterns: ['*.snap']
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:28.807 plugin build packages: {'python3-dev', 'python3-venv', 'findutils'}
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:28.807 Requested build-packages: ['findutils', 'python3-dev', 'python3-venv']
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:30.943 Marking python3-dev (and its dependencies) to be fetched
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:30.943 package: python3-dev
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:30.984 Marking python3-venv (and its dependencies) to be fetched
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:30.984 package: python3-venv
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:31.020 Marking findutils (and its dependencies) to be fetched
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:31.020 package: findutils
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:31.078 Executing: ['apt-get', 'update']
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:31.421 :: Hit:1 http://archive.ubuntu.com/ubuntu jammy InRelease
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:31.421 :: Get:2 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:31.592 :: Get:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:32.080 :: Get:4 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [635 kB]
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:32.131 :: Get:5 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [108 kB]
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:32.618 :: Get:6 http://security.ubuntu.com/ubuntu jammy-security/main Translation-en [149 kB]
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:32.625 :: Get:7 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [762 kB]
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:32.928 :: Fetched 1882 kB in 2s (1061 kB/s)
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:34.080 :: Reading package lists...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:34.104 Installing packages: findutils python3-dev python3-venv
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:34.175 :: Reading package lists...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:34.519 :: Building dependency tree...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:34.520 :: Reading state information...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:34.934 :: findutils is already the newest version (4.8.0-1ubuntu3).
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:34.934 :: The following additional packages will be installed:
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:34.935 :: libexpat1-dev libjs-jquery libjs-sphinxdoc libjs-underscore libmpdec3
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:34.935 :: libpython3-dev libpython3-stdlib libpython3.10 libpython3.10-dev
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:34.937 :: libpython3.10-minimal libpython3.10-stdlib media-types python3
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:34.937 :: python3-distutils python3-lib2to3 python3-minimal python3-pip-whl
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:34.937 :: python3-setuptools-whl python3.10 python3.10-dev python3.10-minimal
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:34.938 :: python3.10-venv zlib1g zlib1g-dev
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:34.941 :: Suggested packages:
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:34.941 :: python3-doc python3-tk python3.10-doc binfmt-support
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:34.941 :: Recommended packages:
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:34.941 :: javascript-common
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:35.015 :: The following NEW packages will be installed:
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:35.015 :: libexpat1-dev libjs-jquery libjs-sphinxdoc libjs-underscore libmpdec3
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:35.016 :: libpython3-dev libpython3-stdlib libpython3.10 libpython3.10-dev
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:35.016 :: libpython3.10-minimal libpython3.10-stdlib media-types python3 python3-dev
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:35.016 :: python3-distutils python3-lib2to3 python3-minimal python3-pip-whl
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:35.017 :: python3-setuptools-whl python3-venv python3.10 python3.10-dev
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:35.018 :: python3.10-minimal python3.10-venv zlib1g-dev
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:35.021 :: The following packages will be upgraded:
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:35.021 :: zlib1g
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:35.484 :: 1 upgraded, 25 newly installed, 0 to remove and 76 not upgraded.
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:35.484 :: Need to get 16.5 MB of archives.
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:35.484 :: After this operation, 55.1 MB of additional disk space will be used.
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:35.484 :: Get:1 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libpython3.10-minimal amd64 3.10.6-1~22.04.2ubuntu1.1 [810 kB]
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:36.578 :: Get:2 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 zlib1g amd64 1:1.2.11.dfsg-2ubuntu9.2 [58.4 kB]
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:36.585 :: Get:3 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 python3.10-minimal amd64 3.10.6-1~22.04.2ubuntu1.1 [2262 kB]
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:36.855 :: Get:4 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 python3-minimal amd64 3.10.6-1~22.04 [24.3 kB]
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:36.856 :: Get:5 http://archive.ubuntu.com/ubuntu jammy/main amd64 media-types all 7.0.0 [25.5 kB]
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:36.871 :: Get:6 http://archive.ubuntu.com/ubuntu jammy/main amd64 libmpdec3 amd64 2.5.1-2build2 [86.8 kB]
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:36.873 :: Get:7 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libpython3.10-stdlib amd64 3.10.6-1~22.04.2ubuntu1.1 [1832 kB]
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:37.224 :: Get:8 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 python3.10 amd64 3.10.6-1~22.04.2ubuntu1.1 [497 kB]
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:37.229 :: Get:9 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libpython3-stdlib amd64 3.10.6-1~22.04 [6910 B]
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:37.230 :: Get:10 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 python3 amd64 3.10.6-1~22.04 [22.8 kB]
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:37.230 :: Get:11 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libexpat1-dev amd64 2.4.7-1ubuntu0.2 [147 kB]
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:37.237 :: Get:12 http://archive.ubuntu.com/ubuntu jammy/main amd64 libjs-jquery all 3.6.0+dfsg+~3.5.13-1 [321 kB]
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:37.237 :: Get:13 http://archive.ubuntu.com/ubuntu jammy/main amd64 libjs-underscore all 1.13.2~dfsg-2 [118 kB]
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:37.238 :: Get:14 http://archive.ubuntu.com/ubuntu jammy/main amd64 libjs-sphinxdoc all 4.3.2-1 [139 kB]
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:37.239 :: Get:15 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libpython3.10 amd64 3.10.6-1~22.04.2ubuntu1.1 [1955 kB]
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:37.698 :: Get:16 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 zlib1g-dev amd64 1:1.2.11.dfsg-2ubuntu9.2 [164 kB]
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:37.701 :: Get:17 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libpython3.10-dev amd64 3.10.6-1~22.04.2ubuntu1.1 [4754 kB]
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:38.048 :: Get:18 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 libpython3-dev amd64 3.10.6-1~22.04 [7166 B]
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:38.049 :: Get:19 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 python3.10-dev amd64 3.10.6-1~22.04.2ubuntu1.1 [507 kB]
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:38.088 :: Get:20 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 python3-lib2to3 all 3.10.6-1~22.04 [77.6 kB]
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:38.093 :: Get:21 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 python3-distutils all 3.10.6-1~22.04 [139 kB]
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:38.104 :: Get:22 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 python3-dev amd64 3.10.6-1~22.04 [26.0 kB]
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:38.106 :: Get:23 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 python3-pip-whl all 22.0.2+dfsg-1ubuntu0.3 [1679 kB]
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:38.349 :: Get:24 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 python3-setuptools-whl all 59.6.0-1.2ubuntu0.22.04.1 [788 kB]
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:38.413 :: Get:25 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 python3.10-venv amd64 3.10.6-1~22.04.2ubuntu1.1 [5730 B]
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:38.413 :: Get:26 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 python3-venv amd64 3.10.6-1~22.04 [1038 B]
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:38.752 :: Fetched 16.5 MB in 3s (4878 kB/s)
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:38.817 :: Selecting previously unselected package libpython3.10-minimal:amd64.
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:38.830 :: (Reading database ... 15318 files and directories currently installed.)
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:38.831 :: Preparing to unpack .../libpython3.10-minimal_3.10.6-1~22.04.2ubuntu1.1_amd64.deb ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:38.843 :: Unpacking libpython3.10-minimal:amd64 (3.10.6-1~22.04.2ubuntu1.1) ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:38.996 :: Preparing to unpack .../zlib1g_1%3a1.2.11.dfsg-2ubuntu9.2_amd64.deb ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:39.028 :: Unpacking zlib1g:amd64 (1:1.2.11.dfsg-2ubuntu9.2) over (1:1.2.11.dfsg-2ubuntu9) ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:39.104 :: Setting up zlib1g:amd64 (1:1.2.11.dfsg-2ubuntu9.2) ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:39.198 :: Selecting previously unselected package python3.10-minimal.
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:39.207 :: (Reading database ... 15603 files and directories currently installed.)
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:39.208 :: Preparing to unpack .../python3.10-minimal_3.10.6-1~22.04.2ubuntu1.1_amd64.deb ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:39.222 :: Unpacking python3.10-minimal (3.10.6-1~22.04.2ubuntu1.1) ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:39.341 :: Setting up libpython3.10-minimal:amd64 (3.10.6-1~22.04.2ubuntu1.1) ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:39.381 :: Setting up python3.10-minimal (3.10.6-1~22.04.2ubuntu1.1) ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:40.312 :: Selecting previously unselected package python3-minimal.
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:40.319 :: (Reading database ... 15612 files and directories currently installed.)
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:40.319 :: Preparing to unpack .../0-python3-minimal_3.10.6-1~22.04_amd64.deb ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:40.327 :: Unpacking python3-minimal (3.10.6-1~22.04) ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:40.398 :: Selecting previously unselected package media-types.
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:40.399 :: Preparing to unpack .../1-media-types_7.0.0_all.deb ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:40.408 :: Unpacking media-types (7.0.0) ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:40.489 :: Selecting previously unselected package libmpdec3:amd64.
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:40.490 :: Preparing to unpack .../2-libmpdec3_2.5.1-2build2_amd64.deb ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:40.500 :: Unpacking libmpdec3:amd64 (2.5.1-2build2) ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:40.563 :: Selecting previously unselected package libpython3.10-stdlib:amd64.
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:40.565 :: Preparing to unpack .../3-libpython3.10-stdlib_3.10.6-1~22.04.2ubuntu1.1_amd64.deb ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:40.571 :: Unpacking libpython3.10-stdlib:amd64 (3.10.6-1~22.04.2ubuntu1.1) ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:40.776 :: Selecting previously unselected package python3.10.
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:40.778 :: Preparing to unpack .../4-python3.10_3.10.6-1~22.04.2ubuntu1.1_amd64.deb ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:40.786 :: Unpacking python3.10 (3.10.6-1~22.04.2ubuntu1.1) ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:40.858 :: Selecting previously unselected package libpython3-stdlib:amd64.
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:40.861 :: Preparing to unpack .../5-libpython3-stdlib_3.10.6-1~22.04_amd64.deb ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:40.869 :: Unpacking libpython3-stdlib:amd64 (3.10.6-1~22.04) ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:40.932 :: Setting up python3-minimal (3.10.6-1~22.04) ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:41.216 :: Selecting previously unselected package python3.
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:41.225 :: (Reading database ... 16012 files and directories currently installed.)
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:41.225 :: Preparing to unpack .../00-python3_3.10.6-1~22.04_amd64.deb ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:41.237 :: Unpacking python3 (3.10.6-1~22.04) ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:41.308 :: Selecting previously unselected package libexpat1-dev:amd64.
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:41.311 :: Preparing to unpack .../01-libexpat1-dev_2.4.7-1ubuntu0.2_amd64.deb ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:41.321 :: Unpacking libexpat1-dev:amd64 (2.4.7-1ubuntu0.2) ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:41.401 :: Selecting previously unselected package libjs-jquery.
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:41.401 :: Preparing to unpack .../02-libjs-jquery_3.6.0+dfsg+~3.5.13-1_all.deb ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:41.419 :: Unpacking libjs-jquery (3.6.0+dfsg+~3.5.13-1) ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:41.499 :: Selecting previously unselected package libjs-underscore.
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:41.502 :: Preparing to unpack .../03-libjs-underscore_1.13.2~dfsg-2_all.deb ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:41.514 :: Unpacking libjs-underscore (1.13.2~dfsg-2) ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:41.579 :: Selecting previously unselected package libjs-sphinxdoc.
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:41.583 :: Preparing to unpack .../04-libjs-sphinxdoc_4.3.2-1_all.deb ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:41.595 :: Unpacking libjs-sphinxdoc (4.3.2-1) ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:41.677 :: Selecting previously unselected package libpython3.10:amd64.
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:41.679 :: Preparing to unpack .../05-libpython3.10_3.10.6-1~22.04.2ubuntu1.1_amd64.deb ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:41.686 :: Unpacking libpython3.10:amd64 (3.10.6-1~22.04.2ubuntu1.1) ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:41.820 :: Selecting previously unselected package zlib1g-dev:amd64.
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:41.822 :: Preparing to unpack .../06-zlib1g-dev_1%3a1.2.11.dfsg-2ubuntu9.2_amd64.deb ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:41.831 :: Unpacking zlib1g-dev:amd64 (1:1.2.11.dfsg-2ubuntu9.2) ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:41.921 :: Selecting previously unselected package libpython3.10-dev:amd64.
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:41.921 :: Preparing to unpack .../07-libpython3.10-dev_3.10.6-1~22.04.2ubuntu1.1_amd64.deb ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:41.929 :: Unpacking libpython3.10-dev:amd64 (3.10.6-1~22.04.2ubuntu1.1) ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:42.285 :: Selecting previously unselected package libpython3-dev:amd64.
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:42.288 :: Preparing to unpack .../08-libpython3-dev_3.10.6-1~22.04_amd64.deb ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:42.295 :: Unpacking libpython3-dev:amd64 (3.10.6-1~22.04) ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:42.353 :: Selecting previously unselected package python3.10-dev.
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:42.355 :: Preparing to unpack .../09-python3.10-dev_3.10.6-1~22.04.2ubuntu1.1_amd64.deb ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:42.363 :: Unpacking python3.10-dev (3.10.6-1~22.04.2ubuntu1.1) ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:42.465 :: Selecting previously unselected package python3-lib2to3.
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:42.468 :: Preparing to unpack .../10-python3-lib2to3_3.10.6-1~22.04_all.deb ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:42.477 :: Unpacking python3-lib2to3 (3.10.6-1~22.04) ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:42.571 :: Selecting previously unselected package python3-distutils.
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:42.573 :: Preparing to unpack .../11-python3-distutils_3.10.6-1~22.04_all.deb ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:42.581 :: Unpacking python3-distutils (3.10.6-1~22.04) ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:42.651 :: Selecting previously unselected package python3-dev.
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:42.653 :: Preparing to unpack .../12-python3-dev_3.10.6-1~22.04_amd64.deb ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:42.661 :: Unpacking python3-dev (3.10.6-1~22.04) ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:42.718 :: Selecting previously unselected package python3-pip-whl.
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:42.720 :: Preparing to unpack .../13-python3-pip-whl_22.0.2+dfsg-1ubuntu0.3_all.deb ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:42.729 :: Unpacking python3-pip-whl (22.0.2+dfsg-1ubuntu0.3) ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:42.819 :: Selecting previously unselected package python3-setuptools-whl.
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:42.823 :: Preparing to unpack .../14-python3-setuptools-whl_59.6.0-1.2ubuntu0.22.04.1_all.deb ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:42.831 :: Unpacking python3-setuptools-whl (59.6.0-1.2ubuntu0.22.04.1) ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:42.904 :: Selecting previously unselected package python3.10-venv.
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:42.908 :: Preparing to unpack .../15-python3.10-venv_3.10.6-1~22.04.2ubuntu1.1_amd64.deb ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:42.917 :: Unpacking python3.10-venv (3.10.6-1~22.04.2ubuntu1.1) ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:42.982 :: Selecting previously unselected package python3-venv.
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:42.985 :: Preparing to unpack .../16-python3-venv_3.10.6-1~22.04_amd64.deb ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:42.993 :: Unpacking python3-venv (3.10.6-1~22.04) ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:43.062 :: Setting up media-types (7.0.0) ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:43.102 :: Setting up python3-setuptools-whl (59.6.0-1.2ubuntu0.22.04.1) ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:43.124 :: Setting up python3-pip-whl (22.0.2+dfsg-1ubuntu0.3) ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:43.148 :: Setting up libexpat1-dev:amd64 (2.4.7-1ubuntu0.2) ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:43.179 :: Setting up zlib1g-dev:amd64 (1:1.2.11.dfsg-2ubuntu9.2) ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:43.203 :: Setting up libmpdec3:amd64 (2.5.1-2build2) ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:43.227 :: Setting up libjs-jquery (3.6.0+dfsg+~3.5.13-1) ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:43.259 :: Setting up libjs-underscore (1.13.2~dfsg-2) ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:43.283 :: Setting up libpython3.10-stdlib:amd64 (3.10.6-1~22.04.2ubuntu1.1) ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:43.314 :: Setting up libjs-sphinxdoc (4.3.2-1) ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:43.340 :: Setting up libpython3-stdlib:amd64 (3.10.6-1~22.04) ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:43.365 :: Setting up libpython3.10:amd64 (3.10.6-1~22.04.2ubuntu1.1) ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:43.388 :: Setting up python3.10 (3.10.6-1~22.04.2ubuntu1.1) ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:44.344 :: Setting up python3 (3.10.6-1~22.04) ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:44.494 :: Setting up libpython3.10-dev:amd64 (3.10.6-1~22.04.2ubuntu1.1) ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:44.521 :: Setting up python3.10-dev (3.10.6-1~22.04.2ubuntu1.1) ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:44.549 :: Setting up python3-lib2to3 (3.10.6-1~22.04) ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:44.710 :: Setting up python3-distutils (3.10.6-1~22.04) ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:44.901 :: Setting up libpython3-dev:amd64 (3.10.6-1~22.04) ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:44.923 :: Setting up python3.10-venv (3.10.6-1~22.04.2ubuntu1.1) ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:45.026 :: Setting up python3-venv (3.10.6-1~22.04) ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:45.052 :: Setting up python3-dev (3.10.6-1~22.04) ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:45.072 :: Processing triggers for libc-bin (2.35-0ubuntu3) ...
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:47.514 Found installed version 2.4.7-1ubuntu0.2 for package libexpat1-dev
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:47.514 Found installed version 3.6.0+dfsg+~3.5.13-1 for package libjs-jquery
2023-07-31 14:07:34.246 :: 2023-07-31 14:06:47.514 Found installed version 4.3.2-1 for package libjs-sphinxdoc
2023-07-31 14:07:34.247 :: 2023-07-31 14:06:47.514 Found installed version 1.13.2~dfsg-2 for package libjs-underscore
2023-07-31 14:07:34.247 :: 2023-07-31 14:06:47.514 Found installed version 2.5.1-2build2 for package libmpdec3
2023-07-31 14:07:34.247 :: 2023-07-31 14:06:47.514 Found installed version 3.10.6-1~22.04 for package libpython3-dev
2023-07-31 14:07:34.247 :: 2023-07-31 14:06:47.514 Found installed version 3.10.6-1~22.04 for package libpython3-stdlib
2023-07-31 14:07:34.247 :: 2023-07-31 14:06:47.515 Found installed version 3.10.6-1~22.04.2ubuntu1.1 for package libpython3.10
2023-07-31 14:07:34.247 :: 2023-07-31 14:06:47.515 Found installed version 3.10.6-1~22.04.2ubuntu1.1 for package libpython3.10-dev
2023-07-31 14:07:34.247 :: 2023-07-31 14:06:47.515 Found installed version 3.10.6-1~22.04.2ubuntu1.1 for package libpython3.10-minimal
2023-07-31 14:07:34.247 :: 2023-07-31 14:06:47.515 Found installed version 3.10.6-1~22.04.2ubuntu1.1 for package libpython3.10-stdlib
2023-07-31 14:07:34.247 :: 2023-07-31 14:06:47.515 Found installed version 7.0.0 for package media-types
2023-07-31 14:07:34.247 :: 2023-07-31 14:06:47.515 Found installed version 3.10.6-1~22.04 for package python3
2023-07-31 14:07:34.247 :: 2023-07-31 14:06:47.515 Found installed version 3.10.6-1~22.04 for package python3-dev
2023-07-31 14:07:34.247 :: 2023-07-31 14:06:47.515 Found installed version 3.10.6-1~22.04 for package python3-distutils
2023-07-31 14:07:34.247 :: 2023-07-31 14:06:47.515 Found installed version 3.10.6-1~22.04 for package python3-lib2to3
2023-07-31 14:07:34.247 :: 2023-07-31 14:06:47.515 Found installed version 3.10.6-1~22.04 for package python3-minimal
2023-07-31 14:07:34.247 :: 2023-07-31 14:06:47.515 Found installed version 22.0.2+dfsg-1ubuntu0.3 for package python3-pip-whl
2023-07-31 14:07:34.247 :: 2023-07-31 14:06:47.515 Found installed version 59.6.0-1.2ubuntu0.22.04.1 for package python3-setuptools-whl
2023-07-31 14:07:34.247 :: 2023-07-31 14:06:47.515 Found installed version 3.10.6-1~22.04 for package python3-venv
2023-07-31 14:07:34.247 :: 2023-07-31 14:06:47.515 Found installed version 3.10.6-1~22.04.2ubuntu1.1 for package python3.10
2023-07-31 14:07:34.247 :: 2023-07-31 14:06:47.515 Found installed version 3.10.6-1~22.04.2ubuntu1.1 for package python3.10-dev
2023-07-31 14:07:34.247 :: 2023-07-31 14:06:47.515 Found installed version 3.10.6-1~22.04.2ubuntu1.1 for package python3.10-minimal
2023-07-31 14:07:34.247 :: 2023-07-31 14:06:47.515 Found installed version 3.10.6-1~22.04.2ubuntu1.1 for package python3.10-venv
2023-07-31 14:07:34.247 :: 2023-07-31 14:06:47.515 Found installed version 1:1.2.11.dfsg-2ubuntu9.2 for package zlib1g-dev
2023-07-31 14:07:34.247 :: 2023-07-31 14:06:47.956 Installing snap: core22
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:07.148 verify plugin environment for part 'cos-alerter'
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:07.149 Executing parts lifecycle: pull cos-alerter
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:07.149 Executing action
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:07.150 execute action cos-alerter:Action(part_name='cos-alerter', step=Step.PULL, action_type=ActionType.RUN, reason=None, project_vars=None, properties=ActionProperties(changed_files=None, changed_dirs=None))
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:13.688 Executed: pull cos-alerter
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:13.688 Executing parts lifecycle: build cos-alerter
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:13.688 Executing action
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:13.699 execute action cos-alerter:Action(part_name='cos-alerter', step=Step.BUILD, action_type=ActionType.RUN, reason=None, project_vars=None, properties=ActionProperties(changed_files=None, changed_dirs=None))
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:13.701 load state file: /root/parts/cos-alerter/state/pull
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:13.730 remove directory /root/parts/cos-alerter/build
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:17.049 Executing PosixPath('/root/parts/cos-alerter/run/build.sh')
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:17.061 :: + python3 -m venv /root/parts/cos-alerter/install
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:21.445 :: + PARTS_PYTHON_VENV_INTERP_PATH=/root/parts/cos-alerter/install/bin/python3
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:21.445 :: + /root/parts/cos-alerter/install/bin/pip install -U pip setuptools wheel
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:22.005 :: Requirement already satisfied: pip in /root/parts/cos-alerter/install/lib/python3.10/site-packages (22.0.2)
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:22.358 :: Collecting pip
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:22.622 ::   Downloading pip-23.2.1-py3-none-any.whl (2.1 MB)
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:22.970 ::      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 6.1 MB/s eta 0:00:00
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:22.980 :: Requirement already satisfied: setuptools in /root/parts/cos-alerter/install/lib/python3.10/site-packages (59.6.0)
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:23.539 :: Collecting setuptools
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:23.585 ::   Downloading setuptools-68.0.0-py3-none-any.whl (804 kB)
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:23.707 ::      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 804.0/804.0 KB 6.7 MB/s eta 0:00:00
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:23.836 :: Collecting wheel
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:23.884 ::   Downloading wheel-0.41.0-py3-none-any.whl (64 kB)
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:23.905 ::      ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 64.7/64.7 KB 3.2 MB/s eta 0:00:00
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:24.174 :: Installing collected packages: wheel, setuptools, pip
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:24.299 ::   Attempting uninstall: setuptools
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:24.300 ::     Found existing installation: setuptools 59.6.0
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:24.459 ::     Uninstalling setuptools-59.6.0:
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:24.504 ::       Successfully uninstalled setuptools-59.6.0
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:25.610 ::   Attempting uninstall: pip
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:25.613 ::     Found existing installation: pip 22.0.2
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:26.133 ::     Uninstalling pip-22.0.2:
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:26.144 ::       Successfully uninstalled pip-22.0.2
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:27.854 :: Successfully installed pip-23.2.1 setuptools-68.0.0 wheel-0.41.0
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:28.066 :: + '[' -f setup.py ']'
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:28.066 :: + find /root/parts/cos-alerter/install -type f -executable -print0
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:28.066 :: + xargs -0 sed -i '1 s|^#\!/root/parts/cos-alerter/install/bin/python3.*$|#!/usr/bin/env python3|'
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:28.079 :: ++ set +o
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:28.079 :: ++ grep errexit
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:28.081 :: + opts_state='set +o errexit'
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:28.081 :: + set +e
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:28.081 :: + install_dir=/root/parts/cos-alerter/install/usr/bin
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:28.081 :: + stage_dir=/root/stage/usr/bin
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:28.081 :: ++ find /root/parts/cos-alerter/install/usr/bin /root/stage/usr/bin -type f -executable -name 'python3.*' -print -quit
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:28.086 :: + payload_python=
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:28.086 :: + '[' -n '' ']'
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:28.086 :: + symlink_target=/usr/bin/python3.10
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:28.086 :: + '[' -z /usr/bin/python3.10 ']'
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:28.086 :: + eval 'set +o errexit'
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:28.086 :: ++ set +o errexit
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:28.086 :: + ln -sf /usr/bin/python3.10 /root/parts/cos-alerter/install/bin/python3
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:29.192 Executed: build cos-alerter
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:29.193 Executing parts lifecycle: stage cos-alerter
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:29.193 Executing action
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:29.193 execute action cos-alerter:Action(part_name='cos-alerter', step=Step.STAGE, action_type=ActionType.RUN, reason=None, project_vars=None, properties=ActionProperties(changed_files=None, changed_dirs=None))
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:30.436 Executed: stage cos-alerter
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:30.436 Executing parts lifecycle: prime cos-alerter
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:30.436 Executing action
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:30.437 execute action cos-alerter:Action(part_name='cos-alerter', step=Step.PRIME, action_type=ActionType.RUN, reason=None, project_vars=None, properties=ActionProperties(changed_files=None, changed_dirs=None))
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:31.246 patch_elf: not enabled for part 'cos-alerter'
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:31.247 Executed: prime cos-alerter
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:31.247 Executed parts lifecycle
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:31.247 Extracting and updating metadata...
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:31.248 Copying snap assets...
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:31.248 finalize icon: None
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:31.248 relative icon path: None
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:31.248 Generating snap metadata...
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:31.255 Generated snap metadata
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:31.256 Reading snap metadata...
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:31.262 Running linters...
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:31.263 Running linter: classic
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:31.264 Running linter: library
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:31.364 pack_snap: output=None, compression='lzo'
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:31.364 pack_snap: check skeleton
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:32.134 Creating snap package...
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:32.134 Pack command: ['snap', 'pack', '--filename', 'cos-alerter_0.5.0_amd64.snap', '--compression', 'lzo', PosixPath('/root/prime'), PosixPath('/root/project')]
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:32.183 Cannot pack snap file: Command '['snap', 'pack', '--filename', 'cos-alerter_0.5.0_amd64.snap', '--compression', 'lzo', PosixPath('/root/prime'), PosixPath('/root/project')]' returned non-zero exit status 1. (2023/07/31 14:07:32.180661 container.go:215: in snap "cos-alerter": path "bin/cos-alerter" does not exist
2023-07-31 14:07:34.247 :: error: cannot pack "/root/prime": snap is unusable due to missing files)
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:32.190 Traceback (most recent call last):
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:32.190   File "/snap/snapcraft/9510/lib/python3.8/site-packages/snapcraft/pack.py", line 134, in pack_snap
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:32.190     proc = subprocess.run(
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:32.190   File "/snap/snapcraft/9510/usr/lib/python3.8/subprocess.py", line 516, in run
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:32.190     raise CalledProcessError(retcode, process.args,
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:32.190 subprocess.CalledProcessError: Command '['snap', 'pack', '--filename', 'cos-alerter_0.5.0_amd64.snap', '--compression', 'lzo', PosixPath('/root/prime'), PosixPath('/root/project')]' returned non-zero exit status 1.
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:32.190
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:32.190 During handling of the above exception, another exception occurred:
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:32.190 Traceback (most recent call last):
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:32.190   File "/snap/snapcraft/9510/lib/python3.8/site-packages/snapcraft/parts/lifecycle.py", line 302, in _run_command
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:32.190     _run_lifecycle_and_pack(
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:32.190   File "/snap/snapcraft/9510/lib/python3.8/site-packages/snapcraft/parts/lifecycle.py", line 372, in _run_lifecycle_and_pack
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:32.190     snap_filename = pack.pack_snap(
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:32.190   File "/snap/snapcraft/9510/lib/python3.8/site-packages/snapcraft/pack.py", line 141, in pack_snap
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:32.190     raise errors.SnapcraftError(msg)
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:32.190 snapcraft.errors.SnapcraftError: Cannot pack snap file: Command '['snap', 'pack', '--filename', 'cos-alerter_0.5.0_amd64.snap', '--compression', 'lzo', PosixPath('/root/prime'), PosixPath('/root/project')]' returned non-zero exit status 1. (2023/07/31 14:07:32.180661 container.go:215: in snap "cos-alerter": path "bin/cos-alerter" does not exist
2023-07-31 14:07:34.247 :: 2023-07-31 14:07:32.190 error: cannot pack "/root/prime": snap is unusable due to missing files)
2023-07-31 14:07:36.219 Failed to execute pack in instance.
2023-07-31 14:07:36.219 Detailed information: Run the same command again with --debug to shell into the environment if you wish to introspect this failure.
2023-07-31 14:07:36.231 Traceback (most recent call last):
2023-07-31 14:07:36.231   File "/snap/snapcraft/9510/lib/python3.8/site-packages/snapcraft/parts/lifecycle.py", line 574, in _run_in_provider
2023-07-31 14:07:36.231     instance.execute_run(cmd, check=True, cwd=output_dir)
2023-07-31 14:07:36.231   File "/snap/snapcraft/9510/lib/python3.8/site-packages/craft_providers/lxd/lxd_instance.py", line 289, in execute_run
2023-07-31 14:07:36.231     return self.lxc.exec(
2023-07-31 14:07:36.231   File "/snap/snapcraft/9510/lib/python3.8/site-packages/craft_providers/lxd/lxc.py", line 371, in exec
2023-07-31 14:07:36.231     return runner(final_cmd, **kwargs)  # pylint: disable=subprocess-run-check
2023-07-31 14:07:36.231   File "/snap/snapcraft/9510/usr/lib/python3.8/subprocess.py", line 516, in run
2023-07-31 14:07:36.231     raise CalledProcessError(retcode, process.args,
2023-07-31 14:07:36.231 subprocess.CalledProcessError: Command '['lxc', '--project', 'snapcraft', 'exec', 'local:snapcraft-cos-alerter-on-amd64-for-amd64-2883685', '--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', '--verbosity=brief', '--build-for', 'amd64']' returned non-zero exit status 1.
2023-07-31 14:07:36.232 Full execution log: '/home/dylan/.local/state/snapcraft/log/snapcraft-20230731-140605.205184.log'

Additional context

There seems to be some kind of weird memory issue that can make replicating this confusing.

$ snapcraft  (this fails)
$ git checkout HEAD~2 (puts back setup.py)
$ snapcraft (this succeeds)
$ git checkout feat/snap (removes setup.py again)
$ snapcraft pack (this succeeds)
$ snapcraft clean
$ snapcraft (this fails)
sergiusens commented 1 year ago

if you pip install . this in a virtual environment do you get a bin./cos_alerter, from a quick look at your pyproject.toml it does not look like you have entry_point or scripts entry defined.

https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html