Pierre de LESPINAY
Pierre de LESPINAY

Reputation: 46178

Python oauth2 - no attribute 'HTTPSConnection'

Python beginner

>>> import oauth2

Traceback (most recent call last): File "", line 1, in
File "/usr/local/lib/python2.7/site-packages/oauth2/init.py", line 32, in import httplib2
File "/usr/local/lib/python2.7/site-packages/httplib2/init.py", line 801, in
class HTTPSConnectionWithTimeout(httplib.HTTPSConnection):
AttributeError: 'module' object has no attribute 'HTTPSConnection'

I don't understand the error
Why do I get that ?

Upvotes: 1

Views: 1545

Answers (1)

RanRag
RanRag

Reputation: 49557

It is mentioned on httplib official docs that HTTPS support is only available if the socket module was compiled with SSL support.

Upvotes: 2

Related Questions