← Back to issue list

python imports are messed up because of missing pth file

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1626668
Type
issue
State
closed
Author
~s8m
Labels
—
Created
Updated
Closed

Current evaluation

Regression from #765 was fixed by PR #822 (commit 66d6f7827), which stopped the Python plugin filtering .pth files; the fix shipped in Snapcraft 2.18.1.

Resolution: closed resolved

Reason: PR #822, commit 66d6f7827, corrected .pth handling and was included in the 2.18.1 release, resolving the regression attributed to #765.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Patchset introducing regression: https://github.com/snapcore/snapcraft/pull/765

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Regression from #765 was fixed by PR #822 (commit 66d6f7827), which stopped the Python plugin filtering .pth files; the fix shipped in Snapcraft 2.18.1.
stealth/space-bunny-alpha — closed resolved Fixed in snapcraft#822 via commit 66d6f7827: the Python plugin stopped filtering .pth files. The correction shipped in 2.18.1, resolving the regression introduced by #765.
stealth/space-bunny-alpha — closed resolved Missing .pth files broke Python imports after #765. Merged PR #822 (commit 66d6f7827) restored their inclusion, with the fix shipped in Snapcraft 2.18.1.
qwen/qwen3.6-35b-a3b — — Abandoned. The issue was closed without a documented fix, tracing the missing .pth file Python import regression to PR #765.
qwen/qwen3.6-35b-a3b — — Closed without resolution after tracing the regression to PR #765. No fix or follow-up action was documented.
qwen/qwen3.6-35b-a3b — — Closed. Reports Python import failures due to a missing .pth file from PR #765. No comments or resolution details provided; issue appears abandoned or resolved externally.
qwen3.6-35b-a3b-mtp-q6 — — Closed. Reports a Python import regression caused by a missing .pth file introduced in PR #765. The issue was closed without explicit resolution details.

Update history

Date Change
created

Related work

  • Likely Fixed By: snapcraft#822 (confidence 100%)

    Stopped filtering .pth files in commit 66d6f7827; shipped in version 2.18.1.

  • Caused By: snapcraft#765 (confidence 100%)

    Identified in the issue as the patchset that introduced the regression.

Related issues

Issue Project State Summary Similarity
#1586546 snapcraft python2 plugin build fails because of .pth and PYTHONPATH test snapcraft (launchpad) closed Fixed Python plugin setup.py handling in snapcore/snapcraft#718, merged as commit 810136457.
76%
#1626839 [Tech Debt] Regression test for missing .pth file with python plugin snapcraft (launchpad) closed Closed with no recorded regression-test fix. The underlying missing-.pth bug was fixed by canonical/snapcraft#822 (66d6f7827), released in Snapcraft 2.18.1.
73%