This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jniehof
Recipients jniehof
Date 2010-09-29.22:15:32
SpamBayes Score 1.9446368e-08
Marked as misclassified No
Message-id <1285798534.22.0.74771320533.issue9991@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2010-09-29 22:15:34jniehofsetrecipients: + jniehof
2010-09-29 22:15:34jniehofsetmessageid: <1285798534.22.0.74771320533.issue9991@psf.upfronthosting.co.za>
2010-09-29 22:15:32jniehoflinkissue9991 messages
2010-09-29 22:15:32jniehofcreate