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

运行./wakeup_trigger_start.sh报错 #10

Open
Tracy6465 opened this issue Nov 16, 2017 · 6 comments
Open

运行./wakeup_trigger_start.sh报错 #10

Tracy6465 opened this issue Nov 16, 2017 · 6 comments

Comments

@Tracy6465
Copy link

我看代码里面有snowboydetect这个文件,
Traceback (most recent call last):
File "./app/wakeup_trigger_main.py", line 21, in
from app.snowboy import snowboydecoder
File "/home/chris/DuerOS-Python-Client/app/snowboy/snowboydecoder.py", line 5, in
from . import snowboydetect
snowboydetect
File "/home/chris/DuerOS-Python-Client/app/snowboy/snowboydetect.py", line 20, in
_snowboydetect = swig_import_helper()
File "/home/chris/DuerOS-Python-Client/app/snowboy/snowboydetect.py", line 17, in swig_import_helper
return importlib.import_module('_snowboydetect')
File "/usr/lib/python2.7/importlib/init.py", line 37, in import_module
import(name)
ImportError: No module named _snowboydetect

@pengge
Copy link

pengge commented Nov 21, 2017

需要重新编译snowboy

@yeyupiaoling
Copy link

我也是这个问题,怎么编译:snowboy

@yeyupiaoling
Copy link

@pengge 我是用Ubuntu 16.04桌面版,不是树莓派

@fredliang44
Copy link

https://github.com/kitt-ai/snowboy

Compile a Python Wrapper

cd swig/Python
make

SWIG will generate a _snowboydetect.so file and a simple (but hard-to-read) python wrapper snowboydetect.py. We have provided a higher level python wrapper snowboydecoder.py on top of that.

Feel free to adapt the Makefile in swig/Python to your own system's setting if you cannot make it.

@happysmile12321
Copy link

我也是这个问题,怎么编译:snowboy

你编译好了吗?我是arch linux。虽然AUR里面有这个包不过下载太慢。我想自己编译发现链接的时候少静态链接库。我想如果你编译成功的话我就从虚拟机的ubuntu里面把那个链接库拿到arch里来。

@yeyupiaoling
Copy link

@happysmile12321 编译过了,不过很久之前的事情了。不是使用虚拟机的,我是在真机上编译的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants