unknown url type: https – Error in Python – Here is How to Fix It

Another error message stemming from the same issue is:
...
File "C:\Python24\lib\xmlrpclib.py", line 1096, in __call__
return self.__send(self.__name, args)
File "C:\Python24\lib\xmlrpclib.py", line 1383, in __request
verbose=self.__verbose
File "C:\Python24\lib\xmlrpclib.py", line 1122, in request
h = self.make_connection(host)
File "C:\Python24\lib\xmlrpclib.py", line 1304, in make_connection
raise NotImplementedError(
NotImplementedError: your version of httplib doesn't support HTTPS

I seems that ActiveState’s Python distribution doesn’t include SSL support which is what was causing this error for me in Python 2.4 on Windows XP.

To fix it, I found a Windows XP computer with a regular Python 2.4 distribution (not ActiveState) installed.

Then I copied these two files from that computer into the same location on my computer:

C:\Python24\DLLs\_socket.pyd
C:\Python24\DLLs\_ssl.pyd

I got the idea from this discussion list.

Comments are closed.