← Back to issue list

python2 plugin expects pip to be called pip2

View original Launchpad issue

Metadata

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

Current evaluation

Fixed the Python 2 plugin's incorrect pip2 invocation in snapcraft PR #771 (commit bb7bd40e1); the fix was released in Snapcraft 2.17.

Resolution: closed resolved

Reason: PR #771 updated the Python plugins and added regression coverage; commit bb7bd40e1 was merged. The reporter confirmed the fix, and maintainers noted it shipped in version 2.17.

Evaluated by: mr-cal-bot

No scores available.

Issue body

When running snapcraft on xenial using "plugin: python2" in my snapcraft.yaml, I get the following error: python2: can't open file '/path/to/working/directory/parts/script/install/usr/bin/pip2': [Errno 2] No such file or directory Command '['/bin/sh', '/tmp/tmppwo5dmh2', 'python2', '/path/to/working/directory/parts/script/install/usr/bin/pip2', 'install', '--global-option=build_ext', '--global-option=-I/path/to/working/directory/parts/script/install/usr/include/python2.7', '--target', '/path/to/working/directory/parts/script/install/usr/lib/python2.7/site-packages', '.']' returned non-zero exit status 2 It works, however, if I then copy pip and make give it the name "pip2": cp parts/script/install/usr/bin/pip parts/script/install/usr/bin/pip2 I imagine therefore, that it simply expects pip to be called pip2

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Fixed the Python 2 plugin's incorrect pip2 invocation in snapcraft PR #771 (commit bb7bd40e1); the fix was released in Snapcraft 2.17.
stealth/space-bunny-alpha — closed resolved python2 plugin called `pip2`, which doesn't exist in the part install dir. Fixed by merged PR snapcraft/snapcraft#771 (commit bb7bd40e1); reporter confirmed and the fix shipped in snapcraft 2.17.
stealth/space-bunny-alpha — closed stale Closed without a fix after prolonged inactivity, with no comments, resolving PR, or commit recorded.
qwen/qwen3.6-35b-a3b — — The python2 plugin fails when pip is not named pip2. The report was abandoned and closed without resolution or fix, due to zero comments and inactivity.
qwen/qwen3.6-35b-a3b — — Closed without resolution. The python2 plugin failed when pip was not named pip2. No fix, merge, or resolution details were documented.

Update history

Date Change
created

Related work

  • Likely Fixed By: snapcore/snapcraft#771 (confidence 100%)

    Merged as commit bb7bd40e1 with Python plugin improvements and regression coverage.

Related issues

Issue Project State Summary Similarity
#1598396 python2 plugin: no 'build' directory found by setup.py under distribution root snapcraft (launchpad) closed Fixed in Snapcraft 2.17 by Python plugin improvements merged in PR #771 (commit bb7bd40e).
74%
#1734213 Python scripts named pip* filtered out of snaps snapcraft (launchpad) closed Fixed the Python plugin's overbroad -bin/pip* filter in snapcraft#1763 (commit a1fb1aeac), allowing pip2pi console scripts to reach the stage.
74%
#1621540 do not compile with pip snapcraft (launchpad) closed Fixed in snapcore/snapcraft#779 (commit b9e1aabf6): the Python plugin now skips pip compilation of .pyc files, which were removed later anyway.
71%