1

I am unable to use the requests library to run the following command:

import requests
requests.request("GET", "https://www.google.com/")

This is the error message I'm getting:

Error: [('system library', 'fopen', 'No such file or directory'), ('BIO routines', 'BIO_new_file', 'no such file'), ('x509 certificate routines', 'X509_load_cert_crl_file', 'system lib')]

I'm running MacOS Sierra V 10.12.4 and using Python 3.

My openssl version is: OpenSSL 1.0.2k 26 Jan 2017

Any thoughts?

Ravi
  • 30,829
  • 42
  • 119
  • 173
trystuff
  • 686
  • 1
  • 8
  • 18

1 Answers1

0

Yes, this answer helped me.

Installing the certifi module did the trick.

urllib and "SSL: CERTIFICATE_VERIFY_FAILED" Error

trystuff
  • 686
  • 1
  • 8
  • 18