DeepUPE icon indicating copy to clipboard operation
DeepUPE copied to clipboard

I‘ve already set up this env and 'make' successfuly , but here comes the problem : tensorflow.python.framework.errors_impl.NotFoundError: /home/fudan/Desktop/wsl/DeepUPE/main/lib/hdrnet_ops.so: undefined symbol: _ZTIN10tensorflow8OpKernelE. What's going on?

Open Shunli-Wang opened this issue 5 years ago • 14 comments

here is the error: (env_DeepUPE) fudan@fudan-DGX-Station:~/Desktop/wsl/DeepUPE$ python main/run.py checkpoints /home/fudan/Desktop/wsl/DeepUPE/input/o.jpg /home/fudan/Desktop/wsl/DeepUPE/output/ Traceback (most recent call last): File "main/run.py", line 30, in import models as models File "/home/fudan/Desktop/wsl/DeepUPE/main/models.py", line 21, in from layers import (conv, fc, bilateral_slice_apply) File "/home/fudan/Desktop/wsl/DeepUPE/main/layers.py", line 20, in import hdrnet_ops File "/home/fudan/Desktop/wsl/DeepUPE/main/hdrnet_ops.py", line 28, in _hdrnet = tf.load_op_library('/home/fudan/Desktop/wsl/DeepUPE/main/lib/hdrnet_ops.so') File "/home/fudan/Desktop/wsl/DeepUPE/env_DeepUPE/lib/python3.5/site-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: /home/fudan/Desktop/wsl/DeepUPE/main/lib/hdrnet_ops.so: undefined symbol: _ZTIN10tensorflow8OpKernelE

Shunli-Wang avatar Jul 24 '19 01:07 Shunli-Wang

python 2.7 is needed

jiangxuetao0823 avatar Jul 24 '19 11:07 jiangxuetao0823

my python is 2.7, but i get the same error Traceback (most recent call last): File "main/run.py", line 30, in import models as models File "/home/yunkepan/DeepUPE/main/models.py", line 21, in from layers import (conv, fc, bilateral_slice_apply) File "/home/yunkepan/DeepUPE/main/layers.py", line 20, in import hdrnet_ops File "/home/yunkepan/DeepUPE/main/hdrnet_ops.py", line 27, in _hdrnet = tf.load_op_library(path) File "/home/yunkepan/.local/lib/python2.7/site-packages/tensorflow/python/framework/load_library.py", line 61, in load_op_library lib_handle = py_tf.TF_LoadLibrary(library_filename) tensorflow.python.framework.errors_impl.NotFoundError: /home/yunkepan/DeepUPE/main/lib/hdrnet_ops.so: undefined symbol: _ZTIN10tensorflow8OpKernelE

yinyulin avatar Jul 30 '19 01:07 yinyulin

Something like your GPUDevice is unavailable, not the same as when you make lib

YUSHENWU avatar Jul 31 '19 14:07 YUSHENWU

hello, anyone can help?

stezarpriansya avatar Aug 07 '19 03:08 stezarpriansya

need to link libtensorflow_framework.so

pxEkin avatar Sep 03 '19 03:09 pxEkin

need to link libtensorflow_framework.so thankyou for your replay,I solved it by add CFLAGS = -ltensorflow_framework in Makefile

yinyulin avatar Sep 03 '19 03:09 yinyulin

need to link libtensorflow_framework.so thankyou for your replay,I solved it by add CFLAGS = -ltensorflow_framework in Makefile

You might get another error, like "undefined symbol: _ZN10tensorflow15OpKernelContext21CtxFailureWithWarningENS_6StatusE", right??

pxEkin avatar Sep 03 '19 03:09 pxEkin

need to link libtensorflow_framework.so thankyou for your replay,I solved it by add CFLAGS = -ltensorflow_framework in Makefile

You might get another error, like "undefined symbol: _ZN10tensorflow15OpKernelContext21CtxFailureWithWarningENS_6StatusE", right??

sorry I do not get the error above, but I got another error undefined symbol: _ZN10tensorflow8internal21CheckOpMessageBuilder9NewStringEv, I solved it by change -D_GLIBCXX_USE_CXX11_ABI=0, hopes it help

yinyulin avatar Sep 03 '19 03:09 yinyulin

need to link libtensorflow_framework.so thankyou for your replay,I solved it by add CFLAGS = -ltensorflow_framework in Makefile

You might get another error, like "undefined symbol: _ZN10tensorflow15OpKernelContext21CtxFailureWithWarningENS_6StatusE", right??

sorry I do not get the error above, but I got another error undefined symbol: _ZN10tensorflow8internal21CheckOpMessageBuilder9NewStringEv, I solved it by change -D_GLIBCXX_USE_CXX11_ABI=0, hopes it help

now, you can run and get right result?

pxEkin avatar Sep 03 '19 03:09 pxEkin

need to link libtensorflow_framework.so thankyou for your replay,I solved it by add CFLAGS = -ltensorflow_framework in Makefile

You might get another error, like "undefined symbol: _ZN10tensorflow15OpKernelContext21CtxFailureWithWarningENS_6StatusE", right??

sorry I do not get the error above, but I got another error undefined symbol: _ZN10tensorflow8internal21CheckOpMessageBuilder9NewStringEv, I solved it by change -D_GLIBCXX_USE_CXX11_ABI=0, hopes it help

now, you can run and get right result?

yes

yinyulin avatar Sep 03 '19 03:09 yinyulin

need to link libtensorflow_framework.so thankyou for your replay,I solved it by add CFLAGS = -ltensorflow_framework in Makefile

You might get another error, like "undefined symbol: _ZN10tensorflow15OpKernelContext21CtxFailureWithWarningENS_6StatusE", right??

hello, I follow the steps you just said and got this error, "undefined symbol: _ZN10tensorflow15OpKernelContext21CtxFailureWithWarningENS_6StatusE". Could you please tell me then what should I do?

aaaaangel avatar Oct 10 '19 05:10 aaaaangel

Hi,

Anybody who has got it working can please share a few details? For e.g, the version of TensorFlow,, the Makefile, etc.? Despite getting the make process without any errors, and trying numerous workarounds available on internet, I'm still facing the same runtime problem -

I'm presently using TensorFlow1.4, Python2.7 and CUDA9.0

Make output - image

Runtime error - image

Thanks in advance!

aasharma90 avatar Apr 12 '20 19:04 aasharma90

@aasharma90 Hello, I am facing the same issue too, did u solve it in the end?

wenlerrr avatar Oct 02 '20 00:10 wenlerrr

Hi @wenlerrr,

No, I couldn't get it working.

aasharma90 avatar Oct 02 '20 01:10 aasharma90