Facing problem with installation on python3i
Created by: VaibhavHiwase
I am facing problem in installation of DeepSpeech2 model in python3.5.2. Speciallfically problem comes from DeepSpeech-develop/decoders/swig/swig_decoders.py which could not find _swig_decoders.py due to scorer.h:9:33: fatal error: lm/enumerate_vocab.hh: No such file or directory
Error messages as follows while doing setup from /DeepSpeech-develop/decoders/swig/setup.py: DeepSpeech-develop/decoders/swig$ sudo python3 setup.py install scorer.h:22: Warning 401: Nothing known about base class 'lm::EnumerateVocab'. Ignored. running install running bdist_egg running egg_info creating swig_decoders.egg-info writing top-level names to swig_decoders.egg-info/top_level.txt writing dependency_links to swig_decoders.egg-info/dependency_links.txt writing swig_decoders.egg-info/PKG-INFO writing manifest file 'swig_decoders.egg-info/SOURCES.txt' reading manifest file 'swig_decoders.egg-info/SOURCES.txt' writing manifest file 'swig_decoders.egg-info/SOURCES.txt' installing library code to build/bdist.linux-x86_64/egg running install_lib running build_py creating build creating build/lib.linux-x86_64-3.5 copying swig_decoders.py -> build/lib.linux-x86_64-3.5 running build_ext building '_swig_decoders' extension creating build/temp.linux-x86_64-3.5 x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I. -Ikenlm -Iopenfst-1.6.3/src/include -IThreadPool -I/usr/include/python3.5m -c decoders_wrap.cxx -o build/temp.linux-x86_64-3.5/decoders_wrap.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB -DHAVE_XZLIB cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ In file included from decoders_wrap.cxx:2806:0: scorer.h:9:33: fatal error: lm/enumerate_vocab.hh: No such file or directory compilation terminated. x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I. -Ikenlm -Iopenfst-1.6.3/src/include -IThreadPool -I/usr/include/python3.5m -c decoder_utils.cpp -o build/temp.linux-x86_64-3.5/decoder_utils.o -O3 -DNDEBUG -DKENLM_MAX_ORDER=6 -std=c++11 -DHAVE_ZLIB -DHAVE_BZLIB -DHAVE_XZLIB error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
When I am trying to run infer.py form python3 it is giving me following error: python3 infer.py Traceback (most recent call last): File "infer.py", line 14, in from model_utils.model import DeepSpeech2Model File "/DeepSpeech-develop/model_utils/model.py", line 20, in from decoders.swig_wrapper import Scorer File "/DeepSpeech-develop/decoders/swig_wrapper.py", line 6, in from .swig import swig_decoders File "/DeepSpeech-develop/decoders/swig/swig_decoders.py", line 13, in from . import _swig_decoders