jcsilva / docker-kaldi-gstreamer-server

Dockerfile for kaldi-gstreamer-server.
BSD 2-Clause "Simplified" License
289 stars 139 forks source link

Can't run worker.py - terminating with runtimeerror #57

Closed raeidsaqur closed 5 years ago

raeidsaqur commented 5 years ago

Hi, Thanks a lot for putting this up - much appreciated.

I'm running into this weird runtime error when running the worker.py. (Note master.py works fine).

Here's my worker.log snippet (please let me know if you see anything obvious):

2019-02-21 08:56:32 - INFO: decoder2: Created GStreamer elements 2019-02-21 08:56:32 - DEBUG: decoder2: Adding <main.GstAppSrc object at 0x7fa52d7e83c0 (GstAppSrc at 0x1a873b0)> to the pipeline 2019-02-21 08:56:32 - DEBUG: decoder2: Adding <main.GstDecodeBin object at 0x7fa52d7e8500 (GstDecodeBin at 0x1aec060)> to the pipeline 2019-02-21 08:56:32 - DEBUG: decoder2: Adding <main.GstAudioConvert object at 0x7fa52d7e8370 (GstAudioConvert at 0x1af50d0)> to the pipeline 2019-02-21 08:56:32 - DEBUG: decoder2: Adding <main.GstAudioResample object at 0x7fa52d7e84b0 (GstAudioResample at 0x18e1f70)> to the pipeline 2019-02-21 08:56:32 - DEBUG: decoder2: Adding <main.GstTee object at 0x7fa52d7e8410 (GstTee at 0x1b03000)> to the pipeline 2019-02-21 08:56:32 - DEBUG: decoder2: Adding <main.GstQueue object at 0x7fa52d7e8460 (GstQueue at 0x1b06170)> to the pipeline 2019-02-21 08:56:32 - DEBUG: decoder2: Adding <main.GstFileSink object at 0x7fa52d7e8550 (GstFileSink at 0x1b09c00)> to the pipeline 2019-02-21 08:56:32 - DEBUG: decoder2: Adding <main.GstQueue object at 0x7fa52d7e85a0 (GstQueue at 0x1b06460)> to the pipeline 2019-02-21 08:56:32 - DEBUG: decoder2: Adding <main.Gstkaldinnet2onlinedecoder object at 0x7fa52d7e85f0 (Gstkaldinnet2onlinedecoder at 0x1b22150)> to the pipeline 2019-02-21 08:56:32 - DEBUG: decoder2: Adding <main.GstFakeSink object at 0x7fa52d7e8640 (GstFakeSink at 0x1b21a10)> to the pipeline 2019-02-21 08:56:32 - INFO: decoder2: Linking GStreamer elements ERROR ([5.4.176~1-be967]:ReadConfigFile():parse-options.cc:469) Cannot open config file: tedlium_nnet_ms_sp_online/conf/mfcc.conf

[ Stack-Trace: ] kaldi::MessageLogger::HandleMessage(kaldi::LogMessageEnvelope const&, char const) kaldi::MessageLogger::~MessageLogger() kaldi::ParseOptions::ReadConfigFile(std::string const&) void kaldi::ReadConfigFromFile(std::string, kaldi::MfccOptions) kaldi::OnlineNnet2FeaturePipelineInfo::OnlineNnet2FeaturePipelineInfo(kaldi::OnlineNnet2FeaturePipelineConfig const&)

gst_pad_query gst_pad_query_caps gst_element_get_compatible_pad gst_element_link_pads_full . . . python() [0x4b988b] PyEval_EvalFrameEx PyEval_EvalFrameEx PyEval_EvalCodeEx python() [0x50160f] PyRun_FileExFlags PyRun_SimpleFileExFlags Py_Main __libc_start_main python() [0x497b8b]

terminate called after throwing an instance of 'std::runtime_error'

raeidsaqur commented 5 years ago

Ok, I figured out the issue after examining the related closed issues :). Basically, tl;dr, the relative paths in the yaml file should right, i didn't note the paths specified in conf folder as well. Now it runs uber!

Thanks again for the docker image - saved a lot of time.