| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| Snapcraft | Confirmed | High | Sergio Schvezov | ||
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
Collectinghttp://
HTTP error 404 while gettinghttp://
Could not install requirementhttp://
Could not install requirementhttp://
Traceback (most recent call last):
[...]
File "/home/
self.
[...]
File "/usr/lib/
raise CalledProcessEr

| Sergio Schvezov (sergiusens) wrote: | #1 |
| Changed in snapcraft: | |
| importance: | Undecided → High |
| status: | New → In Progress |
| assignee: | nobody → Sergio Schvezov (sergiusens) |
| Changed in snapcraft: | |
| status: | In Progress → Fix Committed |

| Cris Dywan (kalikiana) wrote: | #2 |
This isn't fixed unfortunately because the internal _pip module uses snapcraft.
| Changed in snapcraft: | |
| status: | Fix Committed → Confirmed |
Bug watches keep track of this bug in other bug trackers.