Hi Michalik, (2021.09.11_01:54:07_-0700) > The try..except ladder in _get_html_page() uses > > <class 'pip._vendor.requests.exceptions.HTTPError'> > > while the exception raised by requests is > > <class 'requests.exceptions.HTTPError'> > > and so pip does not recognize the two as equal.
They *should* be the same, the pip._vendor mechanism should have put the requests whl on sys.path and aliased it through the pip._vendor tree: This test is not attempting to duplicate the virtualenv bootstrap environment, so it's possible that I'm missing something, but: $ python3 Python 3.7.3 (default, Jan 22 2021, 20:04:44) [GCC 8.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import pip._vendor.requests.exceptions >>> import requests.exceptions >>> pip._vendor.requests.exceptions is requests.exceptions True >>> pip._vendor.requests.exceptions.HTTPError is requests.exceptions.HTTPError True >>> requests.__path__ ['/usr/share/python-wheels/requests-2.21.0-py2.py3-none-any.whl/requests'] SR -- Stefano Rivera http://tumbleweed.org.za/ +1 415 683 3272