ilovin / lstm_ctc_ocr

Use CTC + tensorflow to OCR
https://ilovin.github.io/2017-04-06/tensorflow-lstm-ctc-ocr/
354 stars 140 forks source link

undefined symbol: _ZTIN10tensorflow8OpKernelE #42

Closed gccrpm closed 6 years ago

gccrpm commented 6 years ago

when run train.sh or test.sh ,i got the error:

from ._conv import register_converters as _register_converters Traceback (most recent call last): File "./lstm/train_net.py", line 13, in from lib.networks.factory import get_network File "./lstm/../lib/networks/init.py", line 1, in from . import factory File "./lstm/../lib/networks/factory.py", line 11, in from .LSTM_train import LSTM_train File "./lstm/../lib/networks/LSTM_train.py", line 2, in from .network import Network File "./lstm/../lib/networks/network.py", line 6, in import warpctc_tensorflow File "/usr/local/lib/python2.7/dist-packages/warpctc_tensorflow-0.1-py2.7-linux-x86_64.egg/warpctc_tensorflow/init.py", line 7, in _warpctc = tf.load_op_library(lib_file) File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/load_library.py", line 56, in load_op_library lib_handle = py_tf.TF_LoadLibrary(library_filename, status) File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/errors_impl.py", line 473, in exit c_api.TF_GetCode(self.status.status)) tensorflow.python.framework.errors_impl.NotFoundError: /usr/local/lib/python2.7/dist-packages/warpctc_tensorflow-0.1-py2.7-linux-x86_64.egg/warpctc_tensorflow/kernels.so: undefined symbol: _ZTIN10tensorflow8OpKernelE

how can i solve this problem ? any advice @ilovin thank you