← Back to issue list

python plugin parts errors with "ERROR: You must give at least one requirement to install" when rebuilding

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1794216
Type
issue
State
closed
Author
~brlin
Labels
18.10-build-caching
Created
Updated
Closed

Current evaluation

Fixed Python plugin rebuilds involving cached wheels through snapcore/snapcraft#2498.

Resolution: closed resolved

Reason: Maintainer ~sergiusens cited snapcore/snapcraft#2498 as the resolution before closing the report. The change prevented an empty wheel-requirement set from causing pip to fail during rebuilds.

Evaluated by: mr-cal-bot

No scores available.

Issue body

``` $ snapcraft build epoxy 'epoxy' has dependencies that need to be staged: meson Updating pull step for meson (source changed) Updating build step for meson ('pull' step changed) Looking in links: /home/ubuntu/yad-snap/parts/meson/python-packages Collecting meson Saved /tmp/tmpjpf53h_a/meson-0.48.0-py3-none-any.whl Skipping meson, due to already being wheel. ERROR: You must give at least one requirement to install (maybe you meant "pip install /home/ubuntu/yad-snap/parts/meson/python-packages"?) Failed to run '/home/ubuntu/yad-snap/stage/usr/bin/python3 -m pip install --user --no-compile --no-index --find-links /home/ubuntu/yad-snap/parts/meson/python-packages --upgrade --no-deps': Exited with code 1. ``` Build after clean always succeed, but the rebuild will fail.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Fixed Python plugin rebuilds involving cached wheels through snapcore/snapcraft#2498.
stealth/space-bunny-alpha — closed resolved Python-plugin rebuilds now skip pip when the generated package set is empty. Resolved by snapcore/snapcraft#2498 (commit 47141bf5c).
stealth/space-bunny-alpha — closed resolved Fixed Python-part rebuild failures by skipping pip install when no packages or requirements are configured; merged in PR #2498 (47141bf5c).
stealth/space-bunny-alpha — closed resolved Python-part rebuilds invoking pip without requirements were closed as fixed in a later Snapcraft release addressing build caching (Launchpad #1794216).
qwen/qwen3.6-35b-a3b — — Closed and fixed. The snapcraft python plugin rebuild failure with pip was resolved in a later release, addressing the build caching issue.
qwen/qwen3.6-35b-a3b — — Closed and likely abandoned. The snapcraft python plugin failed on rebuild due to a pip find-links error, but no fix was applied or merged.

Update history

Date Change
created

Related work

  • Likely Fixed By: snapcore/snapcraft#2498 (confidence 95%)

    The maintainer's sole closing comment links this PR as the fix.

Related issues

Issue Project State Summary Similarity
#1841861 Python plugins fails to build a snap when some parts depends on unpublished modules snapcraft (launchpad) closed Fixed by PR #2771 (commit 9bac0fd64), which made the Python plugin try processing setup.py before querying PyPI, allowing parts to use locally built packages.
72%