You are not logged in.

#1 2023-05-15 12:12:40

dxxvi
Member
Registered: 2011-07-23
Posts: 122

[Close] httpie cannot import name DEFAULT_CIPHERS from urllib3.util.ss

Hi All, all the packages on my machine are updated. I installed httpie with python3 -m pip install httpie. However,

$ http --version
Traceback (most recent call last):
  File "/home/br/.local/bin/http", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/br/.local/lib/python3.11/site-packages/httpie/__main__.py", line 8, in main
    from httpie.core import main
  File "/home/br/.local/lib/python3.11/site-packages/httpie/core.py", line 15, in <module>
    from .client import collect_messages
  File "/home/br/.local/lib/python3.11/site-packages/httpie/client.py", line 22, in <module>
    from .ssl_ import AVAILABLE_SSL_VERSION_ARG_MAPPING, HTTPieCertificate, HTTPieHTTPSAdapter
  File "/home/br/.local/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_' (/home/br/.local/lib/python3.11/site-packages/urllib3/util/ssl_.py)

Does anybody know what the issue is?
Thanks.

Last edited by dxxvi (2023-05-15 15:06:44)

Offline

#2 2023-05-15 12:48:15

dxxvi
Member
Registered: 2011-07-23
Posts: 122

Re: [Close] httpie cannot import name DEFAULT_CIPHERS from urllib3.util.ss

Offline

#3 2023-05-15 12:49:41

ozwigh
Member
Registered: 2014-10-07
Posts: 36

Re: [Close] httpie cannot import name DEFAULT_CIPHERS from urllib3.util.ss

2.0.0 (2023-04-26)
...
Removed DEFAULT_CIPHERS, HAS_SNI, USE_DEFAULT_SSLCONTEXT_CIPHERS, from the private module urllib3.util.ssl_ (#2168).

Check https://urllib3.readthedocs.io/en/stable/changelog.html for more details,

Offline

#4 2023-05-15 12:51:00

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,142

Re: [Close] httpie cannot import name DEFAULT_CIPHERS from urllib3.util.ss

Why are you using pip to install httpie when it is present in  community repo ?
see https://archlinux.org/packages/community/any/httpie/


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB