-
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
Executing "python test_simple.py test.wav" reports an SSL error #1445
Comments
Some old Windows installations might have problems with certificates. Please download the model manually and specify model_path instead of model_name |
nshmyrev
changed the title
Executing "python test_simple.py test.wav" reports an error
Executing "python test_simple.py test.wav" reports an SSL error
Oct 4, 2023
Similar to #1015 |
Thank you for your answer, it helped me solve the problem. |
Ok, let us know how it goes |
After I installed ffmpeg according to your answer, I can run the python example normally. |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Error message:
`PS D:\vosk\vosk-api-master\python\example> python test_simple.py test.wav
urllib3.exceptions.SSLError: EOF occurred in violation of protocol (_ssl.c:1123)
The above exception was the direct cause of the following exception:
urllib3.exceptions.ProxyError: ('Unable to connect to proxy', SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1123)')))
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\luo\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\adapters.py", line 486, in send
resp = conn.urlopen(
File "C:\Users\luo\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\connectionpool.py", line 844, in urlopen
retries = retries.increment(
File "C:\Users\luo\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\util\retry.py", line 515, in increment
raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='alphacephei.com', port=443): Max retries exceeded with url: /vosk/models/model-list.json (Caused by ProxyError('Unable to connect to proxy', SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1123)'))))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\vosk\vosk-api-master\python\example\test_simple.py", line 16, in
model = Model(lang="en-us")
File "C:\Users\luo\AppData\Local\Programs\Python\Python39\lib\site-packages\vosk_init_.py", line 54, in init
model_path = self.get_model_path(model_name, lang)
File "C:\Users\luo\AppData\Local\Programs\Python\Python39\lib\site-packages\vosk_init_.py", line 67, in get_model_path
model_path = self.get_model_by_lang(lang)
File "C:\Users\luo\AppData\Local\Programs\Python\Python39\lib\site-packages\vosk_init_.py", line 98, in get_model_by_lang
response = requests.get(MODEL_LIST_URL, timeout=10)
File "C:\Users\luo\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\api.py", line 73, in get
return request("get", url, params=params, **kwargs)
File "C:\Users\luo\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "C:\Users\luo\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
File "C:\Users\luo\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
File "C:\Users\luo\AppData\Local\Programs\Python\Python39\lib\site-packages\requests\adapters.py", line 513, in send
raise ProxyError(e, request=request)
requests.exceptions.ProxyError: HTTPSConnectionPool(host='alphacephei.com', port=443): Max retries exceeded with url: /vosk/models/model-list.json (Caused by ProxyError('Unable to connect to proxy', SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (ssl.c:1123)'))))
Exception ignored in: <function Model.del at 0x000001F4AF44ECA0>
Traceback (most recent call last):
File "C:\Users\luo\AppData\Local\Programs\Python\Python39\lib\site-packages\vosk_init.py", line 60, in del
AttributeError: 'Model' object has no attribute '_handle'`
The text was updated successfully, but these errors were encountered: