Python plugin. Python is broken in core24 classic snaps if snap is used on an older Ubuntu LTS version
Metadata
Current evaluation
Core24 classic snaps using the Python plugin fail on older Ubuntu LTS hosts because staged Python cannot find its stdlib; Snapcraft 8.3.2's fix proved incomplete, with follow-up in snapcraft#5144.
Suggested action: keep open
Reason: The body provides an exact Slurm revision, LXD reproduction commands, staged packages, and a complete ModuleNotFoundError trace. A maintainer identified Snapcraft as the likely layer, but a later Landscape report showed Snapcraft 8.3.2 only shifted the failure to a charset_normalizer circular import; snapcraft#5144 remains open, so this runtime break is not resolved.
Evaluated by: mr-cal-bot
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha |
Impact:
68
Quick Win:
20
Complexity:
67
Confidence:
92
Actionability:
87
|
keep open | Core24 classic snaps using the Python plugin fail on older Ubuntu LTS hosts because staged Python cannot find its stdlib; Snapcraft 8.3.2's fix proved incomplete, with follow-up in snapcraft#5144. | |
| qwen/qwen3.6-35b-a3b |
Impact:
70
Quick Win:
17
Complexity:
60
Confidence:
70
Actionability:
60
|
keep open | Python 3.12 in core24 classic snaps fails on older Ubuntu bases with module-not-found errors; reported fix in Snapcraft 8.3.2 appears incomplete as users still encounter the issue. | |
| qwen/qwen3.8-27b |
Impact:
65
Quick Win:
26
Staleness:
75
Complexity:
60
Confidence:
85
Support Request:
10
|
close stale | Python plugin bug: core24 classic snaps fail on older Ubuntu LTS (20.04/22.04) with 'No module named encodings'. Original problem fixed in Snapcraft 8.3.2 via PR #4946; residual follow-up tracked in snapcraft#5144. Inactive since Sept 2024. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
75
Complexity:
65
Confidence:
95
Support Request:
10
|
close not a bug | Python 3.12 fails in core24 classic snaps on older Ubuntu LTS. Maintainer confirmed fix in Snapcraft 8.3.2 and redirected to a new issue. Resolved. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
85
Complexity:
40
Confidence:
90
Support Request:
10
|
close stale | Python plugin bug in core24 classic snaps on older Ubuntu LTS. Maintainer fixed in Snapcraft 8.3.2 and asked to open new issue; reporter confirmed done. Issue is inactive and superseded. |
Update history
No update history recorded yet.
Related work
-
Related To:
snapcraft#5144
(confidence 99%)
Opened at a maintainer's request to track the unresolved non-staged Python binary case behind the same core24 classic failure.
-
Related To:
snapcraft#4942
(confidence 98%)
PR #4946, squash-merged as 952a8e04d, corrected the core24 pyvenv.cfg home path, but later reports in this issue indicate the fix was incomplete.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #4942 Python plugin is broken in core24 | snapcraft | closed | Python plugin broke in core24 classic snaps due to Python 3.12 venv changes. Fixed by PR #4946 (squash-merged as 952a8e04d), which rewrites pyvenv.cfg's "home" key to /snap/<name>/current in snapcraft/parts/plugins/python_common.py. | |
| #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. | |
| #5144 error out if core24 classic python snap is created with the non-staged python binary | snapcraft | open | Add a Python-plugin guard for classic snaps staged without the python3-minimal symlink; current post_prime only rewrites pyvenv.cfg, leaving the core24 failure mode unresolved. | |
| #1660 Python plugin fails on core26: base snap does not include Python interpreter | craft-parts | open | core26 lacks a Python runtime, so Python-plugin builds fail unless Python is staged. Documentation covers the workaround, and maintainers are pursuing clearer warning guidance. | |
| #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. | |
| #2161192 python plugin not working at all with snapcraft 9+ | snapcraft (launchpad) | open | Core26 Python plugin builds and module loading were fixed; packaging Python separately is now documented as required by the base. | |
| #5408 Unable to build usable Python snaps which use Ubuntu-provided python3-* dependencies using strict confinement with core24 using snapcraft 8.8.0 (8.x/stable) | snapcraft | closed | Closed as a Python path/configuration issue: setting PYTHONPATH to $SNAP/usr/lib/python3/dist-packages made staged Ubuntu python3-* packages importable; no Snapcraft fix was made. |