warp-ctc
warp-ctc copied to clipboard
import warpctc_tensorflow error::kernels.cpython-35m-x86_64-linux-gnu.so: undefined symbol:
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
same issue for me
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
me too ..
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?
Same to me in TF 1.4
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
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)
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
anyone solved this problem? the same: warpctc_tensorflow/kernels.so: undefined symbol: _ZTIN10tensorflow8OpKernelE
Same for me on tensorflow 1.7.0 kernels.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZTIN10tensorflow8OpKernelE I am using anaconda.
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)
@Sherry-Zhang
I installed tensorflow by pip, follow your steps i got this wrong:
can not foud -ltensorflow_framework
@struCoder it only works when you build tensorflow from source
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?
Please follow the instructions here: https://github.com/HawkAaron/warp-ctc/blob/pytorch_bindings/tensorflow_binding/setup.py#L60