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

Updating build step for python-deps ('pull' step changed)
Looking in links: /home/ubuntu/inkscape/parts/python-deps/python-packages
Collecting lxml
  Saved /tmp/tmp62s_fnyd/lxml-4.2.5-cp27-cp27mu-manylinux1_x86_64.whl
Collecting numpy
  Saved /tmp/tmp62s_fnyd/numpy-1.15.4-cp27-cp27mu-manylinux1_x86_64.whl
Collecting scour
  Saved /tmp/tmp62s_fnyd/scour-0.37-py2-none-any.whl
Collecting six>=1.9.0 (from scour)
  Saved /tmp/tmp62s_fnyd/six-1.12.0-py2.py3-none-any.whl
Skipping lxml, due to already being wheel.
Skipping numpy, due to already being wheel.
Skipping scour, due to already being wheel.
Skipping six, due to already being wheel.
ERROR: You must give at least one requirement to install (maybe you meant "pip install /home/ubuntu/inkscape/parts/python-deps/python-packages"?)
Failed to run '/home/ubuntu/inkscape/stage/usr/bin/python2 -m pip install --user --no-compile --no-index --find-links /home/ubuntu/inkscape/parts/python-deps/python-packages --upgrade --no-deps': Exited with code 1.

Encountered this kind of error several times with snaps that use python plugin :-/

Re-build after cleaning the parts’ pull step works, but it’s annoying.

1 Like

I encountered the same problem when trying to build Lutris. It’s pretty inconvenient. I think someone said to separate out the part with the python install requires from the part that needs to be rebuilt, but it’s not a great workaround.

Corresponding source code:

Can anyone that speaks Python look into it?

I’ve just filed a bug for this: https://bugs.launchpad.net/snapcraft/+bug/1821467

1 Like

Already filed and (supposedly) fixed: Bug #1794216 “python plugin parts errors with “ERROR: You must g…” : Bugs : Snapcraft