jasperproject / jasper-client

Client code for Jasper voice computing platform
MIT License
4.53k stars 1.01k forks source link

IOError: [Errno Input Overflowed] -9981 #240

Open iamhappypappy opened 9 years ago

iamhappypappy commented 9 years ago

I am able to use Jasper with no problem and ask a couple of questions from the pre-built questions.

After a couple of times I ask questions It errors out with IOError: [Errno Input Overflowed] -9981, I have to restart it and the same thing keeps happening. I can only get a couple of requests and responses then it crashes.

The file error says 'Cannot schedule new tasks after shutdown'...

Any help please.

Holzhaus commented 9 years ago

Please run Jasper with --debug argument and post some output.

Holzhaus commented 9 years ago

No response, closed.

rikardoms commented 9 years ago

I have the same problem.

rikardoms commented 9 years ago

Jasper save logfile? Where?

Holzhaus commented 9 years ago

Please run Jasper with --debug argument and post some output.

rikardoms commented 9 years ago

Hello Holzhaus, thank you for your help, the output was:

pi@raspberrypi ~ $ /home/pi/jasper/jasper.py --debug

JASPER The Talking Computer

Copyright 2013 Shubhro Saha & Charlie Marsh

DEBUG:client.diagnose:Checking network connection to server 'www.google.com'... DEBUG:client.diagnose:Network connection working DEBUG:main:Trying to read config file: '/home/pi/.jasper/profile.yml' DEBUG:client.diagnose:Checking python import 'pocketsphinx'... DEBUG:client.diagnose:Python module 'pocketsphinx' found: '/usr/local/lib/python2. 7/dist-packages/pocketsphinx.so' WARNING:root:tts_engine not specified in profile, defaulting to 'espeak-tts' DEBUG:client.diagnose:Checking executable 'aplay'... DEBUG:client.diagnose:Executable 'aplay' found: '/usr/bin/aplay' DEBUG:client.diagnose:Checking executable 'espeak'... DEBUG:client.diagnose:Executable 'espeak' found: '/usr/bin/espeak' DEBUG:client.vocabcompiler:compiled_revision is 'bb74ae36d130ef20de710e3a77b43424b 8fa774f' DEBUG:client.brain:Looking for modules in: '/home/pi/jasper/client/modules' DEBUG:client.brain:Found module 'Birthday' with words: ['BIRTHDAY'] DEBUG:client.brain:Found module 'Gmail' with words: ['EMAIL', 'INBOX'] DEBUG:client.brain:Found module 'HN' with words: ['HACKER', 'NEWS', 'YES', 'NO', ' FIRST', 'SECOND', 'THIRD'] DEBUG:client.brain:Found module 'Joke' with words: ['JOKE', 'KNOCK KNOCK'] DEBUG:client.brain:Found module 'Life' with words: ['MEANING', 'OF', 'LIFE'] DEBUG:client.brain:Found module 'MPDControl' with words: ['MUSIC', 'SPOTIFY'] DEBUG:client.brain:Found module 'News' with words: ['NEWS', 'YES', 'NO', 'FIRST', 'SECOND', 'THIRD'] DEBUG:client.brain:Found module 'Notifications' with words: ['FACEBOOK', 'NOTIFICA TION'] DEBUG:client.brain:Found module 'Time' with words: ['TIME'] DEBUG:client.brain:Found module 'Unclear' with words: [] DEBUG:client.brain:Found module 'Weather' with words: ['WEATHER', 'TODAY', 'TOMORR OW'] DEBUG:client.vocabcompiler:compiled_revision is '8c0e66f387b7177205726ecfcb3edd9df 0d23653' INFO:client.mic:Initializing PyAudio. ALSA/Jack error messages that pop up during this process are normal and can usually be safely ignored. ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only playback stream ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave Cannot connect to server socket err = No such file or directory Cannot connect to server request channel jack server is not running or cannot be started INFO:client.mic:Initialization of PyAudio completed. DEBUG:client.tts:Saying 'How can I be of service, Ricardo?' with 'espeak-tts' DEBUG:client.tts:Executing espeak -v default+m3 -p 40 -s 160 -w /tmp/tmpgY9L_Y.wav 'How can I be of service, Ricardo?' DEBUG:client.tts:Executing aplay -D hw:1,0 /tmp/tmpgY9L_Y.wav DEBUG:client.tts:Output was: 'Playing WAVE '/tmp/tmpgY9L_Y.wav' : Signed 16 bit Li ttle Endian, Rate 22050 Hz, Mono ' DEBUG:client.brain:Looking for modules in: '/home/pi/jasper/client/modules' DEBUG:client.brain:Found module 'Birthday' with words: ['BIRTHDAY'] DEBUG:client.brain:Found module 'Gmail' with words: ['EMAIL', 'INBOX'] DEBUG:client.brain:Found module 'HN' with words: ['HACKER', 'NEWS', 'YES', 'NO', ' FIRST', 'SECOND', 'THIRD'] DEBUG:client.brain:Found module 'Joke' with words: ['JOKE', 'KNOCK KNOCK'] DEBUG:client.brain:Found module 'Life' with words: ['MEANING', 'OF', 'LIFE'] DEBUG:client.brain:Found module 'MPDControl' with words: ['MUSIC', 'SPOTIFY'] DEBUG:client.brain:Found module 'News' with words: ['NEWS', 'YES', 'NO', 'FIRST', 'SECOND', 'THIRD'] DEBUG:client.brain:Found module 'Notifications' with words: ['FACEBOOK', 'NOTIFICA TION'] DEBUG:client.brain:Found module 'Time' with words: ['TIME'] DEBUG:client.brain:Found module 'Unclear' with words: [] DEBUG:client.brain:Found module 'Weather' with words: ['WEATHER', 'TODAY', 'TOMORR OW'] INFO:apscheduler.scheduler:Scheduler started DEBUG:apscheduler.scheduler:Looking for jobs to run DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added INFO:apscheduler.scheduler:Added job "Notifier.gather" to job store "default" INFO:client.conversation:Starting to handle conversation with keyword 'JASPER'. DEBUG:client.conversation:Started listening for keyword 'JASPER' DEBUG:apscheduler.scheduler:Looking for jobs to run DEBUG:apscheduler.scheduler:Next wakeup is due at 2014-12-25 21:31:15.762790+00:00 (in 29.951123 seconds) No disturbance detected DEBUG:client.conversation:Stopped listening for keyword 'JASPER' INFO:client.conversation:Nothing has been said or transcribed. DEBUG:client.conversation:Started listening for keyword 'JASPER' INFO:client.stt:Transcribed: [''] DEBUG:client.conversation:Stopped listening for keyword 'JASPER' INFO:client.conversation:Nothing has been said or transcribed. DEBUG:client.conversation:Started listening for keyword 'JASPER' INFO:client.stt:Transcribed: [''] DEBUG:client.conversation:Stopped listening for keyword 'JASPER' INFO:client.conversation:Nothing has been said or transcribed. DEBUG:client.conversation:Started listening for keyword 'JASPER' DEBUG:apscheduler.scheduler:Looking for jobs to run INFO:apscheduler.executors.default:Running job "Notifier.gather (trigger: interval [0:00:30], next run at: 2014-12-25 21:31:15 UTC)" (scheduled at 2014-12-25 21:31:1 5.762790+00:00) DEBUG:apscheduler.scheduler:Next wakeup is due at 2014-12-25 21:31:45.762790+00:00 (in 29.991545 seconds) No disturbance detected DEBUG:client.conversation:Stopped listening for keyword 'JASPER' INFO:client.conversation:Nothing has been said or transcribed. DEBUG:client.conversation:Started listening for keyword 'JASPER' INFO:client.stt:Transcribed: [''] DEBUG:client.conversation:Stopped listening for keyword 'JASPER' INFO:client.conversation:Nothing has been said or transcribed. DEBUG:client.conversation:Started listening for keyword 'JASPER' y pi@raspberrypi ~ $ INFO:client.conversation:Nothing has been said or transcribed. -bash: INFO:client.conversation:Nothing: command not found pi@raspberrypi ~ $ DEBUG:client.conversation:Started listening for keyword 'JASPER ' -bash: DEBUG:client.conversation:Started: command not found pi@raspberrypi ~ $ Traceback (most recent call last): -bash: syntax error near unexpected token most' pi@raspberrypi ~ $ File "/home/pi/jasper/jasper.py", line 142, in <module -bash: module: No such file or directory pi@raspberrypi ~ $ -bash: INFO:client.conversation:Starting: command not found -bash: -bash:: command not found pi@raspberrypi ~ $ pi@raspberrypi ~ $ DEBUG:client.conversation:Started listening for keyword 'JASPER' y pi@raspberrypi ~ $ INFO:client.conversation:Nothing has been said or transcribed. -bash: INFO:client.conversation:Nothing: command not found pi@raspberrypi ~ $ DEBUG:client.conversation:Started listening for keyword 'JASPER ' -bash: DEBUG:client.conversation:Started: command not found pi@raspberrypi ~ $ Traceback (most recent call last): -bash: syntax error near unexpected tokenmost' pi@raspberrypi ~ $ File "/home/pi/jasper/jasper.py", line 142, in <module -bash: module: No such file or directory pi@raspberrypi ~ $ -bash: INFO:client.conversation:Starting: command not found -bash: -bash:: command not found pi@raspberrypi ~ $ pi@raspberrypi ~ $ DEBUG:client.conversation:Started listening for keyword 'JASPER' y pi@raspberrypi ~ $ INFO:client.conversation:Nothing has been said or transcribed. -bash: INFO:client.conversation:Nothing: command not found pi@raspberrypi ~ $ DEBUG:client.conversation:Started listening for keyword 'JASPER ' -bash: DEBUG:client.conversation:Started: command not found pi@raspberrypi ~ $ Traceback (most recent call last): -bash: syntax error near unexpected token `most' pi@raspberrypi ~ $ File "/home/pi/jasper/jasper.py", line 142, in <module -bash: module: No such file or directory pi@raspberrypi ~ $ -bash: INFO:client.conversation:Starting: command not found -bash: -bash:: command not found pi@raspberrypi ~ $ pi@raspberrypi ~ $ DEBUG:client.conversation:Started listening for keyword 'JASPER' ^CTraceback (most recent call last): File "/home/pi/jasper/jasper.py", line 142, in app.run() File "/home/pi/jasper/jasper.py", line 112, in run conversation.handleForever() File "/home/pi/jasper/client/conversation.py", line 31, in handleForever threshold, transcribed = self.mic.passiveListen(self.persona) File "/home/pi/jasper/client/mic.py", line 163, in passiveListen data = stream.read(CHUNK) File "/usr/lib/pymodules/python2.7/pyaudio.py", line 564, in read return pa.read_stream(self._stream, num_frames) KeyboardInterrupt INFO:apscheduler.scheduler:Scheduler has been shut down

Holzhaus commented 9 years ago

There is no IOError in the output you posted. Instead, you killed Jasper by pressing CTRL+C.

rikardoms commented 9 years ago

Hello Holzhaus, the debug message I posted was incomplete

Traceback (most recent call last): File "/home/pi/jasper/jasper.py", line 142, in app.run() File "/home/pi/jasper/jasper.py", line 112, in run conversation.handleForever() File "/home/pi/jasper/client/conversation.py", line 31, in handleForever threshold, transcribed = self.mic.passiveListen(self.persona) File "/home/pi/jasper/client/mic.py", line 121, in passiveListen data = stream.read(CHUNK) File "/usr/lib/pymodules/python2.7/pyaudio.py", line 564, in read return pa.read_stream(self._stream, num_frames) IOError: [Errno Input overflowed] -9981 INFO:apscheduler.scheduler:Scheduler has been shut down ERROR:apscheduler.executors.default:Job "Notifier.gather (trigger: interval[0:00:30], next run at: 2014-12-26 01:05:54 UTC)" raised an exception Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/apscheduler/executors/base.py", line 108, in run_job retval = job.func(_job.args, _job.kwargs) File "/home/pi/jasper/client/notifier.py", line 39, in gather [client.run() for client in self.notifiers] File "/home/pi/jasper/client/notifier.py", line 18, in run self.timestamp = self.gather(self.timestamp) File "/home/pi/jasper/client/notifier.py", line 45, in handleEmailNotifications lastDate = Gmail.getMostRecentDate(emails) File "/home/pi/jasper/client/modules/Gmail.py", line 41, in getMostRecentDate dates = [getDate(e) for e in emails] File "/home/pi/jasper/client/modules/Gmail.py", line 28, in getDate return parser.parse(email.get('date')) File "/usr/local/lib/python2.7/dist-packages/dateutil/parser.py", line 743, in parse return DEFAULTPARSER.parse(timestr, _kwargs) File "/usr/local/lib/python2.7/dist-packages/dateutil/parser.py", line 300, in parse res = self._parse(timestr, *_kwargs) File "/usr/local/lib/python2.7/dist-packages/dateutil/parser.py", line 358, in _parse l = _timelex.split(timestr) File "/usr/local/lib/python2.7/dist-packages/dateutil/parser.py", line 139, in split return list(cls(s)) File "/usr/local/lib/python2.7/dist-packages/dateutil/parser.py", line 136, in next return self.next() # Python 2.x support File "/usr/local/lib/python2.7/dist-packages/dateutil/parser.py", line 130, in next token = self.get_token() File "/usr/local/lib/python2.7/dist-packages/dateutil/parser.py", line 61, in get_token nextchar = self.instream.read(1) AttributeError: 'NoneType' object has no attribute 'read' Exception RuntimeError: 'Set changed size during iteration' in <bound method Mic.del of <client.mic.Mic instance at 0x12b53f0>> ignored

rikardoms commented 9 years ago

Any help?

Holzhaus commented 9 years ago

I can't See how these two logs belong together. Yan You post them in one piece?

rikardoms commented 9 years ago

Yes. I will post it today at night.

rikardoms commented 9 years ago

pi@raspberrypi ~ $ /home/pi/jasper/jasper.py --debug

JASPER The Talking Computer

Copyright 2013 Shubhro Saha & Charlie Marsh

DEBUG:client.diagnose:Checking network connection to server 'www.google.com'... DEBUG:client.diagnose:Network connection working DEBUG:main:Trying to read config file: '/home/pi/.jasper/profile.yml' DEBUG:client.diagnose:Checking python import 'pocketsphinx'... DEBUG:client.diagnose:Python module 'pocketsphinx' found: '/usr/local/lib/python 2.7/dist-packages/pocketsphinx.so' WARNING:root:tts_engine not specified in profile, defaulting to 'espeak-tts' DEBUG:client.diagnose:Checking executable 'aplay'... DEBUG:client.diagnose:Executable 'aplay' found: '/usr/bin/aplay' DEBUG:client.diagnose:Checking executable 'espeak'... DEBUG:client.diagnose:Executable 'espeak' found: '/usr/bin/espeak' DEBUG:client.vocabcompiler:compiled_revision is 'bb74ae36d130ef20de710e3a77b4342 4b8fa774f' DEBUG:client.brain:Looking for modules in: '/home/pi/jasper/client/modules' DEBUG:client.brain:Found module 'Birthday' with words: ['BIRTHDAY'] DEBUG:client.brain:Found module 'Gmail' with words: ['EMAIL', 'INBOX'] DEBUG:client.brain:Found module 'HN' with words: ['HACKER', 'NEWS', 'YES', 'NO', 'FIRST', 'SECOND', 'THIRD'] DEBUG:client.brain:Found module 'Joke' with words: ['JOKE', 'KNOCK KNOCK'] DEBUG:client.brain:Found module 'Life' with words: ['MEANING', 'OF', 'LIFE'] DEBUG:client.brain:Found module 'MPDControl' with words: ['MUSIC', 'SPOTIFY'] DEBUG:client.brain:Found module 'News' with words: ['NEWS', 'YES', 'NO', 'FIRST' , 'SECOND', 'THIRD'] DEBUG:client.brain:Found module 'Notifications' with words: ['FACEBOOK', 'NOTIFI CATION'] DEBUG:client.brain:Found module 'Time' with words: ['TIME'] DEBUG:client.brain:Found module 'Unclear' with words: [] DEBUG:client.brain:Found module 'Weather' with words: ['WEATHER', 'TODAY', 'TOMO RROW'] DEBUG:client.vocabcompiler:compiled_revision is '8c0e66f387b7177205726ecfcb3edd9 df0d23653' INFO:client.mic:Initializing PyAudio. ALSA/Jack error messages that pop up durin g this process are normal and can usually be safely ignored. ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only playba ck stream ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave Cannot connect to server socket err = No such file or directory Cannot connect to server request channel jack server is not running or cannot be started INFO:client.mic:Initialization of PyAudio completed. DEBUG:client.tts:Saying 'How can I be of service, Ricardo?' with 'espeak-tts' DEBUG:client.tts:Executing espeak -v default+m3 -p 40 -s 160 -w /tmp/tmpTsSFer.w av 'How can I be of service, Ricardo?' DEBUG:client.tts:Executing aplay -D hw:1,0 /tmp/tmpTsSFer.wav DEBUG:client.tts:Output was: 'Playing WAVE '/tmp/tmpTsSFer.wav' : Signed 16 bit Little Endian, Rate 22050 Hz, Mono ' DEBUG:client.brain:Looking for modules in: '/home/pi/jasper/client/modules' DEBUG:client.brain:Found module 'Birthday' with words: ['BIRTHDAY'] DEBUG:client.brain:Found module 'Gmail' with words: ['EMAIL', 'INBOX'] DEBUG:client.brain:Found module 'HN' with words: ['HACKER', 'NEWS', 'YES', 'NO', 'FIRST', 'SECOND', 'THIRD'] DEBUG:client.brain:Found module 'Joke' with words: ['JOKE', 'KNOCK KNOCK'] DEBUG:client.brain:Found module 'Life' with words: ['MEANING', 'OF', 'LIFE'] DEBUG:client.brain:Found module 'MPDControl' with words: ['MUSIC', 'SPOTIFY'] DEBUG:client.brain:Found module 'News' with words: ['NEWS', 'YES', 'NO', 'FIRST' , 'SECOND', 'THIRD'] DEBUG:client.brain:Found module 'Notifications' with words: ['FACEBOOK', 'NOTIFI CATION'] DEBUG:client.brain:Found module 'Time' with words: ['TIME'] DEBUG:client.brain:Found module 'Unclear' with words: [] DEBUG:client.brain:Found module 'Weather' with words: ['WEATHER', 'TODAY', 'TOMO RROW'] INFO:apscheduler.scheduler:Scheduler started DEBUG:apscheduler.scheduler:Looking for jobs to run DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added INFO:apscheduler.scheduler:Added job "Notifier.gather" to job store "default" INFO:client.conversation:Starting to handle conversation with keyword 'JASPER'. DEBUG:client.conversation:Started listening for keyword 'JASPER' DEBUG:apscheduler.scheduler:Looking for jobs to run DEBUG:apscheduler.scheduler:Next wakeup is due at 2014-12-29 22:08:01.990486+00: 00 (in 29.956365 seconds) INFO:client.stt:Transcribed: ['OF'] DEBUG:client.conversation:Stopped listening for keyword 'JASPER' INFO:client.conversation:Nothing has been said or transcribed. DEBUG:client.conversation:Started listening for keyword 'JASPER' INFO:client.stt:Transcribed: [''] DEBUG:client.conversation:Stopped listening for keyword 'JASPER' INFO:client.conversation:Nothing has been said or transcribed. DEBUG:client.conversation:Started listening for keyword 'JASPER' INFO:client.stt:Transcribed: ['IT'] DEBUG:client.conversation:Stopped listening for keyword 'JASPER' INFO:client.conversation:Nothing has been said or transcribed. DEBUG:client.conversation:Started listening for keyword 'JASPER' INFO:client.stt:Transcribed: [''] DEBUG:client.conversation:Stopped listening for keyword 'JASPER' INFO:client.conversation:Nothing has been said or transcribed. DEBUG:client.conversation:Started listening for keyword 'JASPER' INFO:client.stt:Transcribed: ['IT'] DEBUG:client.conversation:Stopped listening for keyword 'JASPER' INFO:client.conversation:Nothing has been said or transcribed. DEBUG:client.conversation:Started listening for keyword 'JASPER' INFO:client.stt:Transcribed: [''] DEBUG:client.conversation:Stopped listening for keyword 'JASPER' INFO:client.conversation:Nothing has been said or transcribed. DEBUG:client.conversation:Started listening for keyword 'JASPER' INFO:client.stt:Transcribed: ['JASPER IT'] DEBUG:client.conversation:Stopped listening for keyword 'JASPER' INFO:client.conversation:Keyword 'JASPER' has been said! DEBUG:client.conversation:Started to listen actively with threshold: 590.4 DEBUG:client.tts:Executing aplay -D hw:1,0 /home/pi/jasper/static/audio/beep_hi. wav DEBUG:client.tts:Output was: 'Playing WAVE '/home/pi/jasper/static/audio/beep_hi .wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo ' DEBUG:client.tts:Executing aplay -D hw:1,0 /home/pi/jasper/static/audio/beep_lo. wav DEBUG:client.tts:Output was: 'Playing WAVE '/home/pi/jasper/static/audio/beep_lo .wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo ' INFO:client.stt:Transcribed: ['HACKER TIME'] DEBUG:client.conversation:Stopped to listen actively with threshold: 590.4 DEBUG:client.brain:'HACKER TIME' is a valid phrase for module 'HN' DEBUG:client.tts:Saying 'Pulling up some stories.' with 'espeak-tts' DEBUG:client.tts:Executing espeak -v default+m3 -p 40 -s 160 -w /tmp/tmpsaDXAb.w av 'Pulling up some stories.' DEBUG:client.tts:Executing aplay -D hw:1,0 /tmp/tmpsaDXAb.wav DEBUG:client.tts:Output was: 'Playing WAVE '/tmp/tmpsaDXAb.wav' : Signed 16 bit Little Endian, Rate 22050 Hz, Mono ' DEBUG:apscheduler.scheduler:Looking for jobs to run DEBUG:apscheduler.scheduler:Next wakeup is due at 2014-12-29 22:08:31.990486+00: 00 (in 29.992094 seconds) INFO:apscheduler.executors.default:Running job "Notifier.gather (trigger: interv al[0:00:30], next run at: 2014-12-29 22:08:31 UTC)" (scheduled at 2014-12-29 22: 08:01.990486+00:00) DEBUG:client.tts:Saying 'Here are some front-page articles. 1) Software engineer s should write... 2) Classic NES Series Anti-Emulation Measures... 3) Some gripe s about nacl' with 'espeak-tts' DEBUG:client.tts:Executing espeak -v default+m3 -p 40 -s 160 -w /tmp/tmpWvYTpS.w av 'Here are some front-page articles. 1) Software engineers should write... 2) Classic NES Series Anti-Emulation Measures... 3) Some gripes about nacl' DEBUG:client.tts:Executing aplay -D hw:1,0 /tmp/tmpWvYTpS.wav DEBUG:client.tts:Output was: 'Playing WAVE '/tmp/tmpWvYTpS.wav' : Signed 16 bit Little Endian, Rate 22050 Hz, Mono ' DEBUG:client.brain:Handling of phrase 'HACKER TIME' by module 'HN' completed DEBUG:client.conversation:Started listening for keyword 'JASPER' INFO:client.stt:Transcribed: ['IT'] DEBUG:client.conversation:Stopped listening for keyword 'JASPER' INFO:client.conversation:Nothing has been said or transcribed. DEBUG:client.conversation:Started listening for keyword 'JASPER' INFO:client.stt:Transcribed: [''] DEBUG:client.conversation:Stopped listening for keyword 'JASPER' INFO:client.conversation:Nothing has been said or transcribed. DEBUG:client.conversation:Started listening for keyword 'JASPER' INFO:client.stt:Transcribed: ['IT'] DEBUG:client.conversation:Stopped listening for keyword 'JASPER' INFO:client.conversation:Nothing has been said or transcribed. DEBUG:client.conversation:Started listening for keyword 'JASPER' INFO:client.stt:Transcribed: ['WITH'] DEBUG:client.conversation:Stopped listening for keyword 'JASPER' INFO:client.conversation:Nothing has been said or transcribed. DEBUG:client.conversation:Started listening for keyword 'JASPER' INFO:client.stt:Transcribed: [''] DEBUG:client.conversation:Stopped listening for keyword 'JASPER' INFO:client.conversation:Nothing has been said or transcribed. DEBUG:client.conversation:Started listening for keyword 'JASPER' Traceback (most recent call last): File "/home/pi/jasper/jasper.py", line 142, in app.run() File "/home/pi/jasper/jasper.py", line 112, in run conversation.handleForever() File "/home/pi/jasper/client/conversation.py", line 31, in handleForever threshold, transcribed = self.mic.passiveListen(self.persona) File "/home/pi/jasper/client/mic.py", line 163, in passiveListen data = stream.read(CHUNK) File "/usr/lib/pymodules/python2.7/pyaudio.py", line 564, in read return pa.read_stream(self._stream, num_frames) IOError: [Errno Input overflowed] -9981 INFO:apscheduler.scheduler:Scheduler has been shut down ERROR:apscheduler.executors.default:Job "Notifier.gather (trigger: interval[0:00 :30], next run at: 2014-12-29 22:08:31 UTC)" raised an exception Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/apscheduler/executors/base.py", l ine 108, in run_job retval = job.func(_job.args, _job.kwargs) File "/home/pi/jasper/client/notifier.py", line 39, in gather [client.run() for client in self.notifiers] File "/home/pi/jasper/client/notifier.py", line 18, in run self.timestamp = self.gather(self.timestamp) File "/home/pi/jasper/client/notifier.py", line 45, in handleEmailNotification s lastDate = Gmail.getMostRecentDate(emails) File "/home/pi/jasper/client/modules/Gmail.py", line 41, in getMostRecentDate dates = [getDate(e) for e in emails] File "/home/pi/jasper/client/modules/Gmail.py", line 28, in getDate return parser.parse(email.get('date')) File "/usr/local/lib/python2.7/dist-packages/dateutil/parser.py", line 743, in parse return DEFAULTPARSER.parse(timestr, _kwargs) File "/usr/local/lib/python2.7/dist-packages/dateutil/parser.py", line 300, in parse res = self._parse(timestr, *_kwargs) File "/usr/local/lib/python2.7/dist-packages/dateutil/parser.py", line 358, in _parse l = _timelex.split(timestr) File "/usr/local/lib/python2.7/dist-packages/dateutil/parser.py", line 139, in split return list(cls(s)) File "/usr/local/lib/python2.7/dist-packages/dateutil/parser.py", line 136, in next return self.next() # Python 2.x support File "/usr/local/lib/python2.7/dist-packages/dateutil/parser.py", line 130, in next token = self.get_token() File "/usr/local/lib/python2.7/dist-packages/dateutil/parser.py", line 61, in get_token nextchar = self.instream.read(1) AttributeError: 'NoneType' object has no attribute 'read' Exception RuntimeError: 'Set changed size during iteration' in <bound method Mic .del of <client.mic.Mic instance at 0x1fb21e8>> ignored

JonnyAlpha commented 9 years ago

Same issue here i'm afraid. This issue was happening a lot sooner but having had some feedback with an earlier version of Jasper where someone suggested this may have something to do with too many unread emails I extended the seconds in definit(Self, profile): in Notifier.py from 30 to 180. This seems to delay the problem. I checked my email account and found 554 unread emails (I thought I had cleared my emails to see if this cleared the problem ). I have just cleared all my unread emails and Jasper has been running whilst I have been typing this but has just crashed :-( What happens is that he works fine (albeit with some playback issues in JOKE) and then I get an IOError 9981 Japser then freezes for a while and then finally crashes and exits back to the terminal prompt.

Should I start a new issue or post the debug here. Debug is very similar as posted above apart from the second to last line which reads: ValueError: unknown string format

Holzhaus commented 9 years ago

Can You temporarily comment out your gmail_address in your profile.yml and try again? This way we can see if it's an issue with the Gmail notifier.

JonnyAlpha commented 9 years ago

Holzhaus - I am away on a UNI course for a week so will try this when I get back on Fri.

tonylu880042 commented 9 years ago

I have same issue, here is my debug log message, Most of time when I start the Jasper for 1 minute and do nothing with it then the IOError will comes out, My gmail have lots of unread messages. Is this matter ?

pi@raspberrypi ~/jasper $ ./jasper.py --debug

JASPER The Talking Computer

Copyright 2013 Shubhro Saha & Charlie Marsh

DEBUG:client.diagnose:Checking network connection to server 'www.google.com'... DEBUG:client.diagnose:Network connection working DEBUG:main:Trying to read config file: '/home/pi/.jasper/profile.yml' DEBUG:client.diagnose:Checking python import 'pocketsphinx'... DEBUG:client.diagnose:Python module 'pocketsphinx' found: '/usr/local/lib/python2.7/dist-packages/pocketsphinx.so' WARNING:root:tts_engine not specified in profile, defaulting to 'espeak-tts' DEBUG:client.diagnose:Checking executable 'aplay'... DEBUG:client.diagnose:Executable 'aplay' found: '/usr/bin/aplay' DEBUG:client.diagnose:Checking executable 'espeak'... DEBUG:client.diagnose:Executable 'espeak' found: '/usr/bin/espeak' DEBUG:client.vocabcompiler:compiled_revision is 'bb74ae36d130ef20de710e3a77b43424b8fa774f' DEBUG:client.brain:Looking for modules in: '/home/pi/jasper/client/modules' DEBUG:client.brain:Found module 'Birthday' with words: ['BIRTHDAY'] DEBUG:client.brain:Found module 'Gmail' with words: ['EMAIL', 'INBOX'] DEBUG:client.brain:Found module 'HN' with words: ['HACKER', 'NEWS', 'YES', 'NO', 'FIRST', 'SECOND', 'THIRD'] DEBUG:client.brain:Found module 'Joke' with words: ['JOKE', 'KNOCK KNOCK'] DEBUG:client.brain:Found module 'Life' with words: ['MEANING', 'OF', 'LIFE'] DEBUG:client.brain:Found module 'MPDControl' with words: ['MUSIC', 'SPOTIFY'] DEBUG:client.brain:Found module 'News' with words: ['NEWS', 'YES', 'NO', 'FIRST', 'SECOND', 'THIRD'] DEBUG:client.brain:Found module 'Notifications' with words: ['FACEBOOK', 'NOTIFICATION'] DEBUG:client.brain:Found module 'Time' with words: ['TIME'] DEBUG:client.brain:Found module 'Unclear' with words: [] DEBUG:client.brain:Found module 'Weather' with words: ['WEATHER', 'TODAY', 'TOMORROW'] DEBUG:client.vocabcompiler:compiled_revision is '8c0e66f387b7177205726ecfcb3edd9df0d23653' INFO:client.mic:Initializing PyAudio. ALSA/Jack error messages that pop up during this process are normal and can usually be safely ignored. ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only playback stream ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave INFO:client.mic:Initialization of PyAudio completed. DEBUG:client.tts:Saying 'How can I be of service, tony?' with 'espeak-tts' DEBUG:client.tts:Executing espeak -v default+m3 -p 40 -s 160 -w /tmp/tmpzAqmnw.wav 'How can I be of service, tony?' DEBUG:client.tts:Executing aplay -D hw:1,0 /tmp/tmpzAqmnw.wav DEBUG:client.tts:Output was: 'Playing WAVE '/tmp/tmpzAqmnw.wav' : Signed 16 bit Little Endian, Rate 22050 Hz, Mono ' DEBUG:client.brain:Looking for modules in: '/home/pi/jasper/client/modules' DEBUG:client.brain:Found module 'Birthday' with words: ['BIRTHDAY'] DEBUG:client.brain:Found module 'Gmail' with words: ['EMAIL', 'INBOX'] DEBUG:client.brain:Found module 'HN' with words: ['HACKER', 'NEWS', 'YES', 'NO', 'FIRST', 'SECOND', 'THIRD'] DEBUG:client.brain:Found module 'Joke' with words: ['JOKE', 'KNOCK KNOCK'] DEBUG:client.brain:Found module 'Life' with words: ['MEANING', 'OF', 'LIFE'] DEBUG:client.brain:Found module 'MPDControl' with words: ['MUSIC', 'SPOTIFY'] DEBUG:client.brain:Found module 'News' with words: ['NEWS', 'YES', 'NO', 'FIRST', 'SECOND', 'THIRD'] DEBUG:client.brain:Found module 'Notifications' with words: ['FACEBOOK', 'NOTIFICATION'] DEBUG:client.brain:Found module 'Time' with words: ['TIME'] DEBUG:client.brain:Found module 'Unclear' with words: [] DEBUG:client.brain:Found module 'Weather' with words: ['WEATHER', 'TODAY', 'TOMORROW'] INFO:apscheduler.scheduler:Scheduler started DEBUG:apscheduler.scheduler:Looking for jobs to run DEBUG:apscheduler.scheduler:No jobs; waiting until a job is added INFO:apscheduler.scheduler:Added job "Notifier.gather" to job store "default" INFO:client.conversation:Starting to handle conversation with keyword 'JASPER'. DEBUG:client.conversation:Started listening for keyword 'JASPER' DEBUG:apscheduler.scheduler:Looking for jobs to run DEBUG:apscheduler.scheduler:Next wakeup is due at 2015-01-05 23:08:23.048121+00:00 (in 29.905252 seconds) INFO:client.stt:Transcribed: ['BUT'] DEBUG:client.conversation:Stopped listening for keyword 'JASPER' INFO:client.conversation:Nothing has been said or transcribed. DEBUG:client.conversation:Started listening for keyword 'JASPER' INFO:client.stt:Transcribed: ['WITH'] DEBUG:client.conversation:Stopped listening for keyword 'JASPER' INFO:client.conversation:Nothing has been said or transcribed. DEBUG:client.conversation:Started listening for keyword 'JASPER' INFO:client.stt:Transcribed: ['WITH'] DEBUG:client.conversation:Stopped listening for keyword 'JASPER' INFO:client.conversation:Nothing has been said or transcribed. DEBUG:client.conversation:Started listening for keyword 'JASPER' Traceback (most recent call last): File "./jasper.py", line 142, in app.run() File "./jasper.py", line 112, in run conversation.handleForever() File "/home/pi/jasper/client/conversation.py", line 31, in handleForever threshold, transcribed = self.mic.passiveListen(self.persona) File "/home/pi/jasper/client/mic.py", line 163, in passiveListen data = stream.read(CHUNK) File "/usr/lib/pymodules/python2.7/pyaudio.py", line 564, in read return pa.read_stream(self._stream, num_frames) IOError: [Errno Input overflowed] -9981 INFO:apscheduler.scheduler:Scheduler has been shut down Exception RuntimeError: 'Set changed size during iteration' in <bound method Mic.del of <client.mic.Mic instance at 0x284c8a0>> ignored

Holzhaus commented 9 years ago

Probably. Can you test this and tell me if the problem persists: https://github.com/jasperproject/jasper-client/issues/240#issuecomment-68682266

tonylu880042 commented 9 years ago

hi, I have same issue, but after I comment out the gmail setting the system works better although there still have other problem. Best regards, tony

Holzhaus commented 9 years ago

If you comment it out, Jasper is not crashing because of IOError: [Errno Input overflowed] -9981?

tonylu880042 commented 9 years ago

yeap, so far it is.

Holzhaus commented 9 years ago

So there is some bug in the Gmail notifier. Strange.

Saxifraga commented 9 years ago

Has any progress been made on this issue? I am having the same problem, which persists even after commenting out my gmail address in profile.yml.