shazow/urllib3 — Issue #41: urllib3 does not install if Python has no SSL support
Author: pudquick
Created: 2012-01-24 17:59:35+00:00
State: open

*( Moved over from requests: https://github.com/kennethreitz/requests/issues/306 )*

On attempting to import urllib3 in a python environment without SSL support, the following error is received:

File "urllib3/connectionpool.py", line 11, in
from httplib import HTTPConnection, HTTPSConnection, HTTPException
ImportError: cannot import name HTTPSConnection

For comparison / reference, urllib2 does import on the same system. Attempting to retrieve a HTTPS url via urllib2.urlopen(...) results in this error:

urllib2.URLError:

Standard HTTP requests, however, using urllib2 work fine in this python environment. Perhaps urllib3 should error out in a similar fashion.