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

import pytorch_ctc error #8

Closed
bliunlpr opened this issue Jul 6, 2017 · 4 comments
Closed

import pytorch_ctc error #8

bliunlpr opened this issue Jul 6, 2017 · 4 comments

Comments

@bliunlpr
Copy link

bliunlpr commented Jul 6, 2017

I have installed pytorch_ctc,but got the import error.

from pytorch_ctc import CTCBeamDecoder as CTCBD
Traceback (most recent call last):
File "", line 1, in
File "/home/bliu/anaconda3/lib/python3.5/site-packages/pytorch_ctc/init.py", line 4, in
from ._ctc_decode import lib as _lib, ffi as _ffi
ImportError: /home/bliu/anaconda3/lib/python3.5/site-packages/pytorch_ctc/_ctc_decode.cpython-35m-x86_64-linux-gnu.so: undefined symbol: _ZTVNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE

@ryanleary
Copy link
Collaborator

Can you tell me what compiler is used and which version of libstdc++?

@bliunlpr
Copy link
Author

bliunlpr commented Jul 6, 2017

I used CC=/usr/bin/gcc-5 CXX=/usr/bin/g++-5 python setup.py install.
I have no idea which version of libstdc++. How can I check this ? Thanks!

@SiddGururani
Copy link

I got a similar error but then I rebuilt using sudo and it worked. Not very insightful but give it a shot if you've not already done so.

@ryanleary
Copy link
Collaborator

I think the recent build changes should solve this.

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