← Back to issue list

Python plugin with core24 and gnome extension broken

View original Github issue

Metadata

Project
snapcraft
Number
#5207
Type
issue
State
closed
Author
sergiusens
Labels
—
Created
Updated
Closed

Current evaluation

Core24 Python/GNOME breakage was confirmed resolved when the disabled Spread test passed again and was re-enabled by merged PR #5977 (commit 3743f75c4).

Resolution: closed resolved

Reason: The core24 Python plugin test was confirmed passing and re-enabled by merged PR #5977 in commit 3743f75c4, providing direct evidence that the GNOME-extension build and runtime scenario works again.

Evaluated by: mr-cal-bot

No scores available.

Issue body

### Bug Description Migration of the core22 plugin logic to core24 is broken. This might as well be a gnome content snap problem, as such the test cannot be enabled ### To Reproduce Pack the proposed snapcraft.yaml with the sources at https://github.com/canonical/snapcraft/tree/main/tests/spread/plugins/craft-parts/build-and-run-hello/python-hello/src ### Environment spread 24.04 ### snapcraft.yaml ```yaml name: python-hello version: "1.0" summary: simple python application description: build a python application using core22 base: core24 confinement: strict apps: python-hello: command: bin/hello extensions: [gnome] parts: hello: plugin: python source: src ``` ### Relevant log output ```shell # python-hello Python path configuration: PYTHONHOME = (not set) PYTHONPATH = '/snap/python-hello/x1/gnome-platform/usr/lib/python3/dist-packages' program name = 'python3' isolated = 0 environment = 1 user site = 1 safe_path = 0 import site = 1 is in build tree = 0 stdlib dir = '/snap/gnome-46-2404-sdk/current/usr/lib/python3.12' sys._base_executable = '/usr/bin/python3.12' sys.base_prefix = '/snap/gnome-46-2404-sdk/current/usr' sys.base_exec_prefix = '/snap/gnome-46-2404-sdk/current/usr' sys.platlibdir = 'lib' sys.executable = '/snap/python-hello/x1/bin/python3' sys.prefix = '/snap/gnome-46-2404-sdk/current/usr' sys.exec_prefix = '/snap/gnome-46-2404-sdk/current/usr' sys.path = [ '/snap/python-hello/x1/gnome-platform/usr/lib/python3/dist-packages', '/snap/gnome-46-2404-sdk/current/usr/lib/python312.zip', '/snap/gnome-46-2404-sdk/current/usr/lib/python3.12', '/snap/gnome-46-2404-sdk/current/usr/lib/python3.12/lib-dynload', ] Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding Python runtime state: core initialized ModuleNotFoundError: No module named 'encodings' Current thread 0x00007dc98b0a6740 (most recent call first): <no Python frame> ``` ### Additional context _No response_

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Core24 Python/GNOME breakage was confirmed resolved when the disabled Spread test passed again and was re-enabled by merged PR #5977 (commit 3743f75c4).
stealth/space-bunny-alpha — closed resolved Python plugin on core24 with gnome extension failed with 'No module named encodings'. The core24 Python spread test was re-enabled by PR #5977 (commit 3743f75c4) once it passed again, closing the issue.
stealth/space-bunny-alpha — closed resolved Python plugin + core24/gnome-extension breakage was resolved by the GNOME platform snap; the disabled core24 python-hello spread test was confirmed passing and re-enabled in merged PR #5977 (commit 3743f75c4).
stealth/space-bunny-alpha — closed resolved The core24 Python/GNOME test was confirmed passing and re-enabled in merged PR #5977 (commit 3743f75c4), resolving the reported breakage.
stealth/space-bunny-alpha — closed resolved Core24 Python plugin with the GNOME extension works again; merged PR #5977 (commit 3743f75c4) re-enabled the passing regression test and resolved #5207.
qwen/qwen3.6-35b-a3b — — The core24 Python plugin with the gnome extension failed due to missing Python encodings. The bug was resolved, and the disabled test was re-enabled in pull request #5977.
qwen/qwen3.6-35b-a3b — — Migration of the core22 Python plugin to core24 caused a missing encodings module error with the gnome extension. The issue was resolved after the test began passing, with the test re-enabled in pull request #5977.
qwen3.6-35b-a3b-mtp-q6 — — Fixed. The previously disabled test now passes and was re-enabled in pull request #5977, resolving the core24 Python plugin and gnome extension issue.

Update history

No update history recorded yet.

Related work

  • Likely Fixed By: canonical/snapcraft#5977 (confidence 99%)

    Merged PR #5977 re-enabled the previously disabled core24 Python Spread test after it began passing.

Related issues

Issue Project State Summary Similarity
#5977 test: re-enable core24 python test snapcraft merged PR #5977 merged as 3743f75c4, re-enabling the core24 Python Spread test after it began passing again and closing #5207.
75%
#4587 Improvements to the PythonPlugin for core24 snapcraft open Core24 Python-plugin support merged in #4666, but the proposed interpreter-symlink and default-shebang linters plus broader Python/GNOME integration work remain open and untriaged.
72%