Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 910668

Summary: net-misc/httpie-3.2.1-r1 throws ImportError with dev-python/urllib3-2.0.3, cannot find DEFAULT_CIPHERS
Product: Gentoo Linux Reporter: Stefan Schmiedl <s>
Component: Current packagesAssignee: Piotr Karbowski (RETIRED) <slashbeast>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
See Also: https://github.com/httpie/httpie/issues/1499
Whiteboard:
Package list:
Runtime testing required: ---

Description Stefan Schmiedl 2023-07-22 07:16:15 UTC
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
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-07-25 02:29:47 UTC
This was fixed upstream in 3.22, released 2 months ago in May.
Comment 2 Piotr Karbowski (RETIRED) gentoo-dev 2023-07-25 12:57:44 UTC
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.
Comment 3 Larry the Git Cow gentoo-dev 2023-08-09 18:14:27 UTC
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(-)