← Back to issue list

snap build installing old pypi version of argparse

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#2028303
Type
issue
State
open
Author
~kenneth-loafman
Labels
—
Created
Updated
Closed
—

Current evaluation

An obsolete PyPI argparse can shadow distro argparse in core20 Python-extension builds; the report is untriaged, has a reporter-side workaround, and core20 is now an unsupported ESM base.

Suggested action: close stale

Reason: All three comments are from the reporter, with no maintainer assessment or confirmed root cause beyond an uninstall workaround. More decisively, current source classifies core20 in ESM_BASES and explicitly raises that the base is unsupported, directing users to Snapcraft 8.x; the affected build path is therefore retired from current Snapcraft.

Evaluated by: mr-cal-bot

Impact: 28 Quick Win: 6 Complexity: 50 Confidence: 92 Actionability: 42

Issue body

When building for core20 the python extension seems to be loading pypi modules not in requirements.txt. The snapcraft.yaml attached shows the fix (lines 57-60) for the old argparse in pypi being substituted for the newer argparse in the py38. Without the uninstall, argparse is included from pypi, and that version is way too old for us to use. This is suspicious because normally pip would not install anything not in requirements.txt, but in this case argparse from pypi is installed. Normal operation of pip install does not install extras. Do I need to look for more trouble spots? What else might be installed in error?

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 28
Quick Win: 6
Complexity: 50
Confidence: 92
Actionability: 42
close stale An obsolete PyPI argparse can shadow distro argparse in core20 Python-extension builds; the report is untriaged, has a reporter-side workaround, and core20 is now an unsupported ESM base.
stealth/space-bunny-alpha
Impact: 30
Quick Win: 7
Complexity: 55
Confidence: 92
Actionability: 50
close stale A core20 Python-extension build can shadow the distro argparse with an obsolete PyPI copy; the report lacks maintainer triage, and current Snapcraft rejects core20 as an ESM base.
stealth/space-bunny-alpha
Impact: 20
Quick Win: 3
Complexity: 55
Confidence: 92
Actionability: 38
close stale Core20 Python extension builds can stage an obsolete PyPI argparse not listed in requirements.txt. The cause remains untriaged, and core20 lifecycle support has been removed from current Snapcraft.
qwen3.6-35b-a3b-mtp-q6
Impact: 40
Quick Win: 28
Staleness: 85
Complexity: 30
Confidence: 70
Support Request: 60
needs triage Untriaged issue from 3 years ago about argparse being installed from pypi during core20 builds; no maintainer response or labels.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 40
Confidence: 85
Support Request: 20
close stale Snapcraft python extension installs outdated PyPI argparse instead of system version on core20. Unlabeled, no maintainer response, inactive for ~3 years.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 35
Confidence: 85
Support Request: 70
close stale Snapcraft core20 python extension installs outdated PyPI argparse instead of Python 3.8 built-in. Unlabeled, zero comments, inactive for over three years.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 40
Confidence: 75
Support Request: 65
needs triage Snapcraft core20 python extension installs outdated PyPI argparse instead of Python 3.8 built-in. Unlabeled, no maintainer response, inactive for ~3 years.

Update history

Date Change
created

Related issues

No related issues found above the similarity threshold.