Comment 8 for bug 1833160

Revision history for this message
Ryan Liang (ryan-liang) wrote :

This issue occurs when below conditions meet together:
1. Python version is 3.7.3.
2. Using python/urllib (via six.moves.urllib or other ways).
3. Using https connection where ssl is involved.
4. Patching via eventlet.

The reason is that ssl.wrap_socket function prototype changes from python3.7.3, `_context` is not a parameter anymore. Check source codes /usr/local/lib/python3.7/ssl.py for detail.
However, eventlet doesn't change the prototype accordingly.

So, you'll see the error `TypeError: wrap_socket() got an unexpected keyword argument '_context'` above when eventlet does the patch.