httpie fails to run after updating urllib3 to version 2.0.3, downgrading urllib3 to 1.26.16 allows httpie to run. Reproducible: Always Steps to Reproduce: execute http, arguments do not matter Actual Results: $ http Traceback (most recent call last): File "/usr/lib/python-exec/python3.11/http", line 8, in <module> sys.exit(main()) ^^^^^^ File "/usr/lib/python3.11/site-packages/httpie/__main__.py", line 8, in main from httpie.core import main File "/usr/lib/python3.11/site-packages/httpie/core.py", line 15, in <module> from .client import collect_messages File "/usr/lib/python3.11/site-packages/httpie/client.py", line 22, in <module> from .ssl_ import AVAILABLE_SSL_VERSION_ARG_MAPPING, HTTPieCertificate, HTTPieHTTPSAdapter File "/usr/lib/python3.11/site-packages/httpie/ssl_.py", line 6, in <module> from urllib3.util.ssl_ import ( ImportError: cannot import name 'DEFAULT_CIPHERS' from 'urllib3.util.ssl_' (/usr/lib/python3.11/site-packages/urllib3/util/ssl_.py) Expected Results: $ http usage: http [METHOD] URL [REQUEST_ITEM ...] error: the following arguments are required: URL for more information: run 'http --help' or visit https://httpie.io/docs/cli
This was fixed upstream in 3.22, released 2 months ago in May.
This fix was backported by me in 2023-05-16 before the new release were made. The fix is present in 3.2.1-r2 but not in stabilized r1. It was supposed to be stabilized in bug 909792 but I did not realized the CC-ARCHES keyword was gone and it went under my radar. For now you can keyword net-misc/httpie-3.2.1-r2 until the bug 909792 is done.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e8ab8ede291ce58b76ec8cd0f18f1dc47916e82a commit e8ab8ede291ce58b76ec8cd0f18f1dc47916e82a Author: Piotr Karbowski <slashbeast@gentoo.org> AuthorDate: 2023-08-09 18:05:21 +0000 Commit: Piotr Karbowski <slashbeast@gentoo.org> CommitDate: 2023-08-09 18:14:22 +0000 net-misc/httpie: stabilize 3.2.1-r2. Includes the fix for ImportError on urllib. Closes: https://bugs.gentoo.org/909792 Closes: https://bugs.gentoo.org/910668 Signed-off-by: Piotr Karbowski <slashbeast@gentoo.org> net-misc/httpie/httpie-3.2.1-r2.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)