-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Alot of traceback errors #12
Comments
It looks like your errors may be originating from AWS Polly. I would retry the following command in a terminal: |
i tried installing boto3, said it was already there |
From this error, it appears you may be trying to connect to an incorrect or invalid endpoint URL for the Polly service. Check whether you are using the default region name closest to you here: https://docs.aws.amazon.com/general/latest/gr/rande.html#pol_region |
I got it working. I retyped in all the access keys and redid the region name and got it to work Thank you so much for your hard work on this. |
I am happy to hear that you got it working! |
I am doing this for a school project as part of my final. soon as I try and use it
Wake word detected
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 169, in _new_conn
conn = connection.create_connection(
File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 73, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.9/socket.py", line 953, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/medwards/.local/lib/python3.9/site-packages/botocore/httpsession.py", line 465, in send
urllib_response = conn.urlopen(
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 755, in urlopen
retries = retries.increment(
File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 507, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/usr/lib/python3/dist-packages/six.py", line 719, in reraise
raise value
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 699, in urlopen
httplib_response = self._make_request(
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 382, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 1012, in _validate_conn
conn.connect()
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 353, in connect
conn = self._new_conn()
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <botocore.awsrequest.AWSHTTPSConnection object at 0xdfbcbe68>: Failed to establish a new connection: [Errno -2] Name or service not known
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/medwards/DaVinci/DaVinci.py", line 294, in
voice(random.choice(prompt))
File "/home/medwards/DaVinci/DaVinci.py", line 99, in voice
voiceResponse = polly.synthesize_speech(Text=chat, OutputFormat="mp3",
File "/home/medwards/.local/lib/python3.9/site-packages/botocore/client.py", line 534, in _api_call
return self._make_api_call(operation_name, kwargs)
File "/home/medwards/.local/lib/python3.9/site-packages/botocore/client.py", line 959, in _make_api_call
http, parsed_response = self._make_request(
File "/home/medwards/.local/lib/python3.9/site-packages/botocore/client.py", line 982, in _make_request
return self._endpoint.make_request(operation_model, request_dict)
File "/home/medwards/.local/lib/python3.9/site-packages/botocore/endpoint.py", line 119, in make_request
return self._send_request(request_dict, operation_model)
File "/home/medwards/.local/lib/python3.9/site-packages/botocore/endpoint.py", line 202, in _send_request
while self._needs_retry(
File "/home/medwards/.local/lib/python3.9/site-packages/botocore/endpoint.py", line 354, in _needs_retry
responses = self._event_emitter.emit(
File "/home/medwards/.local/lib/python3.9/site-packages/botocore/hooks.py", line 412, in emit
return self._emitter.emit(aliased_event_name, **kwargs)
File "/home/medwards/.local/lib/python3.9/site-packages/botocore/hooks.py", line 256, in emit
return self._emit(event_name, kwargs)
File "/home/medwards/.local/lib/python3.9/site-packages/botocore/hooks.py", line 239, in _emit
response = handler(**kwargs)
File "/home/medwards/.local/lib/python3.9/site-packages/botocore/retryhandler.py", line 207, in call
if self._checker(**checker_kwargs):
File "/home/medwards/.local/lib/python3.9/site-packages/botocore/retryhandler.py", line 284, in call
should_retry = self._should_retry(
File "/home/medwards/.local/lib/python3.9/site-packages/botocore/retryhandler.py", line 320, in _should_retry
return self._checker(attempt_number, response, caught_exception)
File "/home/medwards/.local/lib/python3.9/site-packages/botocore/retryhandler.py", line 363, in call
checker_response = checker(
File "/home/medwards/.local/lib/python3.9/site-packages/botocore/retryhandler.py", line 247, in call
return self._check_caught_exception(
File "/home/medwards/.local/lib/python3.9/site-packages/botocore/retryhandler.py", line 416, in _check_caught_exception
raise caught_exception
File "/home/medwards/.local/lib/python3.9/site-packages/botocore/endpoint.py", line 281, in _do_get_response
http_response = self._send(request)
File "/home/medwards/.local/lib/python3.9/site-packages/botocore/endpoint.py", line 377, in _send
return self.http_session.send(request)
File "/home/medwards/.local/lib/python3.9/site-packages/botocore/httpsession.py", line 494, in send
raise EndpointConnectionError(endpoint_url=request.url, error=e)
botocore.exceptions.EndpointConnectionError: Could not connect to the endpoint URL: "https://polly.editing.amazonaws.com/v1/speech"
^CException ignored in: <module 'threading' from '/usr/lib/python3.9/threading.py'>
Traceback (most recent call last):
File "/usr/lib/python3.9/threading.py", line 1428, in _shutdown
lock.acquire()
KeyboardInterrupt:
The text was updated successfully, but these errors were encountered: