<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Package: python-pip<div>Version: 9.0.1-2+deb9u1</div><div><br></div><div>When attempting to pip install using --find-links with a directory of wheel files, this version of pip exits immediately if the python package cannot be found in the online PyPi repository.  The correct behavior is to query the online PyPi repository, in addition to traversing the directory passed into --find-links which is the typical behavior of pip <a href="https://pip.pypa.io/en/stable/reference/pip_wheel/#cmdoption-f">https://pip.pypa.io/en/stable/reference/pip_wheel/#cmdoption-f</a>.  In the below example /usr/local/gridspace/gspypi contained the wheel file for gsserializerfields.</div><div><br></div><div><div>root@bb4aecb5d6a2:/# pip install --find-links /usr/local/gridspace/gspypi -r /etc/requirements/base/internal-requirements.txt</div><div>Collecting fasttrack (from -r /etc/requirements/base/internal-requirements.txt (line 4))</div><div>Collecting gsserializerfields (from -r /etc/requirements/base/internal-requirements.txt (line 5))</div><div>Exception:</div><div>Traceback (most recent call last):</div><div>  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 215, in main</div><div>    status = self.run(options, args)</div><div>  File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 353, in run</div><div>    wb.build(autobuilding=True)</div><div>  File "/usr/lib/python2.7/dist-packages/pip/wheel.py", line 749, in build</div><div>    self.requirement_set.prepare_files(self.finder)</div><div>  File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 380, in prepare_files</div><div>    ignore_dependencies=self.ignore_dependencies))</div><div>  File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 554, in _prepare_file</div><div>    require_hashes</div><div>  File "/usr/lib/python2.7/dist-packages/pip/req/req_install.py", line 278, in populate_link</div><div>    self.link = finder.find_requirement(self, upgrade)</div><div>  File "/usr/lib/python2.7/dist-packages/pip/index.py", line 465, in find_requirement</div><div>    all_candidates = self.find_all_candidates(<a href="http://req.name">req.name</a>)</div><div>  File "/usr/lib/python2.7/dist-packages/pip/index.py", line 423, in find_all_candidates</div><div>    for page in self._get_pages(url_locations, project_name):</div><div>  File "/usr/lib/python2.7/dist-packages/pip/index.py", line 568, in _get_pages</div><div>    page = self._get_page(location)</div><div>  File "/usr/lib/python2.7/dist-packages/pip/index.py", line 683, in _get_page</div><div>    return HTMLPage.get_page(link, session=self.session)</div><div>  File "/usr/lib/python2.7/dist-packages/pip/index.py", line 795, in get_page</div><div>    resp.raise_for_status()</div><div>  File "/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/models.py", line 893, in raise_for_status</div><div>    raise HTTPError(http_error_msg, response=self)</div><div>HTTPError: 404 Client Error: Not Found for url: <a href="https://pypi.org/simple/gsserializerfields/">https://pypi.org/simple/gsserializerfields/</a></div></div><div><br></div><div>When I removed the python-pip package manually, and reinstalled a later version of pip, the behavior was corrected.  Additionally, older distributions which had the 9.0.1-2 version of python-pip appear to exhibit the correct behavior as well.</div><div><br></div><div>I am using Debian 9. </div><div>Linux bb4aecb5d6a2 4.9.125-linuxkit #1 SMP Fri Sep 7 08:20:28 UTC 2018 x86_64 GNU/Linux<br></div><div><br></div><div><br></div>





</div></div></div></div>