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 warpctc_tensorflow error::kernels.cpython-35m-x86_64-linux-gnu.so: undefined symbol: #92

Open
gnnbest opened this issue Aug 30, 2017 · 15 comments

Comments

@gnnbest
Copy link

gnnbest commented Aug 30, 2017

run python setup.py install is ok but when I ran python setup.py test it had errors::
I used python3 and tensorflow 1.3.0 gpu version

Traceback (most recent call last):
File "lstm_warpCTC.py", line 10, in
import warpctc_tensorflow
File "/home/gunn/.local/lib/python3.5/site-packages/warpctc_tensorflow-0.1-py3.5-linux-x86_64.egg/warpctc_tensorflow/init.py", line 7, in
_warpctc = tf.load_op_library(lib_file)
File "/home/gunn/.local/lib/python3.5/site-packages/tensorflow/python/framework/load_library.py", line 64, in load_op_library
None, None, error_msg, error_code)
tensorflow.python.framework.errors_impl.NotFoundError: /home/gunn/.local/lib/python3.5/site-packages/warpctc_tensorflow-0.1-py3.5-linux-x86_64.egg/warpctc_tensorflow/kernels.cpython-35m-x86_64-linux-gnu.so: undefined symbol: _ZNK10tensorflow14TensorShapeRep11DebugStringB5cxx11Ev

@nickwind
Copy link

same issue for me

@chenchu-zs
Copy link

similar issue for me, too.
tensorflow.python.framework.errors_impl.NotFoundError: /home/shuzhan1/workspace/warp-ctc/tensorflow_binding/warpctc_tensorflow/kernels.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZTIN10tensorflow8OpKernelE

@hookover
Copy link

me too ..

@vankrelian
Copy link

vankrelian commented Nov 26, 2017

same

/warp-ctc/tensorflow_binding/warpctc_tensorflow/kernels.so: undefined symbol: _ZTIN10tensorflow8OpKernelE

EDIT1: I found out that this error only occurs with tensorflow 1.4. So, any plans to support tensorflow 1.4 and the upcoming 1.5?

@wellescastro
Copy link

Same to me in TF 1.4

@struCoder
Copy link

struCoder commented Dec 21, 2017

ME TOO...

tensorflow.python.framework.errors_impl.NotFoundError: /home/xx/ky/warp-ctc/tensorflow_binding/warpctc_tensorflow/kernels.cpython-35m-x86_64-linux-gnu.so: undefined symbol: _ZNK10tensorflow14TensorShapeRep11DebugStringB5cxx11Ev

TF: 1.3.0
python: 3.5

@standy66
Copy link

standy66 commented Dec 25, 2017

Passing additional

extra_link_args=['-L' + tf.sysconfig.get_lib(), '-ltensorflow_framework']

to setuptools.Extension parameters in setup.py works for me (TF 1.4)

@huizhang0110
Copy link

same to me

tensorflow.python.framework.errors_impl.NotFoundError: /home/zhui/src-code/warp-ctc/tensorflow_binding/warpctc_tensorflow/kernels.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZTIN10tensorflow8OpKernelE

@gccrpm
Copy link

gccrpm commented Feb 5, 2018

anyone solved this problem? the same:
warpctc_tensorflow/kernels.so: undefined symbol: _ZTIN10tensorflow8OpKernelE

@engrean
Copy link

engrean commented Apr 10, 2018

Same for me on tensorflow 1.7.0
kernels.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZTIN10tensorflow8OpKernelE
I am using anaconda.

@chenchu-zs
Copy link

I solved. Add 'tensorflow_framework' to libraries, the issue will be fixed.

ext = setuptools.Extension('warpctc_tensorflow.kernels',
                           sources = lib_srcs,
                           language = 'c++',
                           include_dirs = include_dirs,
                           library_dirs = [warp_ctc_path],
                           runtime_library_dirs = [os.path.realpath(warp_ctc_path)],
                           libraries = ['warpctc', 'tensorflow_framework'],
                           extra_compile_args = extra_compile_args)

@struCoder
Copy link

@sherry-zhang
I installed tensorflow by pip, follow your steps i got this wrong:
can not foud -ltensorflow_framework

@chenchu-zs
Copy link

chenchu-zs commented Apr 11, 2018

@struCoder it only works when you build tensorflow from source

@TheJaeLal
Copy link

TheJaeLal commented Apr 16, 2018

I built tensorflow 1.7 from source and still getting the same error
The 'TENSORFLOW_SRC_PATH' environment variable, should it point to (git cloned) tensorflow source code, or the installed tensorflow directory?
@sherry-zhang can you tell the exact steps you used?

@HawkAaron
Copy link
Contributor

Please follow the instructions here:
https://github.com/HawkAaron/warp-ctc/blob/pytorch_bindings/tensorflow_binding/setup.py#L60

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