Message117667
This has been reported before (#6494, #7987) and closed as "You need to build Python with SSL support." However, this error is raised even if ssl support is included.
The SSL check in xmlrpc.client for Python 3.1 is:
if not hasattr(socket, "ssl")
but ssl was removed from socket and into its own class for Py3k. So one workaround, provided ssl support is available:
import socket
if not hasattr(socket, 'ssl')
socket.ssl = None
import xmlrpc.client
at which point everything works fine.
The attached patch fixes the bug, checking for ssl support based on the existence of http.client.HTTPSConnection, which is similar to the check in Python 2.7. |
|
Date |
User |
Action |
Args |
2010-09-29 22:15:34 | jniehof | set | recipients:
+ jniehof |
2010-09-29 22:15:34 | jniehof | set | messageid: <1285798534.22.0.74771320533.issue9991@psf.upfronthosting.co.za> |
2010-09-29 22:15:32 | jniehof | link | issue9991 messages |
2010-09-29 22:15:32 | jniehof | create | |
|