-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
troubleshooting
HaHack edited this page Feb 5, 2019
·
12 revisions
Traceback (most recent call last):
File "wukong.py", line 2, in
from snowboy import snowboydecoder
File "/home/pi/wukong-robot/snowboy/snowboydecoder.py", line 5, in
from . import snowboydetect
File "/home/pi/wukong-robot/snowboy/snowboydetect.py", line 17, in
_snowboydetect = swig_import_helper()
File "/home/pi/wukong-robot/snowboy/snowboydetect.py", line 16, 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
答:你需要确保两个事情:
- 使用 Python 3 执行本程序;
- 确保用上了平台可用的 _snowboydetect.so 包。建议自行编译一个。