SSL Certificate Verification Failure in WolframAlpha Python

138 views Asked by At

So I'm currently trying to make a search engine that compiles data from multiple different databases and search engines, and everything has worked up until I tried to add the WolframAlpha API. When I try to run the WolframAlpha section of the code, it gives me about 20million lines of errors, but the most prominent ones seem to be:

urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1108)>

and

File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1108)

The relevant code is the standard script for WolframAlpha Python queries:

import wolframalpha
def wolframSearch():
    client = wolframalpha.Client('wolfram-apikey')
    query = input("Please Input Wolfram Query: ")
    res = client.query(query)
    output = next(res.results).text
    print(output)

wolframSearch()

I'm currently using Python version 3.8 and I've already checked that the versions of all of the relevant modules and software

0

There are 0 answers