Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Python 3.12 removed deprecated ssl.wrap_socket() #4

Closed
baruchsiach opened this issue Jul 28, 2024 · 1 comment · Fixed by #6
Closed

Python 3.12 removed deprecated ssl.wrap_socket() #4

baruchsiach opened this issue Jul 28, 2024 · 1 comment · Fixed by #6

Comments

@baruchsiach
Copy link

This causes run-time failure:

  File ".../email_auth/creds.py", line 114, in get_response_url
    server.socket = ssl.wrap_socket(
                    ^^^^^^^^^^^^^^^
AttributeError: module 'ssl' has no attribute 'wrap_socket'

Instead, create a ssl.SSLContext object and call its ssl.SSLContext.wrap_socket method. See for example:
vmware/pyvmomi#1057 .

@2e0byo
Copy link
Owner

2e0byo commented Sep 28, 2024

Thanks for the pointer!

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

Successfully merging a pull request may close this issue.

2 participants