Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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? #39

Open
Shunli-Wang opened this issue Jul 24, 2019 · 14 comments

Comments

@Shunli-Wang
Copy link

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

@jiangxuetao0823
Copy link

python 2.7 is needed

@yinyulin
Copy link

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

@YUSHENWU
Copy link

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

@stezarpriansya
Copy link

hello, anyone can help?

@pxEkin
Copy link

pxEkin commented Sep 3, 2019

need to link libtensorflow_framework.so

@yinyulin
Copy link

yinyulin commented Sep 3, 2019

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

@pxEkin
Copy link

pxEkin commented Sep 3, 2019

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??

@yinyulin
Copy link

yinyulin commented Sep 3, 2019

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

@pxEkin
Copy link

pxEkin commented Sep 3, 2019

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?

@yinyulin
Copy link

yinyulin commented Sep 3, 2019

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

@aaaaangel
Copy link

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?

@aasharma90
Copy link

aasharma90 commented Apr 12, 2020

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!

@wenlerrr
Copy link

wenlerrr commented Oct 2, 2020

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

@aasharma90
Copy link

Hi @wenlerrr,

No, I couldn't get it working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants