← Back to issue list

Python site-packages are not found in core18 classic snaps

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1815202
Type
issue
State
closed
Author
~flexiondotorg
Labels
Created
Updated
Closed

Current evaluation

Closed without resolution. The report details Python site-packages failing to load in core18 classic snaps, with a PYTHONPATH workaround provided. No comments or fix were recorded.

Suggested action:

No scores available.

Issue body

When creating a classic Python snap using core18 python modules in site-packages are not loadable. This can be worked around by adding the following environment: environment: PYTHONPATH: $PYTHONPATH:$SNAP/lib/python3.6/site-packages

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Closed without resolution. The report details Python site-packages failing to load in core18 classic snaps, with a PYTHONPATH workaround provided. No comments or fix were recorded.
qwen/qwen3.6-35b-a3b Closed without resolution, effectively abandoned. Python site-packages remain unfound in core18 classic snaps. A workaround using the PYTHONPATH environment variable was documented.
qwen/qwen3.6-35b-a3b Closed without a code fix. The missing Python site-packages path in core18 classic snaps is resolved by applying the documented PYTHONPATH environment variable workaround.
qwen3.6-35b-a3b-mtp-q6 Closed without resolution. The issue remains unfixed, requiring users to manually set PYTHONPATH to $SNAP/lib/python3.6/site-packages as a workaround.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1911062 core18 built python snap not usable from override-build snippet in another snap's snapcraft.yaml snapcraft (launchpad) closed Closed as stale. The core18 Python snap path resolution bug in override-build was superseded by substantial changes in newer Python plugin versions, rendering the reported sitecustomize.py behavior obsolete.
71%
#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.
70%