-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Problem with certificate ... #1015
Comments
Windows 10, Python 3.10.x, Python 3.8.x |
This helps but it is wrong. Next problem is lack of ffmpeg.
You should report where is problem with url or with lack of tool. For others is unbreakable limitation. |
@vadimdddd check presence of ffmpeg |
It is not ffmpeg but URL. |
There is also problem with ffmpeg - it is different story - same unclear message. I added path to ffmpeg for second problem but it not solve problem with certificate since URL is not releted to ffmpeg but model. You can have problem with certificate in chain - not with site certificate. |
Our certificate is ok, its most likely python certificates need update due to letsencrypt root certificate isse. Check from the browser, it is fine. You can also check https://letsencrypt.org/docs/dst-root-ca-x3-expiration-september-2021/ |
I will check if it helps. I found that your certificate is good so it can be certificate chain problem. |
I'm also facing the same problem! Am I missing something? Is there a way to fix it? Edit: Not a pressing problem as one can manually download the model, extract it and drop it in /.cache/vosk, but it'll be nice for the auto-downloading to work |
@Nicholas-Ho could you please click on the lock near website address and show the certificate information? https://superuser.com/questions/1160502/how-to-view-ssl-certificate-details-on-chrome |
How to fix: |
Lets track it in #1137 |
D:\video\professional programming\011 Jak zostać programistą\render> vosk-transcriber -i "011 - Jak zostać programistą.ac3" -l pl
vosk-model-small-pl-0.22.zip: 0.00B [00:00, ?B/s]
Traceback (most recent call last):
File "C:\root\Python\Python310\lib\urllib\request.py", line 1348, in do_open
h.request(req.get_method(), req.selector, req.data, headers,
File "C:\root\Python\Python310\lib\http\client.py", line 1282, in request
self._send_request(method, url, body, headers, encode_chunked)
File "C:\root\Python\Python310\lib\http\client.py", line 1328, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "C:\root\Python\Python310\lib\http\client.py", line 1277, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "C:\root\Python\Python310\lib\http\client.py", line 1037, in _send_output
self.send(msg)
File "C:\root\Python\Python310\lib\http\client.py", line 975, in send
self.connect()
File "C:\root\Python\Python310\lib\http\client.py", line 1454, in connect
self.sock = self._context.wrap_socket(self.sock,
File "C:\root\Python\Python310\lib\ssl.py", line 513, in wrap_socket
return self.sslsocket_class._create(
File "C:\root\Python\Python310\lib\ssl.py", line 1071, in _create
self.do_handshake()
File "C:\root\Python\Python310\lib\ssl.py", line 1342, in do_handshake
self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:997)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\root\Python\Python310\lib\runpy.py", line 196, in run_module_as_main
return run_code(code, main_globals, None,
File "C:\root\Python\Python310\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "C:\root\Python\Python310\Scripts\vosk-transcriber.exe_main.py", line 7, in
File "C:\root\Python\Python310\lib\site-packages\vosk\transcriber\cli.py", line 62, in main
transcriber = Transcriber(args)
File "C:\root\Python\Python310\lib\site-packages\vosk\transcriber\transcriber.py", line 16, in init
self.model = Model(model_path=args.model, model_name=args.model_name, lang=args.lang)
File "C:\root\Python\Python310\lib\site-packages\vosk_init.py", line 50, in init
model_path = self.get_model_path(model_name, lang)
File "C:\root\Python\Python310\lib\site-packages\vosk_init.py", line 63, in get_model_path
model_path = self.get_model_by_lang(lang)
File "C:\root\Python\Python310\lib\site-packages\vosk_init_.py", line 97, in get_model_by_lang
self.download_model(Path(directory, result_model[0]))
File "C:\root\Python\Python310\lib\site-packages\vosk_init_.py", line 106, in download_model
urlretrieve(MODEL_PRE_URL + str(model_name.name) + '.zip', str(model_name) + '.zip',
File "C:\root\Python\Python310\lib\urllib\request.py", line 241, in urlretrieve
with contextlib.closing(urlopen(url, data)) as fp:
File "C:\root\Python\Python310\lib\urllib\request.py", line 216, in urlopen
return opener.open(url, data, timeout)
File "C:\root\Python\Python310\lib\urllib\request.py", line 519, in open
response = self._open(req, data)
File "C:\root\Python\Python310\lib\urllib\request.py", line 536, in _open
result = self._call_chain(self.handle_open, protocol, protocol +
File "C:\root\Python\Python310\lib\urllib\request.py", line 496, in _call_chain
result = func(*args)
File "C:\root\Python\Python310\lib\urllib\request.py", line 1391, in https_open
return self.do_open(http.client.HTTPSConnection, req,
File "C:\root\Python\Python310\lib\urllib\request.py", line 1351, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (ssl.c:997)>
Exception ignored in: <function Model.del at 0x00000204A350F2E0>
Traceback (most recent call last):
File "C:\root\Python\Python310\lib\site-packages\vosk_init.py", line 56, in del
_c.vosk_model_free(self._handle)
AttributeError: 'Model' object has no attribute '_handle'
The text was updated successfully, but these errors were encountered: