Skip to content
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

[BUG]: Maybe a coqui issue ? #665

Open
LazzaAU opened this issue Aug 25, 2022 · 0 comments
Open

[BUG]: Maybe a coqui issue ? #665

LazzaAU opened this issue Aug 25, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@LazzaAU
Copy link
Contributor

LazzaAU commented Aug 25, 2022

Description of the bug

I'm back in a bad internet spot. So internet is dropping in and out all the time. I have Coqui ASR installed and pico as TTS but it Alice always crashes when offline mode triggers

The error i get constantly when offline at the moment is

[AmazonTts]                         Using existing cached file 5838751ec1f47574b5f97291d0692a18
[AudioManager]                      Playing wav stream using bcm2835 Headphones: - (hw:0,0) audio output from device Alice (channels: 1, rate: 16000)
[AudioManager]                      TTS finished speaking
[ThreadManager]                     Started new thread streamdecode_92675256-0c1d-42f6-b0d3-e7f2b8029de0, thread count: 22
Exception in thread streamdecode_92675256-0c1d-42f6-b0d3-e7f2b8029de0:
Traceback (most recent call last):
  File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.7/threading.py", line 865, in run
    self._target(*self._args, **self._kwargs)
  File "/home/pi/ProjectAlice/core/asr/ASRManager.py", line 182, in decodeStream
    result: ASRResult = self._asr.decodeStream(session)
  File "/home/pi/ProjectAlice/core/asr/model/CoquiAsr.py", line 148, in decodeStream
    streamContext = self._model.createStream()
AttributeError: 'NoneType' object has no attribute 'createStream'

Personally i dont think ive ever had Coqui installed properly, even though it shows loader connected, so will deal with that shortly.

In the meantime...... Thought i'd post the full log of what happens when i lose internet multiple times. Because its possibly something you guys with super duper internet speeds never strike heheh :)

You'll notice i get SSL certificate errors, Time out errors and various other errors. Just thought i'd mention it in case you see something that needs tweaked, captured etc .

[Project Alice]                     Started in 188.17 seconds
[AudioManager]                      Playing wav stream using bcm2835 Headphones: - (hw:0,0) audio output from device Alice (channels: 1, rate: 16000)
[AudioManager]                      Playing bytes finished
[Reminder]                          Checking for active timers in MyReminders database
[Reminder]                          Checking for active timers in MyTimer database
[Reminder]                          Checking for active timers in MyAlarm database
Exception in thread Thread-65:
Traceback (most recent call last):
  File "/home/pi/ProjectAlice/venv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/pi/ProjectAlice/venv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/home/pi/ProjectAlice/venv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "/home/pi/ProjectAlice/venv/lib/python3.7/site-packages/urllib3/connection.py", line 421, in connect
    tls_in_tls=tls_in_tls,
  File "/home/pi/ProjectAlice/venv/lib/python3.7/site-packages/urllib3/util/ssl_.py", line 450, in ssl_wrap_socket
    sock, context, tls_in_tls, server_hostname=server_hostname
  File "/home/pi/ProjectAlice/venv/lib/python3.7/site-packages/urllib3/util/ssl_.py", line 493, in _ssl_wrap_socket_impl
    return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
  File "/usr/lib/python3.7/ssl.py", line 412, in wrap_socket
    session=session
  File "/usr/lib/python3.7/ssl.py", line 853, in _create
    self.do_handshake()
  File "/usr/lib/python3.7/ssl.py", line 1117, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: EE certificate key too weak (_ssl.c:1056)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/ProjectAlice/venv/lib/python3.7/site-packages/requests/adapters.py", line 450, in send
    timeout=timeout
  File "/home/pi/ProjectAlice/venv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/pi/ProjectAlice/venv/lib/python3.7/site-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='skills.projectalice.io', port=443): Max retries exceeded with url: /assets/store/skills.json (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: EE certificate key too weak (_ssl.c:1056)')))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.7/threading.py", line 1166, in run
    self.function(*self.args, **self.kwargs)
  File "/home/pi/ProjectAlice/core/util/ThreadManager.py", line 113, in onTimerEnd
    timer.callback(*timer.args, **timer.kwargs)
  File "/home/pi/ProjectAlice/core/util/TimeManager.py", line 41, in timerSignal
    self.broadcast(signal, exceptions=[self.name], propagateToSkills=True)
  File "/home/pi/ProjectAlice/core/base/model/ProjectAliceObject.py", line 136, in broadcast
    func(**kwargs)
  File "/home/pi/ProjectAlice/core/base/SkillStoreManager.py", line 59, in onQuarterHour
    self.refreshStoreData()
  File "/home/pi/ProjectAlice/core/util/Decorators.py", line 158, in offlineDecorator
    return func(*args, **kwargs)
  File "/home/pi/ProjectAlice/core/base/SkillStoreManager.py", line 64, in refreshStoreData
    req = requests.get(url=constants.SKILLS_STORE_ASSETS)
  File "/home/pi/ProjectAlice/venv/lib/python3.7/site-packages/requests/api.py", line 75, in get
    return request('get', url, params=params, **kwargs)
  File "/home/pi/ProjectAlice/venv/lib/python3.7/site-packages/requests/api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/pi/ProjectAlice/venv/lib/python3.7/site-packages/requests/sessions.py", line 529, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/pi/ProjectAlice/venv/lib/python3.7/site-packages/requests/sessions.py", line 645, in send
    r = adapter.send(request, **kwargs)
  File "/home/pi/ProjectAlice/venv/lib/python3.7/site-packages/requests/adapters.py", line 517, in send
    raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='skills.projectalice.io', port=443): Max retries exceeded with url: /assets/store/skills.json (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: EE certificate key too weak (_ssl.c:1056)')))

[ASRManager]                        Internet lost, switching to offline Asr
[GoogleAsr]                         Stopping Google Asr
[GoogleAsr]                         Checking dependencies
[ASRManager]                        Asr did not satisfy the user settings, falling back to coqui
[CoquiAsr]                          Checking dependencies
[CoquiAsr]                          Starting Coqui Asr
[CoquiAsr]                          Loading Model
TensorFlow: v2.3.0-6-g23ad988fcde
 Coqui STT: v0.10.0-alpha.4-78-g1f3d2dab
[CoquiAsr]                          Model Loaded
[CoquiAsr]                          Scorer Loaded
[CoquiAsr]                          Starting Coqui Asr
[CoquiAsr]                          Loading Model
TensorFlow: v2.3.0-6-g23ad988fcde
 Coqui STT: v0.10.0-alpha.4-78-g1f3d2dab
[CoquiAsr]                          Model Loaded
[CoquiAsr]                          Scorer Loaded
[TTSManager]                        Internet lost, switching to offline TTS
[PicoTts]                           Checking dependencies
[PicoTts]                           Language from config: en-GB
[PicoTts]                           Type from config: female
[PicoTts]                           Voice from config: Amy
[PicoTts]                           Type female not found for the language, falling back to male
[PicoTts]                           Voice Amy not found for the language and type, falling back to en-GB
[ASRManager]                        Connected to internet, switching Asr
[CoquiAsr]                          Stopping Coqui Asr
[GoogleAsr]                         Checking dependencies
[GoogleAsr]                         Starting Google Asr
[TTSManager]                        Connected to internet, switching TTS
[AmazonTts]                         Checking dependencies
[AmazonTts]                         Language from config: en-GB
[AmazonTts]                         Type from config: female
[AmazonTts]                         Voice from config: Amy
[Reminder]                          Checking for active timers in MyReminders database
[Reminder]                          Checking for active timers in MyTimer database
[Reminder]                          Checking for active timers in MyAlarm database
[ASRManager]                        Internet lost, switching to offline Asr
[GoogleAsr]                         Stopping Google Asr
[GoogleAsr]                         Checking dependencies
[ASRManager]                        Asr did not satisfy the user settings, falling back to coqui
[CoquiAsr]                          Checking dependencies
[CoquiAsr]                          Starting Coqui Asr
[DeviceManager]                     Device alarm has not given a signal since 320 seconds or more
[DeviceManager]                     Device named alarm (0ee62473-660d-49c4-ba73-5d5f8e591fce) in Lounge disconnected
[DeviceManager]                     Device people home has not given a signal since 320 seconds or more
[DeviceManager]                     Device named people home (7bd42d49-ec11-4735-aa56-ff0030712715) in Lounge disconnected
[DeviceManager]                     Device laptop charger has not given a signal since 320 seconds or more
[DeviceManager]                     Device named laptop charger (ae8e6f5a-68ef-4bc6-ad44-1def58a2a9aa) in Lounge disconnected
[DeviceManager]                     Device external light has not given a signal since 320 seconds or more
[DeviceManager]                     Device named external light (d9622b15-a1c4-41c8-93b5-28abab151b85) in Outside disconnected
[DeviceManager]                     Device pillow light has not given a signal since 320 seconds or more
[DeviceManager]                     Device named pillow light (0ef4ff43-fb07-4982-9d73-a77cb97996a8) in Bedroom disconnected
[DeviceManager]                     Device awning light has not given a signal since 320 seconds or more
[DeviceManager]                     Device named awning light (34709c08-4239-47eb-85d7-4780bc7ec3b1) in Outside disconnected
[DeviceManager]                     Device window light has not given a signal since 320 seconds or more
[DeviceManager]                     Device named window light (9ed3c3b2-2647-4c1b-a25a-ca8dcf3dd090) in Bedroom disconnected
[DeviceManager]                     Device rmpro temperature has not given a signal since 320 seconds or more
[DeviceManager]                     Device named rmpro temperature (8c5858fa-2605-4d3b-a1d4-cf0be873def9) in Entrance disconnected
[Reminder]                          Checking for active timers in MyReminders database
[Reminder]                          Checking for active timers in MyTimer database
[Reminder]                          Checking for active timers in MyAlarm database
[DialogManager]                     Wakeword detected by Alice
[AmazonTts]                         Using existing cached file 5838751ec1f47574b5f97291d0692a18
[AudioManager]                      Playing wav stream using bcm2835 Headphones: - (hw:0,0) audio output from device Alice (channels: 1, rate: 16000)
[AudioManager]                      TTS finished speaking
[ThreadManager]                     Started new thread streamdecode_92675256-0c1d-42f6-b0d3-e7f2b8029de0, thread count: 22
Exception in thread streamdecode_92675256-0c1d-42f6-b0d3-e7f2b8029de0:
Traceback (most recent call last):
  File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.7/threading.py", line 865, in run
    self._target(*self._args, **self._kwargs)
  File "/home/pi/ProjectAlice/core/asr/ASRManager.py", line 182, in decodeStream
    result: ASRResult = self._asr.decodeStream(session)
  File "/home/pi/ProjectAlice/core/asr/model/CoquiAsr.py", line 148, in decodeStream
    streamContext = self._model.createStream()
AttributeError: 'NoneType' object has no attribute 'createStream'

[ThreadManager]                     Started new thread streamdecode_92675256-0c1d-42f6-b0d3-e7f2b8029de0, thread count: 22
Exception in thread streamdecode_92675256-0c1d-42f6-b0d3-e7f2b8029de0:
Traceback (most recent call last):
  File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.7/threading.py", line 865, in run
    self._target(*self._args, **self._kwargs)
  File "/home/pi/ProjectAlice/core/asr/ASRManager.py", line 182, in decodeStream
    result: ASRResult = self._asr.decodeStream(session)
  File "/home/pi/ProjectAlice/core/asr/model/CoquiAsr.py", line 148, in decodeStream
    streamContext = self._model.createStream()
AttributeError: 'NoneType' object has no attribute 'createStream'

[CoquiAsr]                          Asr timed out
[CoquiAsr]                          Asr timed out
[MqttManager]                       Session "285fa25a-795e-4c7f-acb6-9da800ae88d3" ended after timing out
[DialogManager]                     Wakeword detected by Alice
[AmazonTts]                         Using existing cached file 7d66a527487bda142994b931c50ec28d
[AudioManager]                      Playing wav stream using bcm2835 Headphones: - (hw:0,0) audio output from device Alice (channels: 1, rate: 16000)
[AudioManager]                      TTS finished speaking
[ThreadManager]                     Started new thread streamdecode_92675256-0c1d-42f6-b0d3-e7f2b8029de0, thread count: 22
Exception in thread streamdecode_92675256-0c1d-42f6-b0d3-e7f2b8029de0:
Traceback (most recent call last):
  File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.7/threading.py", line 865, in run
    self._target(*self._args, **self._kwargs)
  File "/home/pi/ProjectAlice/core/asr/ASRManager.py", line 182, in decodeStream
    result: ASRResult = self._asr.decodeStream(session)
  File "/home/pi/ProjectAlice/core/asr/model/CoquiAsr.py", line 148, in decodeStream
    streamContext = self._model.createStream()
AttributeError: 'NoneType' object has no attribute 'createStream'

[ThreadManager]                     Started new thread streamdecode_92675256-0c1d-42f6-b0d3-e7f2b8029de0, thread count: 22
Exception in thread streamdecode_92675256-0c1d-42f6-b0d3-e7f2b8029de0:
Traceback (most recent call last):
  File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.7/threading.py", line 865, in run
    self._target(*self._args, **self._kwargs)
  File "/home/pi/ProjectAlice/core/asr/ASRManager.py", line 182, in decodeStream
    result: ASRResult = self._asr.decodeStream(session)
  File "/home/pi/ProjectAlice/core/asr/model/CoquiAsr.py", line 148, in decodeStream
    streamContext = self._model.createStream()
AttributeError: 'NoneType' object has no attribute 'createStream'

[CoquiAsr]                          Asr timed out
[CoquiAsr]                          Asr timed out
[MqttManager]                       Session "a393537b-e8f0-41b8-a1a3-6b6f470aa77e" ended after timing out
[DialogManager]                     Wakeword detected by Alice
[AmazonTts]                         Using existing cached file 5838751ec1f47574b5f97291d0692a18
[AudioManager]                      Playing wav stream using bcm2835 Headphones: - (hw:0,0) audio output from device Alice (channels: 1, rate: 16000)
[AudioManager]                      TTS finished speaking
[ThreadManager]                     Started new thread streamdecode_92675256-0c1d-42f6-b0d3-e7f2b8029de0, thread count: 22
Exception in thread streamdecode_92675256-0c1d-42f6-b0d3-e7f2b8029de0:
Traceback (most recent call last):
  File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.7/threading.py", line 865, in run
    self._target(*self._args, **self._kwargs)
  File "/home/pi/ProjectAlice/core/asr/ASRManager.py", line 182, in decodeStream
    result: ASRResult = self._asr.decodeStream(session)
  File "/home/pi/ProjectAlice/core/asr/model/CoquiAsr.py", line 148, in decodeStream
    streamContext = self._model.createStream()
AttributeError: 'NoneType' object has no attribute 'createStream'

[ThreadManager]                     Started new thread streamdecode_92675256-0c1d-42f6-b0d3-e7f2b8029de0, thread count: 23
Exception in thread streamdecode_92675256-0c1d-42f6-b0d3-e7f2b8029de0:
Traceback (most recent call last):
  File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.7/threading.py", line 865, in run
    self._target(*self._args, **self._kwargs)
  File "/home/pi/ProjectAlice/core/asr/ASRManager.py", line 182, in decodeStream
    result: ASRResult = self._asr.decodeStream(session)
  File "/home/pi/ProjectAlice/core/asr/model/CoquiAsr.py", line 148, in decodeStream
    streamContext = self._model.createStream()
AttributeError: 'NoneType' object has no attribute 'createStream'

[CoquiAsr]                          Asr timed out
[CoquiAsr]                          Asr timed out
[MqttManager]                       Session "7073e421-3f97-4124-ac1e-f40f1eaca3ce" ended after timing out
[Reminder]                          Checking for active timers in MyReminders database
[Reminder]                          Checking for active timers in MyTimer database
[Reminder]                          Checking for active timers in MyAlarm database
Traceback (most recent call last):
  File "/home/pi/ProjectAlice/venv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 445, in _make_request
    six.raise_from(e, None)
  File "<string>", line 3, in raise_from
  File "/home/pi/ProjectAlice/venv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 440, in _make_request
    httplib_response = conn.getresponse()
  File "/usr/lib/python3.7/http/client.py", line 1336, in getresponse
    response.begin()
  File "/usr/lib/python3.7/http/client.py", line 306, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python3.7/http/client.py", line 267, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/usr/lib/python3.7/socket.py", line 589, in readinto
    return self._sock.recv_into(b)
  File "/usr/lib/python3.7/ssl.py", line 1052, in recv_into
    return self.read(nbytes, buffer)
  File "/usr/lib/python3.7/ssl.py", line 911, in read
    return self._sslobj.read(len, buffer)
socket.timeout: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/ProjectAlice/venv/lib/python3.7/site-packages/telepot/loop.py", line 60, in run_forever
    allowed_updates=allowed_updates)
  File "/home/pi/ProjectAlice/venv/lib/python3.7/site-packages/telepot/__init__.py", line 1000, in getUpdates
    return self._api_request('getUpdates', _rectify(p))
  File "/home/pi/ProjectAlice/venv/lib/python3.7/site-packages/telepot/__init__.py", line 491, in _api_request
    return api.request((self._token, method, params, files), **kwargs)
  File "/home/pi/ProjectAlice/venv/lib/python3.7/site-packages/telepot/api.py", line 154, in request
    r = fn(*args, **kwargs)  # `fn` must be thread-safe
  File "/home/pi/ProjectAlice/venv/lib/python3.7/site-packages/urllib3/request.py", line 170, in request_encode_body
    return self.urlopen(method, url, **extra_kw)
  File "/home/pi/ProjectAlice/venv/lib/python3.7/site-packages/urllib3/poolmanager.py", line 375, in urlopen
    response = conn.urlopen(method, u.request_uri, **kw)
  File "/home/pi/ProjectAlice/venv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/pi/ProjectAlice/venv/lib/python3.7/site-packages/urllib3/util/retry.py", line 532, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "/home/pi/ProjectAlice/venv/lib/python3.7/site-packages/urllib3/packages/six.py", line 770, in reraise
    raise value
  File "/home/pi/ProjectAlice/venv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/pi/ProjectAlice/venv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 447, in _make_request
    self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
  File "/home/pi/ProjectAlice/venv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 337, in _raise_timeout
    self, url, "Read timed out. (read timeout=%s)" % timeout_value
urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='api.telegram.org', port=443): Read timed out. (read timeout=50)
[Reminder]                          Checking for active timers in MyReminders database
[Reminder]                          Checking for active timers in MyTimer database
[Reminder]                          Checking for active timers in MyAlarm database
Traceback (most recent call last):
  File "/home/pi/ProjectAlice/venv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 445, in _make_request
    six.raise_from(e, None)
  File "<string>", line 3, in raise_from
  File "/home/pi/ProjectAlice/venv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 440, in _make_request
    httplib_response = conn.getresponse()
  File "/usr/lib/python3.7/http/client.py", line 1336, in getresponse
    response.begin()
  File "/usr/lib/python3.7/http/client.py", line 306, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python3.7/http/client.py", line 267, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/usr/lib/python3.7/socket.py", line 589, in readinto
    return self._sock.recv_into(b)
  File "/usr/lib/python3.7/ssl.py", line 1052, in recv_into
    return self.read(nbytes, buffer)
  File "/usr/lib/python3.7/ssl.py", line 911, in read
    return self._sslobj.read(len, buffer)
socket.timeout: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/ProjectAlice/venv/lib/python3.7/site-packages/telepot/loop.py", line 60, in run_forever
    allowed_updates=allowed_updates)
  File "/home/pi/ProjectAlice/venv/lib/python3.7/site-packages/telepot/__init__.py", line 1000, in getUpdates
    return self._api_request('getUpdates', _rectify(p))
  File "/home/pi/ProjectAlice/venv/lib/python3.7/site-packages/telepot/__init__.py", line 491, in _api_request
    return api.request((self._token, method, params, files), **kwargs)
  File "/home/pi/ProjectAlice/venv/lib/python3.7/site-packages/telepot/api.py", line 154, in request
    r = fn(*args, **kwargs)  # `fn` must be thread-safe
  File "/home/pi/ProjectAlice/venv/lib/python3.7/site-packages/urllib3/request.py", line 170, in request_encode_body
    return self.urlopen(method, url, **extra_kw)
  File "/home/pi/ProjectAlice/venv/lib/python3.7/site-packages/urllib3/poolmanager.py", line 375, in urlopen
    response = conn.urlopen(method, u.request_uri, **kw)
  File "/home/pi/ProjectAlice/venv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/pi/ProjectAlice/venv/lib/python3.7/site-packages/urllib3/util/retry.py", line 532, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "/home/pi/ProjectAlice/venv/lib/python3.7/site-packages/urllib3/packages/six.py", line 770, in reraise
    raise value
  File "/home/pi/ProjectAlice/venv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/pi/ProjectAlice/venv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 447, in _make_request
    self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
  File "/home/pi/ProjectAlice/venv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 337, in _raise_timeout
    self, url, "Read timed out. (read timeout=%s)" % timeout_value
urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='api.telegram.org', port=443): Read timed out. (read timeout=50)
Traceback (most recent call last):
  File "/home/pi/ProjectAlice/venv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/pi/ProjectAlice/venv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 445, in _make_request
    six.raise_from(e, None)
  File "<string>", line 3, in raise_from
  File "/home/pi/ProjectAlice/venv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 440, in _make_request
    httplib_response = conn.getresponse()
  File "/usr/lib/python3.7/http/client.py", line 1336, in getresponse
    response.begin()
  File "/usr/lib/python3.7/http/client.py", line 306, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python3.7/http/client.py", line 267, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/usr/lib/python3.7/socket.py", line 589, in readinto
    return self._sock.recv_into(b)
  File "/usr/lib/python3.7/ssl.py", line 1052, in recv_into
    return self.read(nbytes, buffer)
  File "/usr/lib/python3.7/ssl.py", line 911, in read
    return self._sslobj.read(len, buffer)
ConnectionResetError: [Errno 104] Connection reset by peer

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/ProjectAlice/venv/lib/python3.7/site-packages/telepot/loop.py", line 60, in run_forever
    allowed_updates=allowed_updates)
  File "/home/pi/ProjectAlice/venv/lib/python3.7/site-packages/telepot/__init__.py", line 1000, in getUpdates
    return self._api_request('getUpdates', _rectify(p))
  File "/home/pi/ProjectAlice/venv/lib/python3.7/site-packages/telepot/__init__.py", line 491, in _api_request
    return api.request((self._token, method, params, files), **kwargs)
  File "/home/pi/ProjectAlice/venv/lib/python3.7/site-packages/telepot/api.py", line 154, in request
    r = fn(*args, **kwargs)  # `fn` must be thread-safe
  File "/home/pi/ProjectAlice/venv/lib/python3.7/site-packages/urllib3/request.py", line 170, in request_encode_body
    return self.urlopen(method, url, **extra_kw)
  File "/home/pi/ProjectAlice/venv/lib/python3.7/site-packages/urllib3/poolmanager.py", line 375, in urlopen
    response = conn.urlopen(method, u.request_uri, **kw)
  File "/home/pi/ProjectAlice/venv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 756, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
  File "/home/pi/ProjectAlice/venv/lib/python3.7/site-packages/urllib3/util/retry.py", line 532, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "/home/pi/ProjectAlice/venv/lib/python3.7/site-packages/urllib3/packages/six.py", line 769, in reraise
    raise value.with_traceback(tb)
  File "/home/pi/ProjectAlice/venv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/home/pi/ProjectAlice/venv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 445, in _make_request
    six.raise_from(e, None)
  File "<string>", line 3, in raise_from
  File "/home/pi/ProjectAlice/venv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 440, in _make_request
    httplib_response = conn.getresponse()
  File "/usr/lib/python3.7/http/client.py", line 1336, in getresponse
    response.begin()
  File "/usr/lib/python3.7/http/client.py", line 306, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python3.7/http/client.py", line 267, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/usr/lib/python3.7/socket.py", line 589, in readinto
    return self._sock.recv_into(b)
  File "/usr/lib/python3.7/ssl.py", line 1052, in recv_into
    return self.read(nbytes, buffer)
  File "/usr/lib/python3.7/ssl.py", line 911, in read
    return self._sslobj.read(len, buffer)
urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
[CoquiAsr]                          Loading Model
TensorFlow: v2.3.0-6-g23ad988fcde
 Coqui STT: v0.10.0-alpha.4-78-g1f3d2dab
[CoquiAsr]                          Model Loaded
[CoquiAsr]                          Scorer Loaded
[CoquiAsr]                          Starting Coqui Asr
[Reminder]                          Checking for active timers in MyReminders database
[Reminder]                          Checking for active timers in MyTimer database
[Reminder]                          Checking for active timers in MyAlarm database


Steps To Reproduce

use amazon for online ASR and Coqui for Offline and pico for TTS , then make your internet drop in and out frequently ?? shrug

Additional Information

No response

@LazzaAU LazzaAU added the bug Something isn't working label Aug 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant