Public bug reported: The package in jammy cannot even successfully run the quickstart instructions: https://www.python-httpx.org/quickstart/ as evidenced in example output below.
httpx from pip works fine and thus the suspicion is that the problem is fixed in a later release which currently isn't migrating from -proposed because of build-dependency issues. https://launchpad.net/ubuntu/+source/httpx/0.21.1-1/+build/22469845 https://launchpad.net/ubuntu/+source/httpcore/0.14.3-1 https://launchpad.net/ubuntu/+source/python-click/8.0.3-1 ======================== example output ============================== $ ipython3 Python 3.9.10 (main, Jan 16 2022, 17:12:18) Type 'copyright', 'credits' or 'license' for more information IPython 7.31.0 -- An enhanced Interactive Python. Type '?' for help. In [1]: import httpx In [2]: r = httpx.get('https://httpbin.org/get') --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-2-78981b13b16e> in <module> ----> 1 r = httpx.get('https://httpbin.org/get') /usr/lib/python3/dist-packages/httpx/_api.py in get(url, params, headers, cookies, auth, proxies, allow_redirects, cert, verify, timeout, trust_env) 179 this function, as `GET` requests should not include a request body. 180 """ --> 181 return request( 182 "GET", 183 url, [...] /usr/lib/python3/dist-packages/httpx/_client.py in _send_single_request(self, request, timeout) 859 860 with map_exceptions(HTTPCORE_EXC_MAP, request=request): --> 861 (status_code, headers, stream, ext) = transport.request( 862 request.method.encode(), 863 request.url.raw, AttributeError: 'SyncConnectionPool' object has no attribute 'request' ====================================================================== ** Affects: httpx (Ubuntu) Importance: Undecided Status: New ** Description changed: The package in jammy cannot even successfully run the quickstart instructions: https://www.python-httpx.org/quickstart/ httpx from pip works fine and thus the suspicion is that the problem is fixed in a later release which currently isn't migrating from -proposed because of build-dependency issues. https://launchpad.net/ubuntu/+source/httpx/0.21.1-1/+build/22469845 https://launchpad.net/ubuntu/+source/httpcore/0.14.3-1 https://launchpad.net/ubuntu/+source/python-click/8.0.3-1 - - $ ipython3 - Python 3.9.10 (main, Jan 16 2022, 17:12:18) + ================== example output ============================= + $ ipython3 + Python 3.9.10 (main, Jan 16 2022, 17:12:18) Type 'copyright', 'credits' or 'license' for more information IPython 7.31.0 -- An enhanced Interactive Python. Type '?' for help. In [1]: import httpx In [2]: r = httpx.get('https://httpbin.org/get') --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-2-78981b13b16e> in <module> ----> 1 r = httpx.get('https://httpbin.org/get') /usr/lib/python3/dist-packages/httpx/_api.py in get(url, params, headers, cookies, auth, proxies, allow_redirects, cert, verify, timeout, trust_env) - 179 this function, as `GET` requests should not include a request body. - 180 """ + 179 this function, as `GET` requests should not include a request body. + 180 """ --> 181 return request( - 182 "GET", - 183 url, + 182 "GET", + 183 url, /usr/lib/python3/dist-packages/httpx/_api.py in request(method, url, params, content, data, files, json, headers, cookies, auth, proxies, timeout, allow_redirects, verify, cert, trust_env) - 91 proxies=proxies, cert=cert, verify=verify, timeout=timeout, trust_env=trust_env - 92 ) as client: + 91 proxies=proxies, cert=cert, verify=verify, timeout=timeout, trust_env=trust_env + 92 ) as client: ---> 93 return client.request( - 94 method=method, - 95 url=url, + 94 method=method, + 95 url=url, /usr/lib/python3/dist-packages/httpx/_client.py in request(self, method, url, content, data, files, json, params, headers, cookies, auth, allow_redirects, timeout) - 731 cookies=cookies, - 732 ) + 731 cookies=cookies, + 732 ) --> 733 return self.send( - 734 request, auth=auth, allow_redirects=allow_redirects, timeout=timeout - 735 ) + 734 request, auth=auth, allow_redirects=allow_redirects, timeout=timeout + 735 ) /usr/lib/python3/dist-packages/httpx/_client.py in send(self, request, stream, auth, allow_redirects, timeout) - 765 auth = self._build_request_auth(request, auth) - 766 + 765 auth = self._build_request_auth(request, auth) + 766 --> 767 response = self._send_handling_auth( - 768 request, - 769 auth=auth, + 768 request, + 769 auth=auth, /usr/lib/python3/dist-packages/httpx/_client.py in _send_handling_auth(self, request, auth, timeout, allow_redirects, history) - 803 - 804 while True: + 803 + 804 while True: --> 805 response = self._send_handling_redirects( - 806 request, - 807 timeout=timeout, + 806 request, + 807 timeout=timeout, /usr/lib/python3/dist-packages/httpx/_client.py in _send_handling_redirects(self, request, timeout, allow_redirects, history) - 835 ) - 836 + 835 ) + 836 --> 837 response = self._send_single_request(request, timeout) - 838 response.history = list(history) - 839 + 838 response.history = list(history) + 839 /usr/lib/python3/dist-packages/httpx/_client.py in _send_single_request(self, request, timeout) - 859 - 860 with map_exceptions(HTTPCORE_EXC_MAP, request=request): + 859 + 860 with map_exceptions(HTTPCORE_EXC_MAP, request=request): --> 861 (status_code, headers, stream, ext) = transport.request( - 862 request.method.encode(), - 863 request.url.raw, + 862 request.method.encode(), + 863 request.url.raw, AttributeError: 'SyncConnectionPool' object has no attribute 'request' + ====================================================================== ** Description changed: The package in jammy cannot even successfully run the quickstart - instructions: https://www.python-httpx.org/quickstart/ httpx from pip - works fine and thus the suspicion is that the problem is fixed in a - later release which currently isn't migrating from -proposed because of - build-dependency issues. + instructions: https://www.python-httpx.org/quickstart/ as evidenced in + example output below. + + httpx from pip works fine and thus the suspicion is that the problem is + fixed in a later release which currently isn't migrating from -proposed + because of build-dependency issues. https://launchpad.net/ubuntu/+source/httpx/0.21.1-1/+build/22469845 https://launchpad.net/ubuntu/+source/httpcore/0.14.3-1 https://launchpad.net/ubuntu/+source/python-click/8.0.3-1 ================== example output ============================= $ ipython3 Python 3.9.10 (main, Jan 16 2022, 17:12:18) Type 'copyright', 'credits' or 'license' for more information IPython 7.31.0 -- An enhanced Interactive Python. Type '?' for help. In [1]: import httpx In [2]: r = httpx.get('https://httpbin.org/get') --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-2-78981b13b16e> in <module> ----> 1 r = httpx.get('https://httpbin.org/get') /usr/lib/python3/dist-packages/httpx/_api.py in get(url, params, headers, cookies, auth, proxies, allow_redirects, cert, verify, timeout, trust_env) 179 this function, as `GET` requests should not include a request body. 180 """ --> 181 return request( 182 "GET", 183 url, /usr/lib/python3/dist-packages/httpx/_api.py in request(method, url, params, content, data, files, json, headers, cookies, auth, proxies, timeout, allow_redirects, verify, cert, trust_env) 91 proxies=proxies, cert=cert, verify=verify, timeout=timeout, trust_env=trust_env 92 ) as client: ---> 93 return client.request( 94 method=method, 95 url=url, /usr/lib/python3/dist-packages/httpx/_client.py in request(self, method, url, content, data, files, json, params, headers, cookies, auth, allow_redirects, timeout) 731 cookies=cookies, 732 ) --> 733 return self.send( 734 request, auth=auth, allow_redirects=allow_redirects, timeout=timeout 735 ) /usr/lib/python3/dist-packages/httpx/_client.py in send(self, request, stream, auth, allow_redirects, timeout) 765 auth = self._build_request_auth(request, auth) 766 --> 767 response = self._send_handling_auth( 768 request, 769 auth=auth, /usr/lib/python3/dist-packages/httpx/_client.py in _send_handling_auth(self, request, auth, timeout, allow_redirects, history) 803 804 while True: --> 805 response = self._send_handling_redirects( 806 request, 807 timeout=timeout, /usr/lib/python3/dist-packages/httpx/_client.py in _send_handling_redirects(self, request, timeout, allow_redirects, history) 835 ) 836 --> 837 response = self._send_single_request(request, timeout) 838 response.history = list(history) 839 /usr/lib/python3/dist-packages/httpx/_client.py in _send_single_request(self, request, timeout) 859 860 with map_exceptions(HTTPCORE_EXC_MAP, request=request): --> 861 (status_code, headers, stream, ext) = transport.request( 862 request.method.encode(), 863 request.url.raw, AttributeError: 'SyncConnectionPool' object has no attribute 'request' ====================================================================== ** Description changed: The package in jammy cannot even successfully run the quickstart instructions: https://www.python-httpx.org/quickstart/ as evidenced in example output below. httpx from pip works fine and thus the suspicion is that the problem is fixed in a later release which currently isn't migrating from -proposed because of build-dependency issues. https://launchpad.net/ubuntu/+source/httpx/0.21.1-1/+build/22469845 https://launchpad.net/ubuntu/+source/httpcore/0.14.3-1 https://launchpad.net/ubuntu/+source/python-click/8.0.3-1 ================== example output ============================= $ ipython3 Python 3.9.10 (main, Jan 16 2022, 17:12:18) Type 'copyright', 'credits' or 'license' for more information IPython 7.31.0 -- An enhanced Interactive Python. Type '?' for help. In [1]: import httpx In [2]: r = httpx.get('https://httpbin.org/get') --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-2-78981b13b16e> in <module> ----> 1 r = httpx.get('https://httpbin.org/get') /usr/lib/python3/dist-packages/httpx/_api.py in get(url, params, headers, cookies, auth, proxies, allow_redirects, cert, verify, timeout, trust_env) 179 this function, as `GET` requests should not include a request body. 180 """ --> 181 return request( 182 "GET", 183 url, - /usr/lib/python3/dist-packages/httpx/_api.py in request(method, url, params, content, data, files, json, headers, cookies, auth, proxies, timeout, allow_redirects, verify, cert, trust_env) - 91 proxies=proxies, cert=cert, verify=verify, timeout=timeout, trust_env=trust_env - 92 ) as client: - ---> 93 return client.request( - 94 method=method, - 95 url=url, - - /usr/lib/python3/dist-packages/httpx/_client.py in request(self, method, url, content, data, files, json, params, headers, cookies, auth, allow_redirects, timeout) - 731 cookies=cookies, - 732 ) - --> 733 return self.send( - 734 request, auth=auth, allow_redirects=allow_redirects, timeout=timeout - 735 ) - - /usr/lib/python3/dist-packages/httpx/_client.py in send(self, request, stream, auth, allow_redirects, timeout) - 765 auth = self._build_request_auth(request, auth) - 766 - --> 767 response = self._send_handling_auth( - 768 request, - 769 auth=auth, - - /usr/lib/python3/dist-packages/httpx/_client.py in _send_handling_auth(self, request, auth, timeout, allow_redirects, history) - 803 - 804 while True: - --> 805 response = self._send_handling_redirects( - 806 request, - 807 timeout=timeout, - - /usr/lib/python3/dist-packages/httpx/_client.py in _send_handling_redirects(self, request, timeout, allow_redirects, history) - 835 ) - 836 - --> 837 response = self._send_single_request(request, timeout) - 838 response.history = list(history) - 839 + [...] /usr/lib/python3/dist-packages/httpx/_client.py in _send_single_request(self, request, timeout) 859 860 with map_exceptions(HTTPCORE_EXC_MAP, request=request): --> 861 (status_code, headers, stream, ext) = transport.request( 862 request.method.encode(), 863 request.url.raw, AttributeError: 'SyncConnectionPool' object has no attribute 'request' ====================================================================== ** Description changed: The package in jammy cannot even successfully run the quickstart instructions: https://www.python-httpx.org/quickstart/ as evidenced in example output below. httpx from pip works fine and thus the suspicion is that the problem is fixed in a later release which currently isn't migrating from -proposed because of build-dependency issues. https://launchpad.net/ubuntu/+source/httpx/0.21.1-1/+build/22469845 https://launchpad.net/ubuntu/+source/httpcore/0.14.3-1 https://launchpad.net/ubuntu/+source/python-click/8.0.3-1 - ================== example output ============================= + ======================== example output ============================== $ ipython3 Python 3.9.10 (main, Jan 16 2022, 17:12:18) Type 'copyright', 'credits' or 'license' for more information IPython 7.31.0 -- An enhanced Interactive Python. Type '?' for help. In [1]: import httpx In [2]: r = httpx.get('https://httpbin.org/get') --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-2-78981b13b16e> in <module> ----> 1 r = httpx.get('https://httpbin.org/get') /usr/lib/python3/dist-packages/httpx/_api.py in get(url, params, headers, cookies, auth, proxies, allow_redirects, cert, verify, timeout, trust_env) 179 this function, as `GET` requests should not include a request body. 180 """ --> 181 return request( 182 "GET", 183 url, [...] /usr/lib/python3/dist-packages/httpx/_client.py in _send_single_request(self, request, timeout) 859 860 with map_exceptions(HTTPCORE_EXC_MAP, request=request): --> 861 (status_code, headers, stream, ext) = transport.request( 862 request.method.encode(), 863 request.url.raw, AttributeError: 'SyncConnectionPool' object has no attribute 'request' ====================================================================== -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1961340 Title: httpx in jammy is broken To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/httpx/+bug/1961340/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs