【happycool333|开发日记】使用python sdk时报异常
h****3 · h****3 发布于2017-11-06 06:41 浏览:2141 回复:5

ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.HifiberryDac.pcm.front.0:CARD=2'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM front
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.HifiberryDac.pcm.surround51.0:CARD=2'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround21
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.HifiberryDac.pcm.surround51.0:CARD=2'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround21
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.HifiberryDac.pcm.surround40.0:CARD=2'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround40
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.HifiberryDac.pcm.surround51.0:CARD=2'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround41
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.HifiberryDac.pcm.surround51.0:CARD=2'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround50
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.HifiberryDac.pcm.surround51.0:CARD=2'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround51
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.HifiberryDac.pcm.surround71.0:CARD=2'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM surround71
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.HifiberryDac.pcm.iec958.0:CARD=2,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM iec958
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.HifiberryDac.pcm.iec958.0:CARD=2,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM spdif
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.HifiberryDac.pcm.iec958.0:CARD=2,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4259:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4738:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM spdif
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

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:hyper.http20.connection:Received unhandled event <RemoteSettingsChanged changed_settings:{ChangedSetting(setting=SettingCodes.MAX_CONCURRENT_STREAMS, original_value=None, new_value=200), ChangedSetting(setting=SettingCodes._max_frame_size, original_value=16384, new_value=1048576), ChangedSetting(setting=SettingCodes._max_header_list_size, original_value=None, new_value=1048896)}>
INFO:hyper.http20.connection:Received unhandled event <SettingsAcknowledged changed_settings:{ChangedSetting(setting=SettingCodes.ENABLE_PUSH, original_value=1, new_value=0)}>
INFO:hyper.http20.connection:Received unhandled event <SettingsAcknowledged changed_settings:{}>
INFO:sdk.dueros_core:wait for response
INFO:hyper.http20.connection:Received unhandled event <WindowUpdated stream_id:0, delta:933>
INFO:hyper.http20.connection:Received unhandled event <WindowUpdated stream_id:3, delta:933>
INFO:hyper.http20.connection:Received unhandled event <WindowUpdated stream_id:0, delta:24>
INFO:sdk.dueros_core:status code: 204
^CTraceback (most recent call last):
  File "./app/wakeup_trigger_main.py", line 228, in <module>
    main()
  File "./app/wakeup_trigger_main.py", line 224, in main
    snowboy.stop()
  File "./app/wakeup_trigger_main.py", line 73, in stop
    self.detector.terminate()
  File "/home/pi/git/DuerOS-Python-Client/app/snowboy/snowboydecoder.py", line 189, in terminate
    self.stream_in.stop_stream()
AttributeError: 'HotwordDetector' object has no attribute 'stream_in'

点赞  ( 0 )
收藏
评论(5)
共5条回复 最后由D****豚回复于2018-03-05 20:16
#2h****3回复于2017-11-06 06:42:45

但是, 通过sudo systemctl start duer启动镜像的小度,是可以使用,没有问题的。

0
#3h****3回复于2017-11-07 06:55:02

今早,把音箱线从dueros板子上插到树莓派的耳机孔。

可以唤醒和查询天气了。由此看,上面ALSA的错误日志没有影响,可以忽略。

官方文档应该说明一下。





0
#4g****9回复于2017-11-08 15:34:37

我也有遇到这个错误,不过还是没能唤醒

0
#5b****u回复于2018-03-03 16:28:39

我也是 再也不能唤醒了。。。!!!

0
#6D****豚回复于2018-03-05 20:16:53

您好,感谢您对DuerOS的关注与支持

您的问题已转至技术团队,如有进展再给您答复。


祝您开发愉快

请持续关注DuerOS官方论坛,了解最新资讯;

QQ群.jpg


0
TOP