[Python-modules-team] Bug#964117: Bug#964117: python3-pip: pip fails to list all outdated packages

Vipul finn02+debian at disroot.org
Thu Jul 2 13:45:05 BST 2020


> This was already fixed under bug #912379 in Testing/Unstable.

Sorry, for not checking Testing's closed bugs list, also. I've applied
same patch as commit 0eebde34[1] in
"/usr/lib/python3/dist-packages/pip/_internal/commands/list.py" file;
but now I'm getting another error message:

$ pip3 list --outdated
Exception:
Traceback (most recent call last):
  File
"/usr/lib/python3/dist-packages/pip/_internal/cli/base_command.py", line
143, in main
    status = self.run(options, args)
  File "/usr/lib/python3/dist-packages/pip/_internal/commands/list.py",
line 140, in run
    packages = self.get_outdated(packages, options)
  File "/usr/lib/python3/dist-packages/pip/_internal/commands/list.py",
line 151, in get_outdated
    dist for dist in self.iter_packages_latest_infos(packages, options)
  File "/usr/lib/python3/dist-packages/pip/_internal/commands/list.py",
line 151, in <listcomp>
    dist for dist in self.iter_packages_latest_infos(packages, options)
  File "/usr/lib/python3/dist-packages/pip/_internal/commands/list.py",
line 186, in iter_packages_latest_infos
    all_candidates = finder.find_all_candidates(dist.key)
  File "/usr/lib/python3/dist-packages/pip/_internal/index.py", line
530, in find_all_candidates
    for page in self._get_pages(url_locations, project_name):
  File "/usr/lib/python3/dist-packages/pip/_internal/index.py", line
675, in _get_pages
    page = self._get_page(location)
  File "/usr/lib/python3/dist-packages/pip/_internal/index.py", line
793, in _get_page
    return _get_html_page(link, session=self.session)
  File "/usr/lib/python3/dist-packages/pip/_internal/index.py", line
147, in _get_html_page
    resp.raise_for_status()
  File
"/usr/share/python-wheels/requests-2.21.0-py2.py3-none-any.whl/requests/models.py",
line 940, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url:
https://pypi.org/simple/unattended-upgrades/


[1]:
https://salsa.debian.org/python-team/modules/python-pip/-/commit/0eebde345dcaee1f9747d1c3e001d04211aa7619

Any idea how can I fix above error? And do you any plan to release an
update which will fix this problem in Stable (aka Buster)?



More information about the Python-modules-team mailing list