我在运行连接雪人的命令时遇到了这个问题,我不知道是什么错误,以及如何解决这个错误--请给出一些解决方案
Traceback (most recent call last):文件"demo.py",第1行,导入雪解码器文件"/home/pi/hestia/snowboy/examples/Python3/snowboydecoder.py",第7行,导入雪橇检测文件"/home/pi/hestia/snowboy/examples/Python3/snowboydetect.py",第17行,_snowboydetect = swig_import_helper()文件"/home/pi/hestia/snowboy/examples/Python3/snowboydetect.py",第16行,在swig_import_helper返回importlib.import_module('_snowboydetect')文件importlib.import_module第37行,在import_module 导入(Name) ImportError:动态模块不定义init函数(init_snowboydetect)
发布于 2020-02-14 17:32:53
我也有过同样的问题。通过使用demo.py运行python2来修正它
python2 demo.py snowboy.umdl
https://stackoverflow.com/questions/59962063
复制相似问题