Error installing Python packages fails with trace
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Confirmed
|
High
|
Sergio Schvezov |
Bug Description
When using the Python plugin and there's a problem installing a Python package, Snapcraft aborts with both a verbatim error message from pip as well as a long trace.
There's 3 ways to get this to happen which go through the same code path which is why I'm filing one bug for it:
- A package from index (PyPI) can't be installed.
- The URL to a VCS branch can't be cloned.
- An error occurs downloading via http(s) eg. HTTP 404.
parts:
foo:
plugin: python
python-
- <email address hidden>
- http://
See below for abbreviated traces going through "Pip.download":
Collecting pip
Could not find a version that satisfies the requirement pip (from versions: )
No matching distribution found for pip
Traceback (most recent call last):
[...]
File "/home/
self.
[...]
File "/usr/lib/
raise CalledProcessEr
Invalid requirement: '<email address hidden>
It looks like a path. Does it exist ?
Traceback (most recent call last):
[...]
File "/home/
self.
[...]
File "/usr/lib/
raise CalledProcessEr
Collecting http://
HTTP error 404 while getting http://
Could not install requirement http://
Could not install requirement http://
Traceback (most recent call last):
[...]
File "/home/
self.
[...]
File "/usr/lib/
raise CalledProcessEr
Changed in snapcraft: | |
status: | In Progress → Fix Committed |
https:/ /github. com/snapcore/ snapcraft/ pull/2004