← Back to issue list

Error when building with charmcraft from edge

View original Github issue

Metadata

Project
charmcraft
Number
#566
Type
issue
State
closed
Author
dstathis
Labels
Created
Updated
Closed

Current evaluation

Closed as a duplicate of #551. Resolved via a config workaround adding setuptools to charm-python-packages. A follow-up confirmed adding pip alongside setuptools fixed circular dependency build failures.

Suggested action:

No scores available.

Issue body

My charm currently builds just fine on the stable channel (1.2.1) but fails with the following message on edge (1.3+22.g08b79ab): ``` $ charmcraft pack Packing charm 'cassandra-k8s_ubuntu-20.04-amd64.charm'... Parts processing error: Failed to run the build script for part 'charm'. (full execution logs in '/tmp/charmcraft.log') Failed to build charm for bases index '0'. (full execution logs in '/home/dylan/snap/charmcraft/common/charmcraft-log-1320vb84') ``` [charmcraft_log.txt](https://github.com/canonical/charmcraft/files/7307637/charmcraft_log.txt)

Evaluation history

Date Model Scores Action Summary
qwen3.6-35b-a3b-mtp-q6 Closed as a duplicate of #551. Resolved via a config workaround adding setuptools to charm-python-packages. A follow-up confirmed adding pip alongside setuptools fixed circular dependency build failures.
qwen/qwen3.6-35b-a3b Closed as a duplicate of #551. Users resolved the build failure by adding charm-python-packages: [setuptools] to the charm part config. A follow-up noted that including pip was also necessary to resolve circular build dependencies.
qwen3.6-35b-a3b-mtp-q6 Closed as a duplicate of #551. A maintainer suggested adding setuptools to charm-python-packages. A follow-up user reported the same error but later identified their specific failure as circular build dependencies, resolved by adding pip to the package list.
qwen3.6-35b-a3b-mtp-q6 Closed as a duplicate of #551. The build failure was resolved by configuring charm-python-packages with setuptools and pip in charmcraft.yaml to bypass circular dependency issues. No upstream code changes were applied.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#639 Can't build charm: Failed to build charm for bases index '0' charmcraft closed Resolved as a jinja2 and setuptools version conflict. Provided a charmcraft.yaml workaround to install or pin setuptools. A later user confirmed charmcraft clean followed by pack also fixed it. Closed without code changes.
75%
#922 Unable to pack charms on a GCP instance charmcraft closed Closed as not a Charmcraft bug. The error stems from a pip and setuptools version mismatch. Maintainers provided a workaround: adding setuptools to charm-python-packages in charmcraft.yaml to force an update and resolve the build failure.
74%
#4266 Charmcraft no longer builds from scratch using edge release of snapcraft snapcraft closed Closed as stale. The edge snapcraft build failure from a pip version conflict remains unfixed. A proposed workaround breaks stable, so the issue was abandoned pending further reports.
73%
#738 Crash with `charmcraft pack` charmcraft closed Closed. The crash stemmed from outdated setuptools and pip failing to build jinja2. Resolved via a workaround specifying newer setuptools and pip in charmcraft.yaml. Maintainers attributed the error to upstream packaging and pip limitations.
72%
#858 Cannot install cryptography Python package as sdist using `charmcraft -v pack` charmcraft closed Closed as not a bug. Resolved via workaround using override-build in charmcraft.yaml to configure pip and specify charm-binary-python-packages. Author plans to document the override-build feature.
72%
#632 Cant build charm with charmhelpers - missing markupsafe charmcraft closed Charm build failed due to a setuptools version conflict between Jinja2 and Tempita. Resolved by adding charm-python-packages: [setuptools < 58] to charmcraft.yaml. Issue closed as resolved.
71%