gtts.tts.gTTSError: Failed to connect. Probable cause: Host 'https://translate.google.co.uk/' is not reachable
Traceback (most recent call last): File "C:\Users\hp\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connectionpool.py", line 703, in urlopen httplib_response = self._make_request( File "C:\Users\hp\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connectionpool.py", line 386, in _make_request self._validate_conn(conn) File "C:\Users\hp\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connectionpool.py", line 1040, in _validate_conn conn.connect() File "C:\Users\hp\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connection.py", line 412, in connect context.load_default_certs() File "C:\Users\hp\AppData\Local\Programs\Python\Python38\lib\ssl.py", line 574, in load_default_certs self._load_windows_store_certs(storename, purpose) File "C:\Users\hp\AppData\Local\Programs\Python\Python38\lib\ssl.py", line 566, in _load_windows_store_certs self.load_verify_locations(cadata=certs) ssl.SSLError: nested asn1 error (_ssl.c:4067)
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "C:\Users\hp\AppData\Local\Programs\Python\Python38\lib\site-packages\requests\adapters.py", line 440, in send resp = conn.urlopen( File "C:\Users\hp\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\connectionpool.py", line 785, in urlopen retries = retries.increment( File "C:\Users\hp\AppData\Local\Programs\Python\Python38\lib\site-packages\urllib3\util\retry.py", line 592, in increment raise MaxRetryError(pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='translate.google.co.uk', port=443): Max retries exceeded with url: //TranslateWebserverUi/data/batchexecute (Caused by SSLError(SSLError(58, 'nested asn1 error (_ssl.c:4067)')))
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "C:\Users\hp\AppData\Local\Programs\Python\Python38\lib\site-packages\gtts\tts.py", line 265, in stream r = s.send( File "C:\Users\hp\AppData\Local\Programs\Python\Python38\lib\site-packages\requests\sessions.py", line 645, in send r = adapter.send(request, **kwargs) File "C:\Users\hp\AppData\Local\Programs\Python\Python38\lib\site-packages\requests\adapters.py", line 517, in send raise SSLError(e, request=request) requests.exceptions.SSLError: HTTPSConnectionPool(host='translate.google.co.uk', port=443): Max retries exceeded with url: /_/TranslateWebserverUi/data/batchexecute (Caused by SSLError(SSLError(58, 'nested asn1 error (_ssl.c:4067)')))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "main.py", line 18, in
do you have a stable internet connection on that computer?
Hi @Incisivity ,
I hope you were able to resolve your issue as there has not been activity in this Issue, I will be closing this for the time being. Feel free to re-open the issue if it has not been solved!!
Happy Coding!