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

EventHubError("module 'ssl' has no attribute 'wrap_socket'\nmodule 'ssl' has no attribute 'wrap_socket'") #5

Closed
zmoog opened this issue Nov 29, 2023 · 4 comments · Fixed by #6
Assignees
Labels
bug Something isn't working

Comments

@zmoog
Copy link
Owner

zmoog commented Nov 29, 2023

OS: macOS Sonoma
Python: 3.12.0

export EVENTHUB_CONNECTION_STRING=" ...."
export EVENTHUB_NAMESPACE="mbranca-general"
export EVENTHUB_NAME="allmetrics"

$ eh -v eventdata receive
Receiving events from allmetrics
EventProcessor instance '99f49990-4896-4c6d-b4af-868b82f9c6df' of eventhub 'allmetrics' consumer group '$Default'. An error occurred while load-balancing and claiming ownership. The exception is EventHubError("module 'ssl' has no attribute 'wrap_socket'\nmodule 'ssl' has no attribute 'wrap_socket'"). Retrying after 10.468700238909104 seconds
@zmoog zmoog self-assigned this Nov 29, 2023
@zmoog zmoog added the bug Something isn't working label Nov 29, 2023
@zmoog
Copy link
Owner Author

zmoog commented Nov 29, 2023

This error may be related to Python 3.12.

@zmoog
Copy link
Owner Author

zmoog commented Nov 29, 2023

Found similar errors in other packages, for example eventlet/eventlet#795

@zmoog
Copy link
Owner Author

zmoog commented Nov 29, 2023

I use azure-eventhub==5.11.1, let me check if there are new releases available

@zmoog
Copy link
Owner Author

zmoog commented Nov 29, 2023

I upgraded azure-eventhub==5.11.5 and the error is gone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant