warp-ctc icon indicating copy to clipboard operation
warp-ctc copied to clipboard

import warpctc_tensorflow error::kernels.cpython-35m-x86_64-linux-gnu.so: undefined symbol:

Open gnnbest opened this issue 7 years ago • 15 comments

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

gnnbest avatar Aug 30 '17 08:08 gnnbest

same issue for me

nickwind avatar Oct 31 '17 10:10 nickwind

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

chenchu-zs avatar Nov 08 '17 02:11 chenchu-zs

me too ..

hookover avatar Nov 10 '17 08:11 hookover

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?

vankrelian avatar Nov 26 '17 18:11 vankrelian

Same to me in TF 1.4

wellescastro avatar Dec 04 '17 03:12 wellescastro

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

struCoder avatar Dec 21 '17 11:12 struCoder

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)

standy66 avatar Dec 25 '17 12:12 standy66

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

huizhang0110 avatar Jan 14 '18 09:01 huizhang0110

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

gccrpm avatar Feb 05 '18 11:02 gccrpm

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

engrean avatar Apr 10 '18 15:04 engrean

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)

chenchu-zs avatar Apr 11 '18 01:04 chenchu-zs

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

struCoder avatar Apr 11 '18 03:04 struCoder

@struCoder it only works when you build tensorflow from source

chenchu-zs avatar Apr 11 '18 03:04 chenchu-zs

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?

TheJaeLal avatar Apr 16 '18 13:04 TheJaeLal

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

HawkAaron avatar May 29 '18 05:05 HawkAaron