Boa tarde, alquem consegue me ajudar com esse erro abaixo, antes funcionava normal o codigo em python agora esta dando esse erro.
Exception in Tkinter callback
Traceback (most recent call last):
File "H:\Meu Drive\PYTHON\ROTA\Lib\site-packages\urllib3\connectionpool.py", line 467, in _make_request
self._validate_conn(conn)
File "H:\Meu Drive\PYTHON\ROTA\Lib\site-packages\urllib3\connectionpool.py", line 1096, in _validate_conn
conn.connect()
File "H:\Meu Drive\PYTHON\ROTA\Lib\site-packages\urllib3\connection.py", line 642, in connect
sock_and_verified = _ssl_wrap_socket_and_match_hostname(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "H:\Meu Drive\PYTHON\ROTA\Lib\site-packages\urllib3\connection.py", line 782, in _ssl_wrap_socket_and_match_hostname
ssl_sock = ssl_wrap_socket(
^^^^^^^^^^^^^^^^
File "H:\Meu Drive\PYTHON\ROTA\Lib\site-packages\urllib3\util\ssl_.py", line 470, in ssl_wrap_socket
ssl_sock = _ssl_wrap_socket_impl(sock, context, tls_in_tls, server_hostname)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "H:\Meu Drive\PYTHON\ROTA\Lib\site-packages\urllib3\util\ssl_.py", line 514, in _ssl_wrap_socket_impl
return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\denis\anaconda3\Lib\ssl.py", line 517, in wrap_socket
return self.sslsocket_class._create(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\denis\anaconda3\Lib\ssl.py", line 1108, in _create
self.do_handshake()
File "C:\Users\denis\anaconda3\Lib\ssl.py", line 1379, in do_handshake
self._sslobj.do_handshake()
ssl.SSLEOFError: [SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1006)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "H:\Meu Drive\PYTHON\ROTA\Lib\site-packages\urllib3\connectionpool.py", line 790, in urlopen
response = self._make_request(
^^^^^^^^^^^^^^^^^^^
File "H:\Meu Drive\PYTHON\ROTA\Lib\site-packages\urllib3\connectionpool.py", line 491, in _make_request
raise new_e
urllib3.exceptions.SSLError: [SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1006)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "H:\Meu Drive\PYTHON\ROTA\Lib\site-packages\requests\adapters.py", line 486, in send
resp = conn.urlopen(
^^^^^^^^^^^^^
File "H:\Meu Drive\PYTHON\ROTA\Lib\site-packages\urllib3\connectionpool.py", line 844, in urlopen
retries = retries.increment(
^^^^^^^^^^^^^^^^^^
File "H:\Meu Drive\PYTHON\ROTA\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='maps.googleapis.com', port=443): Max retries exceeded with url: /maps/api/place/autocomplete/json?input=r&key=AIzaSyB8OzRdZR6hpFH-F5anxqQ8INHfu772ENQ (Caused by SSLError(SSLEOFError(8, '[SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1006)')))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "H:\Meu Drive\PYTHON\ROTA\Lib\site-packages\googlemaps\client.py", line 315, in _request
response = requests_method(base_url + authed_url,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "H:\Meu Drive\PYTHON\ROTA\Lib\site-packages\requests\sessions.py", line 602, in get
return self.request("GET", url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "H:\Meu Drive\PYTHON\ROTA\Lib\site-packages\requests\sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "H:\Meu Drive\PYTHON\ROTA\Lib\site-packages\requests\sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "H:\Meu Drive\PYTHON\ROTA\Lib\site-packages\requests\adapters.py", line 517, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='maps.googleapis.com', port=443): Max retries exceeded with url: /maps/api/place/autocomplete/json?input=r&key=AIzaSyB8OzRdZR6hpFH-F5anxqQ8INHfu772ENQ (Caused by SSLError(SSLEOFError(8, '[SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1006)')))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\denis\anaconda3\Lib\tkinter\__init__.py", line 1948, in __call__
return self.func(*args)
^^^^^^^^^^^^^^^^
File "h:\Meu Drive\PYTHON\ROTA\Rota.py", line 209, in <lambda>
origem_entry.bind("<KeyRelease>", lambda event: preencher_endereco_origem(origem_entry.get()))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "h:\Meu Drive\PYTHON\ROTA\Rota.py", line 45, in preencher_endereco_origem
preencher_enderecos(origem_entry, destino_entry, nome_rua)
File "h:\Meu Drive\PYTHON\ROTA\Rota.py", line 40, in preencher_enderecos
enderecos = obter_enderecos(nome_rua)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "h:\Meu Drive\PYTHON\ROTA\Rota.py", line 32, in obter_enderecos
resultados = gmaps.places_autocomplete(input_text=nome_rua)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "H:\Meu Drive\PYTHON\ROTA\Lib\site-packages\googlemaps\client.py", line 445, in wrapper
result = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "H:\Meu Drive\PYTHON\ROTA\Lib\site-packages\googlemaps\places.py", line 610, in places_autocomplete
return _autocomplete(
^^^^^^^^^^^^^^
File "H:\Meu Drive\PYTHON\ROTA\Lib\site-packages\googlemaps\places.py", line 707, in _autocomplete
return client._request(url, params).get("predictions", [])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "H:\Meu Drive\PYTHON\ROTA\Lib\site-packages\googlemaps\client.py", line 320, in _request
raise googlemaps.exceptions.TransportError(e)
googlemaps.exceptions.TransportError: HTTPSConnectionPool(host='maps.googleapis.com', port=443): Max retries exceeded with url: /maps/api/place/autocomplete/json?input=r&key=AIzaSyB8OzRdZR6hpFH-F5anxqQ8INHfu772ENQ (Caused by SSLError(SSLEOFError(8, '[SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1006)')))