Latest snap package cannot build a charm
Metadata
Current evaluation
Charm builds broken by Ubuntu Bionic's pip3 behavior in snap 0.10.1 were fixed in 0.10.2 by merged PR #124 (commit aabf060e).
Resolution: closed resolved
Reason: Merged PR #124 (commit aabf060e, merge 681d1722) added --system to pip calls to work around broken pip3 behavior on Ubuntu Bionic. The maintainer confirmed the fix shipped in Charmcraft 0.10.2.
Evaluated by: mr-cal-bot
No scores available.
Issue body
The latest release to the `beta` channel cannot build a charm out of the box:
[charmcraft-log.txt](https://github.com/canonical/charmcraft/files/6390446/charmcraft-log.txt)
Reproduce with:
```bash
multipass launch --name charmcraft-test
multipass exec charmcraft-test -- bash -c "sudo snap install charmcraft --beta && \
mkdir mycharm && \
cd mycharm && \
charmcraft init && \
charmcraft build"
```
Error from the `charmcraft build` stage:
```
Executing ['pip3', 'list'] failed with return code 1
problems using pip (full execution logs in /home/ubuntu/snap/charmcraft/common/charmcraft-log-pg68k6ko)
```
Log file is attached to this issue.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Charm builds broken by Ubuntu Bionic's pip3 behavior in snap 0.10.1 were fixed in 0.10.2 by merged PR #124 (commit aabf060e). | |
| stealth/space-bunny-alpha | — | closed resolved | Charm builds were fixed in Charmcraft 0.10.2 by PR #124 (commit aabf060e), which worked around broken pip3 behavior on Ubuntu Bionic. | |
| stealth/space-bunny-alpha | — | closed resolved | The 0.10.1 beta snap failed at `charmcraft build` with "Executing ['pip3', 'list'] failed". Fixed by PR #124 (commit aabf060e) and confirmed by the reporter in charmcraft 0.10.2. | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed in Charmcraft 0.10.2. PR #124 (commit aabf060e) worked around Ubuntu Bionic's broken pip3 command that prevented charm builds. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | The charmcraft snap beta failed to build charms due to a pip3 execution error. The problem was resolved and closed with the 0.10.2 release. | |
| qwen/qwen3.6-35b-a3b | — | — | Charmcraft snap beta failed to build charms due to pip execution errors. The bug was fixed in the 0.10.2 release. | |
| qwen/qwen3.6-35b-a3b | — | — | Charmcraft snap beta failed to build charms due to a pip3 execution error. The bug was fixed and resolved in the 0.10.2 release. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Charmcraft snap beta failed to build charms due to a pip3 execution error. The bug was resolved and fixed in the 0.10.2 release. |
Update history
No update history recorded yet.
Related work
-
Likely Fixed By:
canonical/charmcraft#124
(confidence 100%)
Merged workaround for Ubuntu Bionic's pip3 behavior, released in Charmcraft 0.10.2.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #55 `charmcraft build` breaks when pip packages come from github | charmcraft | closed | GitHub requirements now work in snap-packaged Charmcraft 0.2, which added preliminary git support; the reporter confirmed the fix. Released via PR #58. |