← Back to issue list

Failed to run the build script for part 'charm'

View original Github issue

Metadata

Project
charmcraft
Number
#1747
Type
issue
State
closed
Author
jdkandersson
Labels
—
Created
Updated
Closed

Current evaluation

Flask-framework packing was fixed by merged PR #1751 (commit 40beeef3), which added a default Rust version. The fix shipped in Charmcraft 3.1.0.

Resolution: closed resolved

Reason: PR #1751 was merged as commit 40beeef3, adding a default Rust version to the flask-framework extension so the build has the required Rust tooling. The changelog records the fix in Charmcraft 3.1.0.

Evaluated by: mr-cal-bot

No scores available.

Issue body

### Bug Description After doing `charmcraft init --profile flask-framework`, `charmcraft fetch-libs` and `charmcraft pack` I get the error in the title ### To Reproduce - Create a new multipass instance - lxd init --auto - sudo snap install charmcraft --channel latest/edge --classic - charmcraft init --profile flask-framework - charmcraft fetch-libs - charmcraft pack ### Environment multipass launch --cpus 4 --disk 20G --memory 4G --name charm-dev 22.04 Architecture: arm64 ### charmcraft.yaml ```shell # This file configures Charmcraft. # See https://juju.is/docs/sdk/charmcraft-config for guidance. name: flask-hello-world type: charm bases: - build-on: - name: ubuntu channel: "22.04" run-on: - name: ubuntu channel: "22.04" # (Required) summary: A very short one-line summary of the Flask application. # (Required) description: | A comprehensive overview of your Flask application. extensions: - flask-framework # Uncomment the integrations used by your application # Integrations set to "optional: false" will block the charm # until the applications are integrated. # requires: # mysql: # interface: mysql_client # optional: false # limit: 1 # postgresql: # interface: postgresql_client # optional: false # limit: 1 # mongodb: # interface: mongodb_client # optional: false # limit: 1 # redis: # interface: redis # optional: false # limit: 1 # s3: # interface: s3 # optional: false # limit: 1 # saml: # interface: saml # optional: false # limit: 1 ``` ### Relevant log output ```shell 2024-07-22 16:42:06.752 :: 2024-07-22 16:37:11.663 :: Running external command ['/root/parts/charm/build/staging-venv/bin/pip', 'install', '--no-binary=:all:', '--requirement=requirements.txt', 'cosl', 'pydantic', 'ops>=2.0.0'] 2024-07-22 16:42:06.752 :: 2024-07-22 16:37:12.131 :: :: Collecting cosl 2024-07-22 16:42:06.752 :: 2024-07-22 16:37:12.394 :: :: Downloading cosl-0.0.13.tar.gz (44 kB) 2024-07-22 16:42:06.752 :: 2024-07-22 16:37:12.404 :: :: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 45.0/45.0 kB 5.0 MB/s eta 0:00:00 2024-07-22 16:42:06.752 :: 2024-07-22 16:37:12.412 :: :: Installing build dependencies: started 2024-07-22 16:42:06.752 :: 2024-07-22 16:38:02.871 :: :: Installing build dependencies: finished with status 'done' 2024-07-22 16:42:06.752 :: 2024-07-22 16:38:02.885 :: :: Getting requirements to build wheel: started 2024-07-22 16:42:06.752 :: 2024-07-22 16:38:02.928 :: :: Getting requirements to build wheel: finished with status 'done' 2024-07-22 16:42:06.752 :: 2024-07-22 16:38:02.930 :: :: Preparing metadata (pyproject.toml): started 2024-07-22 16:42:06.752 :: 2024-07-22 16:38:03.004 :: :: Preparing metadata (pyproject.toml): finished with status 'done' 2024-07-22 16:42:06.752 :: 2024-07-22 16:38:03.147 :: :: Collecting pydantic 2024-07-22 16:42:06.752 :: 2024-07-22 16:38:03.165 :: :: Downloading pydantic-2.8.2.tar.gz (739 kB) 2024-07-22 16:42:06.752 :: 2024-07-22 16:38:03.225 :: :: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 739.8/739.8 kB 12.7 MB/s eta 0:00:00 2024-07-22 16:42:06.752 :: 2024-07-22 16:38:03.289 :: :: Installing build dependencies: started 2024-07-22 16:42:06.752 :: 2024-07-22 16:38:04.479 :: :: Installing build dependencies: finished with status 'done' 2024-07-22 16:42:06.752 :: 2024-07-22 16:38:04.480 :: :: Getting requirements to build wheel: started 2024-07-22 16:42:06.752 :: 2024-07-22 16:38:04.518 :: :: Getting requirements to build wheel: finished with status 'done' 2024-07-22 16:42:06.752 :: 2024-07-22 16:38:04.519 :: :: Preparing metadata (pyproject.toml): started 2024-07-22 16:42:06.752 :: 2024-07-22 16:38:04.630 :: :: Preparing metadata (pyproject.toml): finished with status 'done' 2024-07-22 16:42:06.752 :: 2024-07-22 16:38:04.670 :: :: Collecting ops>=2.0.0 2024-07-22 16:42:06.752 :: 2024-07-22 16:38:04.913 :: :: Downloading ops-2.15.0.tar.gz (453 kB) 2024-07-22 16:42:06.752 :: 2024-07-22 16:38:04.947 :: :: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 453.1/453.1 kB 13.4 MB/s eta 0:00:00 2024-07-22 16:42:06.752 :: 2024-07-22 16:38:04.980 :: :: Installing build dependencies: started 2024-07-22 16:42:06.752 :: 2024-07-22 16:38:05.782 :: :: Installing build dependencies: finished with status 'done' 2024-07-22 16:42:06.752 :: 2024-07-22 16:38:05.783 :: :: Getting requirements to build wheel: started 2024-07-22 16:42:06.752 :: 2024-07-22 16:38:05.912 :: :: Getting requirements to build wheel: finished with status 'done' 2024-07-22 16:42:06.752 :: 2024-07-22 16:38:05.913 :: :: Preparing metadata (pyproject.toml): started 2024-07-22 16:42:06.752 :: 2024-07-22 16:38:06.054 :: :: Preparing metadata (pyproject.toml): finished with status 'done' 2024-07-22 16:42:06.752 :: 2024-07-22 16:38:06.303 :: :: Collecting paas-app-charmer==1.* (from -r requirements.txt (line 1)) 2024-07-22 16:42:06.752 :: 2024-07-22 16:38:06.308 :: :: Downloading paas_app_charmer-1.0.3.tar.gz (27 kB) 2024-07-22 16:42:06.752 :: 2024-07-22 16:38:06.325 :: :: Installing build dependencies: started 2024-07-22 16:42:06.752 :: 2024-07-22 16:38:07.122 :: :: Installing build dependencies: finished with status 'done' 2024-07-22 16:42:06.752 :: 2024-07-22 16:38:07.122 :: :: Getting requirements to build wheel: started 2024-07-22 16:42:06.752 :: 2024-07-22 16:38:07.279 :: :: Getting requirements to build wheel: finished with status 'done' 2024-07-22 16:42:06.752 :: 2024-07-22 16:38:07.280 :: :: Preparing metadata (pyproject.toml): started 2024-07-22 16:42:06.752 :: 2024-07-22 16:38:07.411 :: :: Preparing metadata (pyproject.toml): finished with status 'done' 2024-07-22 16:42:06.752 :: 2024-07-22 16:38:07.455 :: :: Collecting jsonschema<4.20,>=4.19 (from paas-app-charmer==1.*->-r requirements.txt (line 1)) 2024-07-22 16:42:06.752 :: 2024-07-22 16:38:07.681 :: :: Downloading jsonschema-4.19.2.tar.gz (318 kB) 2024-07-22 16:42:06.752 :: 2024-07-22 16:38:07.707 :: :: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 318.8/318.8 kB 12.7 MB/s eta 0:00:00 2024-07-22 16:42:06.752 :: 2024-07-22 16:38:07.789 :: :: Installing build dependencies: started 2024-07-22 16:42:06.752 :: 2024-07-22 16:38:10.069 :: :: Installing build dependencies: finished with status 'done' 2024-07-22 16:42:06.752 :: 2024-07-22 16:38:10.069 :: :: Getting requirements to build wheel: started 2024-07-22 16:42:06.752 :: 2024-07-22 16:38:10.113 :: :: Getting requirements to build wheel: finished with status 'done' 2024-07-22 16:42:06.752 :: 2024-07-22 16:38:10.113 :: :: Preparing metadata (pyproject.toml): started 2024-07-22 16:42:06.752 :: 2024-07-22 16:38:10.203 :: :: Preparing metadata (pyproject.toml): finished with status 'done' 2024-07-22 16:42:06.752 :: 2024-07-22 16:38:10.212 :: :: Collecting pydantic 2024-07-22 16:42:06.752 :: 2024-07-22 16:38:10.218 :: :: Downloading pydantic-2.6.4.tar.gz (680 kB) 2024-07-22 16:42:06.752 :: 2024-07-22 16:38:10.296 :: :: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 680.8/680.8 kB 9.1 MB/s eta 0:00:00 2024-07-22 16:42:06.752 :: 2024-07-22 16:38:10.360 :: :: Installing build dependencies: started 2024-07-22 16:42:06.752 :: 2024-07-22 16:38:11.061 :: :: Installing build dependencies: finished with status 'done' 2024-07-22 16:42:06.752 :: 2024-07-22 16:38:11.061 :: :: Getting requirements to build wheel: started 2024-07-22 16:42:06.752 :: 2024-07-22 16:38:11.099 :: :: Getting requirements to build wheel: finished with status 'done' 2024-07-22 16:42:06.752 :: 2024-07-22 16:38:11.100 :: :: Preparing metadata (pyproject.toml): started 2024-07-22 16:42:06.753 :: 2024-07-22 16:38:11.214 :: :: Preparing metadata (pyproject.toml): finished with status 'done' 2024-07-22 16:42:06.753 :: 2024-07-22 16:38:11.245 :: :: Collecting annotated-types>=0.4.0 (from pydantic) 2024-07-22 16:42:06.753 :: 2024-07-22 16:38:11.250 :: :: Downloading annotated_types-0.7.0.tar.gz (16 kB) 2024-07-22 16:42:06.753 :: 2024-07-22 16:38:11.260 :: :: Installing build dependencies: started 2024-07-22 16:42:06.753 :: 2024-07-22 16:38:11.904 :: :: Installing build dependencies: finished with status 'done' 2024-07-22 16:42:06.753 :: 2024-07-22 16:38:11.904 :: :: Getting requirements to build wheel: started 2024-07-22 16:42:06.753 :: 2024-07-22 16:38:11.942 :: :: Getting requirements to build wheel: finished with status 'done' 2024-07-22 16:42:06.753 :: 2024-07-22 16:38:11.942 :: :: Preparing metadata (pyproject.toml): started 2024-07-22 16:42:06.753 :: 2024-07-22 16:38:12.017 :: :: Preparing metadata (pyproject.toml): finished with status 'done' 2024-07-22 16:42:06.753 :: 2024-07-22 16:38:12.383 :: :: Collecting pydantic-core==2.16.3 (from pydantic) 2024-07-22 16:42:06.753 :: 2024-07-22 16:38:12.620 :: :: Downloading pydantic_core-2.16.3.tar.gz (368 kB) 2024-07-22 16:42:06.753 :: 2024-07-22 16:38:12.651 :: :: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 368.9/368.9 kB 12.0 MB/s eta 0:00:00 2024-07-22 16:42:06.753 :: 2024-07-22 16:38:12.693 :: :: Installing build dependencies: started 2024-07-22 16:42:06.753 :: 2024-07-22 16:39:18.681 :: :: Installing build dependencies: still running... 2024-07-22 16:42:06.753 :: 2024-07-22 16:40:14.421 :: :: Installing build dependencies: finished with status 'done' 2024-07-22 16:42:06.753 :: 2024-07-22 16:40:14.422 :: :: Getting requirements to build wheel: started 2024-07-22 16:42:06.753 :: 2024-07-22 16:40:14.479 :: :: Getting requirements to build wheel: finished with status 'done' 2024-07-22 16:42:06.753 :: 2024-07-22 16:40:14.480 :: :: Preparing metadata (pyproject.toml): started 2024-07-22 16:42:06.753 :: 2024-07-22 16:40:18.450 :: :: Preparing metadata (pyproject.toml): finished with status 'done' 2024-07-22 16:42:06.753 :: 2024-07-22 16:40:18.490 :: :: Collecting typing-extensions>=4.6.1 (from pydantic) 2024-07-22 16:42:06.753 :: 2024-07-22 16:40:18.490 :: :: Using cached typing_extensions-4.12.2-py3-none-any.whl 2024-07-22 16:42:06.753 :: 2024-07-22 16:40:18.541 :: :: Collecting pyyaml (from cosl) 2024-07-22 16:42:06.753 :: 2024-07-22 16:40:18.541 :: :: Using cached PyYAML-6.0.1-cp310-cp310-linux_aarch64.whl 2024-07-22 16:42:06.753 :: 2024-07-22 16:40:18.587 :: :: Collecting websocket-client==1.* (from ops>=2.0.0) 2024-07-22 16:42:06.753 :: 2024-07-22 16:40:18.811 :: :: Downloading websocket_client-1.8.0.tar.gz (54 kB) 2024-07-22 16:42:06.753 :: 2024-07-22 16:40:18.825 :: :: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 54.6/54.6 kB 7.1 MB/s eta 0:00:00 2024-07-22 16:42:06.753 :: 2024-07-22 16:40:18.830 :: :: Preparing metadata (setup.py): started 2024-07-22 16:42:06.753 :: 2024-07-22 16:40:18.972 :: :: Preparing metadata (setup.py): finished with status 'done' 2024-07-22 16:42:06.753 :: 2024-07-22 16:40:19.010 :: :: Collecting attrs>=22.2.0 (from jsonschema<4.20,>=4.19->paas-app-charmer==1.*->-r requirements.txt (line 1)) 2024-07-22 16:42:06.753 :: 2024-07-22 16:40:19.016 :: :: Downloading attrs-23.2.0.tar.gz (780 kB) 2024-07-22 16:42:06.753 :: 2024-07-22 16:40:19.078 :: :: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 780.8/780.8 kB 13.1 MB/s eta 0:00:00 2024-07-22 16:42:06.753 :: 2024-07-22 16:40:19.102 :: :: Installing build dependencies: started 2024-07-22 16:42:06.753 :: 2024-07-22 16:40:20.529 :: :: Installing build dependencies: finished with status 'done' 2024-07-22 16:42:06.753 :: 2024-07-22 16:40:20.530 :: :: Getting requirements to build wheel: started 2024-07-22 16:42:06.753 :: 2024-07-22 16:40:20.572 :: :: Getting requirements to build wheel: finished with status 'done' 2024-07-22 16:42:06.753 :: 2024-07-22 16:40:20.572 :: :: Preparing metadata (pyproject.toml): started 2024-07-22 16:42:06.753 :: 2024-07-22 16:40:20.658 :: :: Preparing metadata (pyproject.toml): finished with status 'done' 2024-07-22 16:42:06.753 :: 2024-07-22 16:40:20.695 :: :: Collecting jsonschema-specifications>=2023.03.6 (from jsonschema<4.20,>=4.19->paas-app-charmer==1.*->-r requirements.txt (line 1)) 2024-07-22 16:42:06.753 :: 2024-07-22 16:40:20.701 :: :: Downloading jsonschema_specifications-2023.12.1.tar.gz (13 kB) 2024-07-22 16:42:06.753 :: 2024-07-22 16:40:20.714 :: :: Installing build dependencies: started 2024-07-22 16:42:06.753 :: 2024-07-22 16:40:21.756 :: :: Installing build dependencies: finished with status 'done' 2024-07-22 16:42:06.753 :: 2024-07-22 16:40:21.756 :: :: Getting requirements to build wheel: started 2024-07-22 16:42:06.753 :: 2024-07-22 16:40:21.793 :: :: Getting requirements to build wheel: finished with status 'done' 2024-07-22 16:42:06.753 :: 2024-07-22 16:40:21.793 :: :: Preparing metadata (pyproject.toml): started 2024-07-22 16:42:06.753 :: 2024-07-22 16:40:21.856 :: :: Preparing metadata (pyproject.toml): finished with status 'done' 2024-07-22 16:42:06.753 :: 2024-07-22 16:40:21.893 :: :: Collecting referencing>=0.28.4 (from jsonschema<4.20,>=4.19->paas-app-charmer==1.*->-r requirements.txt (line 1)) 2024-07-22 16:42:06.753 :: 2024-07-22 16:40:22.113 :: :: Downloading referencing-0.35.1.tar.gz (62 kB) 2024-07-22 16:42:06.753 :: 2024-07-22 16:40:22.123 :: :: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 63.0/63.0 kB 6.4 MB/s eta 0:00:00 2024-07-22 16:42:06.753 :: 2024-07-22 16:40:22.160 :: :: Installing build dependencies: started 2024-07-22 16:42:06.753 :: 2024-07-22 16:40:23.185 :: :: Installing build dependencies: finished with status 'done' 2024-07-22 16:42:06.753 :: 2024-07-22 16:40:23.186 :: :: Getting requirements to build wheel: started 2024-07-22 16:42:06.753 :: 2024-07-22 16:40:23.224 :: :: Getting requirements to build wheel: finished with status 'done' 2024-07-22 16:42:06.753 :: 2024-07-22 16:40:23.224 :: :: Preparing metadata (pyproject.toml): started 2024-07-22 16:42:06.753 :: 2024-07-22 16:40:23.294 :: :: Preparing metadata (pyproject.toml): finished with status 'done' 2024-07-22 16:42:06.753 :: 2024-07-22 16:40:23.427 :: :: Collecting rpds-py>=0.7.1 (from jsonschema<4.20,>=4.19->paas-app-charmer==1.*->-r requirements.txt (line 1)) 2024-07-22 16:42:06.753 :: 2024-07-22 16:40:23.433 :: :: Downloading rpds_py-0.19.0.tar.gz (24 kB) 2024-07-22 16:42:06.753 :: 2024-07-22 16:40:23.446 :: :: Installing build dependencies: started 2024-07-22 16:42:06.753 :: 2024-07-22 16:40:24.349 :: :: Installing build dependencies: finished with status 'done' 2024-07-22 16:42:06.753 :: 2024-07-22 16:40:24.350 :: :: Getting requirements to build wheel: started 2024-07-22 16:42:06.753 :: 2024-07-22 16:40:24.376 :: :: Getting requirements to build wheel: finished with status 'done' 2024-07-22 16:42:06.753 :: 2024-07-22 16:40:24.377 :: :: Preparing metadata (pyproject.toml): started 2024-07-22 16:42:06.753 :: 2024-07-22 16:40:26.928 :: :: Preparing metadata (pyproject.toml): finished with status 'done' 2024-07-22 16:42:06.753 :: 2024-07-22 16:40:26.936 :: :: Building wheels for collected packages: paas-app-charmer, pydantic, pydantic-core, cosl, ops, websocket-client, annotated-types, jsonschema, attrs, jsonschema-specifications, referencing, rpds-py 2024-07-22 16:42:06.753 :: 2024-07-22 16:40:26.937 :: :: Building wheel for paas-app-charmer (pyproject.toml): started 2024-07-22 16:42:06.753 :: 2024-07-22 16:40:27.174 :: :: Building wheel for paas-app-charmer (pyproject.toml): finished with status 'done' 2024-07-22 16:42:06.753 :: 2024-07-22 16:40:27.174 :: :: Created wheel for paas-app-charmer: filename=paas_app_charmer-1.0.3-py3-none-any.whl size=34651 sha256=cb64f3a5c565baaf0c3dd30c5f0a7f1b60c004d253aa76194ec978327d3193a5 2024-07-22 16:42:06.753 :: 2024-07-22 16:40:27.174 :: :: Stored in directory: /root/.cache/pip/wheels/97/9d/f1/f0bdb13b3def6665e0db83dc4096d39d7346eeab283624b235 2024-07-22 16:42:06.753 :: 2024-07-22 16:40:27.176 :: :: Building wheel for pydantic (pyproject.toml): started 2024-07-22 16:42:06.753 :: 2024-07-22 16:40:27.196 :: :: Building wheel for pydantic (pyproject.toml): finished with status 'done' 2024-07-22 16:42:06.753 :: 2024-07-22 16:40:27.197 :: :: Created wheel for pydantic: filename=pydantic-2.6.4-py3-none-any.whl size=394912 sha256=1e8b2ebb3829eebc2c54a00a803cda2a5e24f9c34131bdd0447e3764bc880ebe 2024-07-22 16:42:06.753 :: 2024-07-22 16:40:27.197 :: :: Stored in directory: /root/.cache/pip/wheels/5d/2b/d7/e570855b772d8d6a29708db65cfc78eed21a7d9dfd2e7ea27c 2024-07-22 16:42:06.753 :: 2024-07-22 16:40:27.200 :: :: Building wheel for pydantic-core (pyproject.toml): started 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:02.332 :: :: Building wheel for pydantic-core (pyproject.toml): still running... 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:02.525 :: :: Building wheel for pydantic-core (pyproject.toml): finished with status 'done' 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:02.531 :: :: Created wheel for pydantic-core: filename=pydantic_core-2.16.3-cp310-cp310-linux_aarch64.whl size=1921234 sha256=7cd95df3a3de27d3497fb854d729f28cf75ca572f6d2a2737a416bc8b061eb51 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:02.540 :: :: Stored in directory: /root/.cache/pip/wheels/0a/a8/bb/e7985bfb85827bb133fc8388404643084d7cde664aa5777137 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:02.540 :: :: Building wheel for cosl (pyproject.toml): started 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:02.572 :: :: Building wheel for cosl (pyproject.toml): finished with status 'done' 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:02.573 :: :: Created wheel for cosl: filename=cosl-0.0.13-py3-none-any.whl size=40673 sha256=f5c09833f288d0cee70973bdf926a0ce8c40e724e3ad2a9e2fd0864b79a7aeb5 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:02.573 :: :: Stored in directory: /root/.cache/pip/wheels/bb/dc/64/b50b5ff4600702525a3d3acc9a007f7da57de6213dfb6ac572 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:02.574 :: :: Building wheel for ops (pyproject.toml): started 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:02.898 :: :: Building wheel for ops (pyproject.toml): finished with status 'done' 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:02.899 :: :: Created wheel for ops: filename=ops-2.15.0-py3-none-any.whl size=167959 sha256=f72d8a4d8adab60400ae844d6197c403f917e1ca217d1c019251d3b0475e4076 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:02.899 :: :: Stored in directory: /root/.cache/pip/wheels/bb/55/9e/29a824adfe4ab5c05f0afc4fa7fceda07495c449cf4d19c80d 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:02.901 :: :: Building wheel for websocket-client (setup.py): started 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:03.103 :: :: Building wheel for websocket-client (setup.py): finished with status 'done' 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:03.103 :: :: Created wheel for websocket-client: filename=websocket_client-1.8.0-py3-none-any.whl size=58720 sha256=e1c0530834c137a12981569dd2bb7ec71d7d0c7e459f79e85e00d541c21996ab 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:03.105 :: :: Stored in directory: /root/.cache/pip/wheels/f1/20/0f/84b29b8b989a78312c2bcacde09b3b356e515863e441716dab 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:03.105 :: :: Building wheel for annotated-types (pyproject.toml): started 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:03.125 :: :: Building wheel for annotated-types (pyproject.toml): finished with status 'done' 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:03.125 :: :: Created wheel for annotated-types: filename=annotated_types-0.7.0-py3-none-any.whl size=13643 sha256=b0361d7385204b2d17c7de33a812ea975543397efa2fe7adf026c995da382d81 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:03.125 :: :: Stored in directory: /root/.cache/pip/wheels/f8/8b/00/2062052364778af91ecb9465e91e73a0b2183cd4bf2b44d92f 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:03.127 :: :: Building wheel for jsonschema (pyproject.toml): started 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:03.149 :: :: Building wheel for jsonschema (pyproject.toml): finished with status 'done' 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:03.150 :: :: Created wheel for jsonschema: filename=jsonschema-4.19.2-py3-none-any.whl size=83639 sha256=2fb25e164009d6563e56eb654b33615693a40ca1106f99fd97b5fe9429baf8d1 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:03.150 :: :: Stored in directory: /root/.cache/pip/wheels/70/d2/16/8bc20f89ccc0a82e409344fe21f837c9d32f7b84473965819a 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:03.153 :: :: Building wheel for attrs (pyproject.toml): started 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:03.175 :: :: Building wheel for attrs (pyproject.toml): finished with status 'done' 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:03.175 :: :: Created wheel for attrs: filename=attrs-23.2.0-py3-none-any.whl size=60851 sha256=2ae03c2409587c42894bd2e9189ad977b1af7cb0cc6341914ffe30e1f73b84a5 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:03.175 :: :: Stored in directory: /root/.cache/pip/wheels/61/05/28/80f4ae2dc3db1710750af2cbc3f4efb6c0435097d9ca802dd1 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:03.177 :: :: Building wheel for jsonschema-specifications (pyproject.toml): started 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:03.200 :: :: Building wheel for jsonschema-specifications (pyproject.toml): finished with status 'done' 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:03.201 :: :: Created wheel for jsonschema-specifications: filename=jsonschema_specifications-2023.12.1-py3-none-any.whl size=18485 sha256=ee14a8da9c86f6dae36385e01caae0fb68b9f801a057f8d0689c796055c00239 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:03.202 :: :: Stored in directory: /root/.cache/pip/wheels/d2/89/51/54adbb04eea5d40f71a30acc182abb3e5e5d0e3d131a28d0e5 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:03.208 :: :: Building wheel for referencing (pyproject.toml): started 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:03.235 :: :: Building wheel for referencing (pyproject.toml): finished with status 'done' 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:03.235 :: :: Created wheel for referencing: filename=referencing-0.35.1-py3-none-any.whl size=26684 sha256=87509bc1eb8b7fa5747a2f7ccfc3248f77e56e820a158c6bbf4554e6a0779f13 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:03.236 :: :: Stored in directory: /root/.cache/pip/wheels/9c/cd/9d/c3a4add17384843de796a6704a2f798deed0391574d822558d 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:03.236 :: :: Building wheel for rpds-py (pyproject.toml): started 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:03.684 :: :: Building wheel for rpds-py (pyproject.toml): finished with status 'error' 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:03.734 :: :: error: subprocess-exited-with-error 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:03.734 :: :: 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:03.734 :: :: × Building wheel for rpds-py (pyproject.toml) did not run successfully. 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:03.734 :: :: │ exit code: 1 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:03.734 :: :: ╰─> [13 lines of output] 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:03.734 :: :: Running `maturin pep517 build-wheel -i /root/parts/charm/build/staging-venv/bin/python3 --compatibility off` 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:03.739 :: :: 📦 Including license file "/tmp/pip-install-qrac_9hy/rpds-py_33ae401aeb9f4bb98580a8686be0c926/LICENSE" 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:03.739 :: :: 🔗 Found pyo3 bindings 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:03.739 :: :: 🐍 Found CPython 3.10 at /root/parts/charm/build/staging-venv/bin/python3 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:03.739 :: :: 📡 Using build options features from pyproject.toml 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:03.739 :: :: error: package `triomphe v0.1.13` cannot be built because it requires rustc 1.76 or newer, while the currently active rustc version is 1.75.0 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:03.740 :: :: Either upgrade to rustc 1.76 or newer, or use 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:03.740 :: :: cargo update triomphe@0.1.13 --precise ver 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:03.740 :: :: where `ver` is the latest version of `triomphe` supporting rustc 1.75.0 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:03.740 :: :: 💥 maturin failed 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:03.740 :: :: Caused by: Failed to build a native library through cargo 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:03.740 :: :: Caused by: Cargo build finished with "exit status: 101": `env -u CARGO PYO3_ENVIRONMENT_SIGNATURE="cpython-3.10-64bit" PYO3_PYTHON="/root/parts/charm/build/staging-venv/bin/python3" PYTHON_SYS_EXECUTABLE="/root/parts/charm/build/staging-venv/bin/python3" "cargo" "rustc" "--features" "pyo3/extension-module" "--message-format" "json-render-diagnostics" "--manifest-path" "/tmp/pip-install-qrac_9hy/rpds-py_33ae401aeb9f4bb98580a8686be0c926/Cargo.toml" "--release" "--lib"` 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:03.740 :: :: Error: command ['maturin', 'pep517', 'build-wheel', '-i', '/root/parts/charm/build/staging-venv/bin/python3', '--compatibility', 'off'] returned non-zero exit status 1 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:03.740 :: :: [end of output] 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:03.740 :: :: 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:03.740 :: :: note: This error originates from a subprocess, and is likely not a problem with pip. 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:03.741 :: :: ERROR: Failed building wheel for rpds-py 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:03.741 :: :: Successfully built paas-app-charmer pydantic pydantic-core cosl ops websocket-client annotated-types jsonschema attrs jsonschema-specifications referencing 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:03.741 :: :: Failed to build rpds-py 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:03.741 :: :: ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (rpds-py) 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:03.741 :: :: 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:03.741 :: :: [notice] A new release of pip is available: 24.1.1 -> 24.1.2 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:03.741 :: :: [notice] To update, run: python3 -m pip install --upgrade pip 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:04.570 :: Traceback (most recent call last): 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:04.570 :: File "/snap/charmcraft/4206/lib/python3.10/site-packages/charmcraft/charm_builder.py", line 473, in <module> 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:04.576 :: main() 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:04.576 :: File "/snap/charmcraft/4206/lib/python3.10/site-packages/charmcraft/charm_builder.py", line 468, in main 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:04.576 :: builder.build_charm() 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:04.577 :: File "/snap/charmcraft/4206/lib/python3.10/site-packages/charmcraft/charm_builder.py", line 92, in build_charm 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:04.577 :: self.handle_dependencies() 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:04.577 :: File "/snap/charmcraft/4206/lib/python3.10/site-packages/charmcraft/charm_builder.py", line 344, in handle_dependencies 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:04.577 :: self._install_dependencies(staging_venv_dir) 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:04.577 :: File "/snap/charmcraft/4206/lib/python3.10/site-packages/charmcraft/instrum.py", line 152, in _f 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:04.578 :: return func(*args, **kwargs) 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:04.579 :: File "/snap/charmcraft/4206/lib/python3.10/site-packages/charmcraft/charm_builder.py", line 276, in _install_dependencies 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:04.579 :: _process_run( 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:04.579 :: File "/snap/charmcraft/4206/lib/python3.10/site-packages/charmcraft/charm_builder.py", line 404, in _process_run 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:04.579 :: raise RuntimeError(f"Subprocess command {cmd} execution failed with retcode {retcode}") 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:04.579 :: RuntimeError: Subprocess command ['/root/parts/charm/build/staging-venv/bin/pip', 'install', '--no-binary=:all:', '--requirement=requirements.txt', 'cosl', 'pydantic', 'ops>=2.0.0'] execution failed with retcode 1 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:04.957 Failed to run the build script for part 'charm'. 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:04.964 Traceback (most recent call last): 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:04.964 File "/snap/charmcraft/4206/lib/python3.10/site-packages/craft_parts/executor/step_handler.py", line 148, in _builtin_build 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:04.964 _create_and_run_script( 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:04.964 File "/snap/charmcraft/4206/lib/python3.10/site-packages/craft_parts/executor/step_handler.py", line 461, in _create_and_run_script 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:04.964 subprocess.run( 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:04.964 File "/snap/charmcraft/4206/usr/lib/python3.10/subprocess.py", line 526, in run 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:04.964 raise CalledProcessError(retcode, process.args, 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:04.964 subprocess.CalledProcessError: Command '[PosixPath('/root/parts/charm/run/build.sh')]' returned non-zero exit status 1. 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:04.964 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:04.964 The above exception was the direct cause of the following exception: 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:04.964 Traceback (most recent call last): 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:04.964 File "/snap/charmcraft/4206/lib/python3.10/site-packages/craft_application/services/lifecycle.py", line 261, in run 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:04.964 aex.execute(action, stdout=stream, stderr=stream) 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:04.964 File "/snap/charmcraft/4206/lib/python3.10/site-packages/craft_parts/executor/executor.py", line 327, in execute 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:04.964 self._executor.execute(actions, stdout=stdout, stderr=stderr) 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:04.964 File "/snap/charmcraft/4206/lib/python3.10/site-packages/craft_parts/executor/executor.py", line 137, in execute 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:04.964 self._run_action(act, stdout=stdout, stderr=stderr) 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:04.964 File "/snap/charmcraft/4206/lib/python3.10/site-packages/craft_parts/executor/executor.py", line 214, in _run_action 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:04.964 handler.run_action(action, stdout=stdout, stderr=stderr) 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:04.964 File "/snap/charmcraft/4206/lib/python3.10/site-packages/craft_parts/executor/part_handler.py", line 170, in run_action 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:04.964 state = handler(step_info, stdout=stdout, stderr=stderr) 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:04.964 File "/snap/charmcraft/4206/lib/python3.10/site-packages/craft_parts/executor/part_handler.py", line 309, in _run_build 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:04.964 self._run_step( 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:04.964 File "/snap/charmcraft/4206/lib/python3.10/site-packages/craft_parts/executor/part_handler.py", line 491, in _run_step 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:04.964 return step_handler.run_builtin() 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:04.964 File "/snap/charmcraft/4206/lib/python3.10/site-packages/craft_parts/executor/step_handler.py", line 108, in run_builtin 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:04.964 return handler() 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:04.964 File "/snap/charmcraft/4206/lib/python3.10/site-packages/craft_parts/executor/step_handler.py", line 157, in _builtin_build 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:04.964 raise errors.PluginBuildError( 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:04.964 craft_parts.errors.PluginBuildError: Failed to run the build script for part 'charm'. 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:04.964 Check the build output and verify the project can work with the 'charm' plugin. 2024-07-22 16:42:06.753 :: 2024-07-22 16:42:04.964 Recommended resolution: Check the build output and verify the project can work with the 'charm' plugin. 2024-07-22 16:42:06.754 Executing on host: lxc --project charmcraft config device show local:charmcraft-flask-hello-world-on-arm64-for-arm64-1322375 2024-07-22 16:42:06.787 Executing on host: lxc --project charmcraft config device remove local:charmcraft-flask-hello-world-on-arm64-for-arm64-1322375 disk-/root/project 2024-07-22 16:42:06.886 Executing on host: lxc --project charmcraft stop local:charmcraft-flask-hello-world-on-arm64-for-arm64-1322375 2024-07-22 16:42:11.078 Failed to execute charmcraft in instance. 2024-07-22 16:42:11.089 Traceback (most recent call last): 2024-07-22 16:42:11.089 File "/snap/charmcraft/4206/lib/python3.10/site-packages/craft_application/application.py", line 376, in run_managed 2024-07-22 16:42:11.089 instance.execute_run( # pyright: ignore[reportUnknownMemberType,reportUnknownVariableType] 2024-07-22 16:42:11.089 File "/snap/charmcraft/4206/lib/python3.10/site-packages/craft_providers/lxd/lxd_instance.py", line 293, in execute_run 2024-07-22 16:42:11.089 return self.lxc.exec( 2024-07-22 16:42:11.089 File "/snap/charmcraft/4206/lib/python3.10/site-packages/craft_providers/lxd/lxc.py", line 387, in exec 2024-07-22 16:42:11.089 return runner(final_cmd, timeout=timeout, check=check, **kwargs) 2024-07-22 16:42:11.089 File "/snap/charmcraft/4206/usr/lib/python3.10/subprocess.py", line 526, in run 2024-07-22 16:42:11.089 raise CalledProcessError(retcode, process.args, 2024-07-22 16:42:11.089 subprocess.CalledProcessError: Command '['lxc', '--project', 'charmcraft', 'exec', 'local:charmcraft-flask-hello-world-on-arm64-for-arm64-1322375', '--cwd', '/root/project', '--', 'env', 'CRAFT_MANAGED_MODE=1', 'CHARMCRAFT_MANAGED_MODE=1', 'DEBIAN_FRONTEND=noninteractive', 'DEBCONF_NONINTERACTIVE_SEEN=true', 'DEBIAN_PRIORITY=critical', 'CRAFT_PLATFORM=ubuntu-22.04-arm64', 'CRAFT_VERBOSITY_LEVEL=BRIEF', 'charmcraft', 'pack']' returned non-zero exit status 1. 2024-07-22 16:42:11.089 2024-07-22 16:42:11.089 The above exception was the direct cause of the following exception: 2024-07-22 16:42:11.089 Traceback (most recent call last): 2024-07-22 16:42:11.089 File "/snap/charmcraft/4206/lib/python3.10/site-packages/craft_application/application.py", line 541, in run 2024-07-22 16:42:11.089 self.run_managed(platform, build_for) 2024-07-22 16:42:11.089 File "/snap/charmcraft/4206/lib/python3.10/site-packages/charmcraft/application/main.py", line 137, in run_managed 2024-07-22 16:42:11.089 super().run_managed(platform, build_for) 2024-07-22 16:42:11.089 File "/snap/charmcraft/4206/lib/python3.10/site-packages/craft_application/application.py", line 383, in run_managed 2024-07-22 16:42:11.089 raise craft_providers.ProviderError( 2024-07-22 16:42:11.089 craft_providers.errors.ProviderError: Failed to execute charmcraft in instance. 2024-07-22 16:42:11.089 Full execution log: '/home/ubuntu/.local/state/charmcraft/log/charmcraft-20240722-162738.347835.log' ```

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Flask-framework packing was fixed by merged PR #1751 (commit 40beeef3), which added a default Rust version. The fix shipped in Charmcraft 3.1.0.
stealth/space-bunny-alpha — closed resolved Flask-framework charm packing was fixed in merged PR #1751 (commit 40beeef3) by supplying the extension with a default Rust version.
qwen3.6-35b-a3b-mtp-q6 — — Build script failure during charmcraft pack was resolved. The issue was closed after the maintainer acknowledged the report and merged the fix in PR #1751.
qwen/qwen3.6-35b-a3b — — A charmcraft pack build failure on arm64 and amd64 was resolved. The reporter submitted a fix that was merged as pull request #1751, closing the report.
qwen/qwen3.6-35b-a3b — — Resolved the charmcraft pack PluginBuildError during the charm part build. The fix was merged in pull request #1751, closing the report.
qwen3.6-35b-a3b-mtp-q6 — — Fixed and merged in pull request #1751. The charmcraft build failure was resolved and the issue is now closed.

Update history

No update history recorded yet.

Related work

  • Likely Fixed By: canonical/charmcraft#1751 (confidence 100%)

    Merged PR #1751 resolved the build failure in commit 40beeef3.

Related issues

Issue Project State Summary Similarity
#1743 flask-framework charm builds failing due to dependency charmcraft closed Flask-framework builds were fixed by merged PR #1751 (40beeef3), which gave the extension a default Rust version and resolved the indirect rustc dependency failure.
78%
#1620 fix: add default charm part in flask-framework charmcraft merged Merged PR #1620 added a default ops charm part and conflict check to flask-framework, updated template dependencies, and addressed #1616.
71%