Python plugin. Python is broken in core24 classic snaps if snap is used on an older Ubuntu LTS version
Metadata
Current evaluation
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.
Suggested action: close stale
Reason: Maintainer tigarmo stated the original issue was 'supposedly fixed in Snapcraft 8.3.2' via PR #4946 (merged Aug 1, 2024, updating pyvenv.cfg home to the final snap path) and asked the reporter to open a new issue for the residual problem, which the reporter confirmed ('Done.' — tracked as snapcraft#5144). With the original problem resolved and no activity for ~18 months, this issue has served its purpose and can be closed in favor of the follow-up.
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.8-27b |
Impact:
65
Quick Win:
26.0
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. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
85
Complexity:
40
Confidence:
90
Support Request:
10
|
close stale | Python breaks in core24 classic snaps on older Ubuntu LTS due to platform path issues. Discussed upstream fixes, but activity stalled. Redirected to a new Snapcraft issue. Needs triage or upstream tracking. |
Update history
No update history recorded yet.
Related work
-
Likely Fixed By:
snapcraft#4946
(confidence 85%)
Merged PR 'fix: fix Python venv in core24 classic snaps' (Aug 1, 2024); maintainer cited it as the 8.3.2 fix for this exact breakage.
-
Related To:
snapcraft#4942
(confidence 80%)
Sister issue 'Python plugin is broken in core24', closed as fixed by the same PR #4946.
-
Related To:
snapcraft#5144
(confidence 60%)
Follow-up feature request (error out if core24 classic python snap uses non-staged python binary), consistent with the new issue the reporter was asked to open; still open with no activity.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #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. Classic Python snaps on core24 require explicitly adding python3.12-minimal to stage-packages and adjusting the app command. The developer acknowledged documentation gaps and announced upcoming Python plugin improvements. | |
| #6020 Most Python-based snaps can't build on core26 | snapcraft | closed | Resolved in PR #6089 and released in snapcraft 8.14.3. The python plugin now correctly handles core26 builds without assuming a system interpreter. Uv and poetry plugins remain unaddressed and will be fixed in future updates. | |
| #2161192 python plugin not working at all with snapcraft 9+ | snapcraft (launchpad) | open | Python plugin broken on core26/snapcraft 9+ — modules not loading, requires python3-venv instead of python3. No maintainer response after 49 days. | |
| #5144 error out if core24 classic python snap is created with the non-staged python binary | snapcraft | open | Feature request to add a post_prime check in the python plugin that errors when a core24 classic snap is built with the host python (/usr/bin/python*) instead of a staged interpreter, which produces a broken pyvenv.cfg (home = /usr/bin). No labels, no comments, no activity for ~2 years. |