Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 910668 - net-misc/httpie-3.2.1-r1 throws ImportError with dev-python/urllib3-2.0.3, cannot find DEFAULT_CIPHERS
Summary: net-misc/httpie-3.2.1-r1 throws ImportError with dev-python/urllib3-2.0.3, ca...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Piotr Karbowski (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-07-22 07:16 UTC by Stefan Schmiedl
Modified: 2023-08-09 18:14 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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(-)