我在运行将Snowboy与Google Assistant链接的命令时遇到问题,我不明白是什么错误以及如何解决此问题,请提供此错误的解决方案
Traceback (most recent call last):
文件“ demo.py”,第1行,在导入snowboydecoder在第7行的“ /home/pi/hestia/snowboy/examples/Python3/snowboydecoder.py”文件中导入snowboydetect在第17行的“ /home/pi/hestia/snowboy/examples/Python3/snowboydetect.py”文件中_snowboydetect = swig_import_helper()swig_import_helper中的第16行的文件“ /home/pi/hestia/snowboy/examples/Python3/snowboydetect.py”返回importlib.import_module('_ snowboydetect')import_module中的文件“ /usr/lib/python2.7/importlib/init.py”,第37行导入(名称)ImportError:动态模块未定义初始化函数(init_snowboydetect)
我有同样的问题。通过使用python2]运行demo.py来修复它
python2 demo.py snowboy.umdl