kaldi-python icon indicating copy to clipboard operation
kaldi-python copied to clipboard

ImportError: kaldi_io/kaldi_io_internal.so: undefined symbol: _ZN5kaldi9SemaphoreD1Ev

Open gray0302 opened this issue 8 years ago • 4 comments

import kaldi_io Traceback (most recent call last): File "", line 1, in File "kaldi_io/init.py", line 243, in from kaldi_io_internal import * ImportError: kaldi_io/kaldi_io_internal.so: undefined symbol: _ZN5kaldi9SemaphoreD1Ev when I import kaldi_io, I encountered the problem. Could you help me solve it, thank you very much.

gray0302 avatar Aug 09 '17 08:08 gray0302

Check that you compiled a shared library for kaldi. Try to add it to your LD_LIBRARY_PATH.

dmitriy-serdyuk avatar Sep 21 '17 00:09 dmitriy-serdyuk

ImportError Traceback (most recent call last) in () ----> 1 import kaldi_io

/usr/lib/python2.7/site-packages/kaldi_io/init.py in () 241 242 import numpy as np --> 243 from kaldi_io_internal import * 244 245 if KALDI_BASE_FLOAT()==np.float64:

ImportError: /usr/lib/python2.7/site-packages/kaldi_io/kaldi_io_internal.so: undefined symbol: _ZN5kaldi9SemaphoreD1Ev

I add the kaldi_io_internal.so to LD_LIBRARY_PATH, but the issue is still.

gray0302 avatar Sep 21 '17 09:09 gray0302

I can suggest to rebuild kaldi, maybe issue is there. Check if there were errors during the setup of kaldi-python (run it in verbose mode).

dmitriy-serdyuk avatar Sep 21 '17 17:09 dmitriy-serdyuk

I encountered the same problem. I rebuilt the kaldi with configure --share. And I also add the kaldi_io_internal.so to python3.5/site-packages/.

YichiHuang avatar Oct 18 '17 07:10 YichiHuang