HTTPError not being caught when module cannot be found
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-pip (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
I am running Ubuntu 16.04, with the python3-pip package installed, version 8.1.1-2.
We have a local PyPI server setup to serve python modules not available on the official PyPI server. I've added the local server using the extra-index-url option to my pip.conf file. Everything works as expected when I try to install one of the modules from the local PyPI server. However, when I try to install a module only available on the official PyPI server, say jsonschema, I get the following error:
Collecting jsonschema
Exception:
Traceback (most recent call last):
File "/usr/lib/
status = self.run(options, args)
File "/usr/lib/
wb.
File "/usr/lib/
self.
File "/usr/lib/
ignore_
File "/usr/lib/
finder, self.upgrade, require_hashes)
File "/usr/lib/
self.link = finder.
File "/usr/lib/
all_candidates = self.find_
File "/usr/lib/
for page in self._get_
File "/usr/lib/
page = self._get_
File "/usr/lib/
return HTMLPage.
File "/usr/lib/
resp.
File "/usr/share/
raise HTTPError(
pip._vendor.
The problem is that when the requests module raises HTTPError, it's being seen by pip as pip._vendor.
This error does not occur when pip is installed using the https:/
Status changed to 'Confirmed' because the bug affects multiple users.