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

Encounter this error: tensorflow.python.framework.errors_impl.NotFoundError #26

Closed
Kongsea opened this issue Dec 5, 2017 · 3 comments
Closed

Comments

@Kongsea
Copy link

Kongsea commented Dec 5, 2017

When I run train_net.py, I have met the following error:

Traceback (most recent call last):
File "faster_rcnn/train_net.py", line 26, in
from lib.networks.factory import get_network
File "faster_rcnn/../lib/networks/init.py", line 8, in
from .FPN_train import FPN_train
File "faster_rcnn/../lib/networks/FPN_train.py", line 9, in
from .network import Network
File "faster_rcnn/../lib/networks/network.py", line 5, in
from ..roi_pooling_layer import roi_pooling_op as roi_pool_op
File "faster_rcnn/../lib/roi_pooling_layer/init.py", line 7, in
import roi_pooling_op
File "faster_rcnn/../lib/roi_pooling_layer/roi_pooling_op.py", line 5, in
_roi_pooling_module = tf.load_op_library(filename)
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: faster_rcnn/../lib/roi_pooling_layer/roi_pooling.so: undefined symbol: _ZTIN10tensorflow8OpKernelE

What's the reason? Is there anybody who will give some advice?
Thank you.

@Kongsea
Copy link
Author

Kongsea commented Dec 5, 2017

After I clone this repository, I first open a terminal in FPN folder, and cd lib, then I run make to compile it.
Are these steps correct?

@Kongsea
Copy link
Author

Kongsea commented Dec 5, 2017

I have googled the problem, and find one solution. Then I added -D_GLIBCXX_USE_CXX11_ABI=0 in g++ complie line in make.sh file and re-run make.
However, that solution did not work.

@Kongsea Kongsea changed the title Meet this error: tensorflow.python.framework.errors_impl.NotFoundError Encount this error: tensorflow.python.framework.errors_impl.NotFoundError Dec 6, 2017
@Kongsea Kongsea changed the title Encount this error: tensorflow.python.framework.errors_impl.NotFoundError Encounter this error: tensorflow.python.framework.errors_impl.NotFoundError Dec 6, 2017
@Kongsea
Copy link
Author

Kongsea commented Dec 6, 2017

Finally, uninstalling tensorflow 1.4 and installing tensorflow 1.3 and adding -D_GLIBCXX_USE_CXX11_ABI=0 solved this problem.

@Kongsea Kongsea closed this as completed Dec 6, 2017
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

1 participant