Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gray0302 opened this issue Aug 9, 2017 · 4 comments

Comments

@gray0302
Copy link

gray0302 commented Aug 9, 2017

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
Copy link
Owner

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

@gray0302
Copy link
Author

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
Copy link
Owner

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants