Hi, any thoughts here? We are suddenly getting SSL Certificate errors when trying to start up libretranslate within Powershell. Windows Server 2019, Python 3.9, correct Visual C++ prereqs:
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
PS C:\Users\Administrator> libretranslate
Updating language models
Found 60 models
Downloading Arabic → English (1.0) …
(URLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1122)’)),)
(URLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1122)’)),)
(URLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1122)’)),)
(URLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1122)’)),)
Cannot update models (normal if you’re offline): Download failed for Arabic → English
Traceback (most recent call last):
File “c:\program files\python39\lib\runpy.py”, line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File “c:\program files\python39\lib\runpy.py”, line 87, in run_code
exec(code, run_globals)
File "C:\Program Files\Python39\Scripts\libretranslate.exe_main.py", line 7, in
File “c:\program files\python39\lib\site-packages\libretranslate\main.py”, line 189, in main
app = create_app(args)
File “c:\program files\python39\lib\site-packages\libretranslate\app.py”, line 156, in create_app
language_target_fallback = languages[0]
IndexError: list index out of range
PS C:\Users\Administrator> libretranslate --update-models
Updating language models
Found 60 models
Downloading Arabic → English (1.0) …
(URLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1122)’)),)
(URLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1122)’)),)
(URLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1122)’)),)
(URLError(SSLCertVerificationError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1122)’)),)
Cannot update models (normal if you’re offline): Download failed for Arabic → English
Traceback (most recent call last):
File “c:\program files\python39\lib\runpy.py”, line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File “c:\program files\python39\lib\runpy.py”, line 87, in run_code
exec(code, run_globals)
File "C:\Program Files\Python39\Scripts\libretranslate.exe_main.py", line 7, in
File “c:\program files\python39\lib\site-packages\libretranslate\main.py”, line 189, in main
app = create_app(args)
File “c:\program files\python39\lib\site-packages\libretranslate\app.py”, line 156, in create_app
language_target_fallback = languages[0]
IndexError: list index out of range
PS C:\Users\Administrator>