bgshih / seglink

Detecting text by linking segments.
245 stars 74 forks source link

undefined symbol: _ZTIN10tensorflow8OpKernelE #14

Open TenTen-Teng opened 6 years ago

TenTen-Teng commented 6 years ago

When I run "./manage.py train exp/sgd pretrain", the error shows: Traceback (most recent call last): File "solver.py", line 12, in import model File "/home/tengli1107/seglink/seglink/model.py", line 6, in import ops File "/home/tengli1107/seglink/seglink/ops.py", line 188, in oplib = load_oplib(LIB_NAME) File "/home/tengli1107/seglink/seglink/ops.py", line 22, in load_oplib oplib = tf.load_op_library(lib_copy_path) File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/framework/load_library.py", line 56, in load_op_library lib_handle = py_tf.TF_LoadLibrary(library_filename) tensorflow.python.framework.errors_impl.NotFoundError: /tmp/lib956d0286_seglink.so: undefined symbol: _ZTIN10tensorflow8OpKernelE

How can I solve this problem? I'm using ubuntu16.04, tensorflow 1.8, gcc 5.4. I also tried on ubuntu 14.04, still got the same problem.

Thank you

MatiasKopp commented 6 years ago

Hi, I ran into the same problem yesterday. I solved it by uninstalling tensorflow and reinstalling it at version 1.3 with: pip install tensorflow==1.3

TenTen-Teng commented 6 years ago

@MatiasKopp Thank you so much. Your solution works on me. However, after reinstalling tensorflow, there's another error comes up: undefined symbol: _ZN10tensorflow20OpKernelConstruction21CtxFailureWithWarningEPKciRKNS_6StatusE Do you know how to solve this?

FakerYFX commented 6 years ago

I meet the same problem: tensorflow.python.framework.errors_impl.NotFoundError: /data/20180809/tmp/libca051180_seglink.so: undefined symbol: _ZTIN10tensorflow8OpKernelE @bgshih @TenTen-Teng @MatiasKopp

Bachelorwangwei commented 5 years ago

@MatiasKopp when i reinstall the tensorflow==1.3.0, i meet the same error as @TenTen-Teng 。 Did you meet this situation and how to solve this problem?

Shualite commented 5 years ago

https://github.com/yulequan/PU-Net/issues/5 maybe we should recompile the .so file or re-install tensorflow <1.4

TangLinJie commented 4 years ago

I meet the same error as @TenTen-Teng, I solve this question by using tensorflow-gpu==1.0.0 with python3.5 cudnn5.1 cuda8.0.

Donaghys commented 3 years ago

请问不更换版本的前提下这个问题如何解决?