Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

PyOpenSSLContext has no attribute get_ciphers #217

Open
Puxap-3opre opened this issue Jul 27, 2023 · 1 comment
Open

PyOpenSSLContext has no attribute get_ciphers #217

Puxap-3opre opened this issue Jul 27, 2023 · 1 comment

Comments

@Puxap-3opre
Copy link

Ubuntu 20.04, Python 3.8.10
Installed with pip install --user http-prompt
Added "~/.local/bin" to PATH as suggested by installer.
Rebooted.
Run: http-prompt
Crash with:

Traceback (most recent call last):
  File "/home/alex/.local/bin/http-prompt", line 5, in <module>
    from http_prompt.cli import cli
  File "/home/alex/.local/lib/python3.8/site-packages/http_prompt/cli.py", line 28, in <module>
    from .contextio import load_context, save_context
  File "/home/alex/.local/lib/python3.8/site-packages/http_prompt/contextio.py", line 8, in <module>
    from .execution import execute
  File "/home/alex/.local/lib/python3.8/site-packages/http_prompt/execution.py", line 13, in <module>
    from httpie.core import main as httpie_main
  File "/home/alex/.local/lib/python3.8/site-packages/httpie/core.py", line 15, in <module>
    from .client import collect_messages
  File "/home/alex/.local/lib/python3.8/site-packages/httpie/client.py", line 24, in <module>
    from .ssl_ import AVAILABLE_SSL_VERSION_ARG_MAPPING, HTTPieCertificate, HTTPieHTTPSAdapter
  File "/home/alex/.local/lib/python3.8/site-packages/httpie/ssl_.py", line 105, in <module>
    DEFAULT_SSL_CIPHERS_STRING = ':'.join(HTTPieHTTPSAdapter.get_default_ciphers_names())
  File "/home/alex/.local/lib/python3.8/site-packages/httpie/ssl_.py", line 85, in get_default_ciphers_names
    return [cipher['name'] for cipher in cls._create_ssl_context(verify=False).get_ciphers()]
AttributeError: 'PyOpenSSLContext' object has no attribute 'get_ciphers'

@Puxap-3opre
Copy link
Author

httpie gives the same error.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant