Closed tiny-tinker closed 8 years ago
Could you try the swig installation commands I pasted here? I suspect it's an issue with swig.
Closing this since the issue was resolved through https://github.com/Kitt-AI/snowboy/issues/17
I also had the Error: TypeError: init() got an unexpected keyword argument 'model_str'
My Setup:
I fixed it running a modified version of the https://github.com/Kitt-AI/snowboy/issues/17#issuecomment-224766173 scipt:
#!/bin/bash
# SWIG is a tool to compile c++ code into Python.
echo "Installing SWIG"
if [ ! -e swig-3.0.7.tar.gz ]; then
wget -T 10 -t 3 \
http://prdownloads.sourceforge.net/swig/swig-3.0.7.tar.gz || exit 1;
fi
tar -xovzf swig-3.0.7.tar.gz || exit 1
ln -s swig-3.0.7 swig
cd swig
# We first have to install PCRE.
if [ ! -e pcre-8.37.tar.gz ]; then
wget -T 10 -t 3 \
https://sourceforge.net/projects/pcre/files/pcre/8.37/pcre-8.37.tar.gz || exit 1;
fi
Tools/pcre-build.sh
./configure --with-pic
make
sudo make install
cd ..
I also installed the needed programs/libs: https://github.com/Kitt-AI/snowboy#ubunturaspberry-pi and compiled snowboy myself (the pre-compiled/provided version had the above error) https://github.com/Kitt-AI/snowboy#compile-a-python-wrapper
@richardfuchs could you give me the link of the pre-compiled version that doesn't work? I should fix that.
@chenguoguo https://s3-us-west-2.amazonaws.com/snowboy/snowboy-releases/rpi-arm-raspbian-8.0-1.0.4.tar.bz2 (Referenced in https://snowboy.kitt.ai/docs in Downloads)
After successfully building from source, I'm running the demo, but ran into this error:
Lines 90s in
snowboydecoder.py
:But looking at snowboydetect.py, the constructor takes a pointer, so I'm not sure what it is complaining about. My python skills aren't great.