Python snaps now failing with snapcraft 2.27.1
Metadata
Current evaluation
The Python classic-confinement regression in Snapcraft 2.27.1 was fixed by snapcraft#1093, commit e7824093f, correcting Python plugin handling for classic snaps.
Resolution: closed resolved
Reason: Merged PR snapcraft#1093 fixed Python plugin handling for classic confinement in commit e7824093f. A later comment also confirmed that the affected configuration works correctly in Snapcraft 4.
Evaluated by: mr-cal-bot
No scores available.
Issue body
Snaps using the Python plugin and classic containment fail if built with snapcraft 2.27.1, hanging indefinitely when run with no output apart from this syslog entry:
Mar 2 16:00:29 uurp juju-act[21034]: cmd.go:111: DEBUG: restarting into "/snap/core/current/usr/bin/snap"
Mar 2 16:00:29 uurp kernel: [16328.264311] audit: type=1400 audit(1488445229.488:473): apparmor="DENIED" operation="file_inherit" profile="/usr/lib/snapd/snap-confine" name="/dev/tty" pid=21034 comm="snap-confine" requested_mask="wr" denied_mask="wr" fsuid=1000 ouid=0
I first picked this up with a Launchpad built snap, but can reproduce it locally.
For an example, see https://git.launchpad.net/juju-act/tree/ which is quite minimal. I will attach a snap built with a previous version of snapcraft that works fine, and a snap built with 2.27.1 that hangs.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | The Python classic-confinement regression in Snapcraft 2.27.1 was fixed by snapcraft#1093, commit e7824093f, correcting Python plugin handling for classic snaps. | |
| stealth/space-bunny-alpha | — | closed resolved | snapcraft#1093 (e7824093f) fixed classic-confinement Python handling behind the 2.27.1 hang; the old Launchpad report was later closed, and Snapcraft 4 is confirmed working. | |
| stealth/space-bunny-alpha | — | closed stale | Launchpad bug #1669306 was closed as abandoned, with no comments, fixes, resolving PR, or commit recorded for the Snapcraft 2.27.1 Python snap hang. | |
| qwen/qwen3.6-35b-a3b | — | — | Abandoned. Python snaps with classic containment hung due to an AppArmor /dev/tty denial in snapcraft 2.27.1. Closed with no comments or fixes. | |
| qwen/qwen3.6-35b-a3b | — | — | Abandoned. Python snaps with classic containment hang indefinitely when built with snapcraft 2.27.1 due to an AppArmor denial on /dev/tty. No fix or follow-up was provided. | |
| qwen/qwen3.6-35b-a3b | — | — | Python snaps built with snapcraft 2.27.1 hang due to an AppArmor denial on /dev/tty. Closed without comments or resolution, indicating the report was abandoned. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
100
Complexity:
60
Confidence:
95
Support Request:
10
|
close stale | Python snaps built with snapcraft 2.27.1 hang due to AppArmor denials on /dev/tty. Issue is over 9 years old, has no comments or labels, and shows no maintainer activity. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Likely Fixed By:
snapcraft#1093
(confidence 96%)
The merged change is titled "python plugin: do the right thing with classic" and directly addresses this failure mode.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1880319 Python plugin --classic snap conflicts with system python | snapcraft (launchpad) | closed | Classic Python snap handling was fixed by merged PR #1093 (e7824093f), preventing host-environment leakage and using a classic-compatible interpreter. | |
| #5407 Unable to build Python snaps using classic confinement with core24 using snapcraft 8.8.0 (8.x/stable) | snapcraft | closed | Resolved as a configuration issue: staging python3.12-minimal and invoking bin/python made the core24 classic Python snap build work; no fixing PR or commit was cited. |