Explanation
when downloading ngrok.exe an error appears.
before the error appeared, my antivirus complained about lying next to main.py, ngrok.exe
Environment
OS: windows 10 64bit
Python Version: 3.7.9 32bit
pyngrok Version: 5.1.0
Error
Traceback (most recent call last):
File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\urllib\request.py", line 1350, in do_open
encode_chunked=req.has_header('Transfer-encoding'))
File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\http\client.py", line 1277, in request
self._send_request(method, url, body, headers, encode_chunked)
File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\http\client.py", line 1323, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\http\client.py", line 1272, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\http\client.py", line 1032, in _send_output
self.send(msg)
File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\http\client.py", line 972, in send
self.connect()
File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\http\client.py", line 1447, in connect
server_hostname=server_hostname)
File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\ssl.py", line 423, in wrap_socket
session=session
File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\ssl.py", line 870, in _create
self.do_handshake()
File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\ssl.py", line 1139, in do_handshake
self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1091)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pyngrok\installer.py", line 94, in install_ngrok
download_path = _download_file(url, **kwargs)
File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pyngrok\installer.py", line 215, in _download_file
response = urlopen(url, **kwargs)
File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\urllib\request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\urllib\request.py", line 525, in open
response = self._open(req, data)
File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\urllib\request.py", line 543, in _open
'_open', req)
File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\urllib\request.py", line 503, in _call_chain
result = func(*args)
File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\urllib\request.py", line 1393, in https_open
context=self._context, check_hostname=self._check_hostname)
File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\urllib\request.py", line 1352, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1091)>
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\source\python\other\paintTogether\server.py", line 42, in <module>
s = server(lambda x: print(x))
File "D:\source\python\other\paintTogether\server.py", line 14, in __init__
ngrok.set_auth_token(token)
File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pyngrok\ngrok.py", line 133, in set_auth_token
install_ngrok(pyngrok_config)
File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pyngrok\ngrok.py", line 98, in install_ngrok
installer.install_ngrok(pyngrok_config.ngrok_path)
File "C:\Users\User\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pyngrok\installer.py", line 98, in install_ngrok
raise PyngrokNgrokInstallError("An error occurred while downloading ngrok from {}: {}".format(url, e))
pyngrok.exception.PyngrokNgrokInstallError: An error occurred while downloading ngrok from https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-windows-386.zip: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1091)>
Explanation when downloading
ngrok.exe
an error appears. before the error appeared, my antivirus complained about lying next tomain.py
,ngrok.exe
Environment
pyngrok
Version: 5.1.0Error