3

i have the following error

 File "C:\Python27\lib\site-packages\httplib2\__init__.py", line 101, in _ssl_wrap_socket
    "SSL certificate validation is not supported without "
CertificateValidationUnsupported: SSL certificate validation is not supported without the ssl module installed. To avoid this error, install the ssl module, or explicity disable validation.

i'm running python 2.7.8 32-bit on Windows 7 downloaded from python.org, so I tried pip install ssl and it says that it is built in. how to fix this? it is bombing on all scripts interacting with the web. why is it asking me to install something that is built in?

The only think i can think of is... I recently installed pydrive, but i uninstalled it and it makes no difference.

Furthermore, i can still import ssl.

jason
  • 3,811
  • 18
  • 92
  • 147

2 Answers2

0

my issues are gone after I download 2.7.13 (latest version) from python.org and installed it.

jason
  • 3,811
  • 18
  • 92
  • 147
  • What version of httplib2 are you using? Downgrading from 0.10.2 to 0.9.2 also seems to do the trick for me. I opened [an httplib2 issue](https://github.com/httplib2/httplib2/issues/47) about this. – Aryeh Leib Taurog Feb 06 '17 at 20:23
  • it's now 0.10.2 after i installed Python 2.7.13. I don't know what version it was prior to updating python. – jason Feb 06 '17 at 21:02
0

This is probably a bug in httplib2 which manifests itself on early versions of python 2.7 and which was fixed in httplib2 0.10.3. Upgrading to the latest Python is always a good idea, but upgrading httplib2 would be sufficient to resolve this issue.

Aryeh Leib Taurog
  • 5,370
  • 1
  • 42
  • 49