Python libraries installed by python path are not found in sys.path
Metadata
Current evaluation
Snapcraft 4.0 core20: Python parts install packages to $SNAP/lib/python3.8/site-packages but that path is missing from sys.path, so apps cannot import them. No labels, no comments, no maintainer response; last activity ~6.3 years ago.
Suggested action: needs triage
Reason: The issue has no labels, no assignee, and zero comments — no maintainer has ever acknowledged or categorised it, so it has not been triaged. The reported behaviour (site-packages not on sys.path) is a plausible real bug, but the issue is ~6 years old with no follow-up, and I could not verify via code/issue search whether it was fixed or superseded (e.g. by the python part's virtualenv default), so a human should confirm before closing.
Impact:
45
Quick Win:
20.25
Staleness:
90
Complexity:
55
Confidence:
55
Support Request:
25
Issue body
snapcraft 4.0, on a core20 snap
Python libraries and apps installed by a python part (via pip or setup.pyt dependencies) are installed in $SNAP/lib/python3.8/site-packages, but the path is not added to sys.path:
sys.path = [
'/',
'/usr/lib/python38.zip',
'/usr/lib/python3.8',
'/usr/lib/python3.8/lib-dynload',
'/usr/lib/python3/dist-packages',
]
As such, those modules are not found when running the app.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.8-27b |
Impact:
45
Quick Win:
20.25
Staleness:
90
Complexity:
55
Confidence:
55
Support Request:
25
|
needs triage | Snapcraft 4.0 core20: Python parts install packages to $SNAP/lib/python3.8/site-packages but that path is missing from sys.path, so apps cannot import them. No labels, no comments, no maintainer response; last activity ~6.3 years ago. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
95
Complexity:
40
Confidence:
85
Support Request:
20
|
close stale | Python libraries installed via snapcraft's python part are not accessible because the site-packages path is missing from sys.path. Issue is over six years old with no maintainer response. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
95
Complexity:
20
Confidence:
90
Support Request:
10
|
close stale | Python packages installed via pip in snapcraft 4.0/core20 are not added to sys.path, causing import failures. The report is over six years old with zero maintainer engagement and likely pertains to deprecated core20/snapcraft versions. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
98
Complexity:
45
Confidence:
90
Support Request:
20
|
close stale | Reports Python site-packages not being added to sys.path in snapcraft 4.0 on core20. Issue is 6 years old with no maintainer response or comments. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
95
Complexity:
30
Confidence:
85
Support Request:
20
|
close stale | snapcraft on core20 installs Python packages in site-packages but omits the directory from sys.path, causing import failures. The issue is open, has zero comments, has been inactive for over six years, and requires triage. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1860884 Python plugin: paths for from the snapcraft snap in sys.path break dependencies | snapcraft (launchpad) | closed | Abandoned due to inactivity. The Python plugin incorrectly included snapcraft snap paths in sys.path during builds, causing dependency conflicts. No resolution or fix was implemented. |