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

2020-07-02 Thread Vipul
> Any idea how can I fix above error?

After looking for it on the Internet, I found this[1] bug report on
Launchpad issue tracker. It happens because pip didn't catch exceptions
in index.py, consistently (see spitfire1900's[2] comment) and has fixed
in pip v19.1+[3].

[1]: https://bugs.launchpad.net/ubuntu/+source/python-pip/+bug/1835686
[2]:
https://bugs.launchpad.net/ubuntu/+source/python-pip/+bug/1835686/comments/3
[3]: https://github.com/pypa/pip/issues/6428#issuecomment-501826842



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

2020-07-02 Thread Vipul
> 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 
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)?