dmitriy-serdyuk / kaldi-python

Python wrappers for Kaldi data
Apache License 2.0
33 stars 17 forks source link

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

Open gray0302 opened 7 years ago

gray0302 commented 7 years ago

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.

dmitriy-serdyuk commented 7 years ago

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

gray0302 commented 7 years ago

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.
dmitriy-serdyuk commented 7 years ago

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).

YichiHuang commented 6 years ago

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/.