question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

tensorflow.python.framework.errors_impl.NotFoundError: ./renderer/rasterize_triangles_kernel.so: undefined symbol: _ZN10tensorflow12OpDefBuilder4AttrESs

See original GitHub issue

when I run “python demo.py”, I get this error, the detail message is:

Traceback (most recent call last):
  File "demo.py", line 12, in <module>
    from face_decoder import Face3D
  File "/home/ly/yanyan/Deep3DFaceReconstruction/face_decoder.py", line 10, in <module>
    from renderer import mesh_renderer
  File "/home/ly/yanyan/Deep3DFaceReconstruction/renderer/mesh_renderer.py", line 25, in <module>
    from renderer import rasterize_triangles
  File "/home/ly/yanyan/Deep3DFaceReconstruction/renderer/rasterize_triangles.py", line 30, in <module>
    rasterize_triangles_module = tf.load_op_library('./renderer/rasterize_triangles_kernel.so')
  File "/home/ly/.conda/envs/deep3d/lib/python3.6/site-packages/tensorflow/python/framework/load_library.py", line 60, in load_op_library
    lib_handle = py_tf.TF_LoadLibrary(library_filename)
tensorflow.python.framework.errors_impl.NotFoundError: ./renderer/rasterize_triangles_kernel.so: undefined symbol: _ZN10tensorflow12OpDefBuilder4AttrESs

I suspect the problem is about the file " rasterize_triangles_kernel.so ". I just download the pre-compiled binary file (rasterize_triangles_kernel.so), but I’m sure my tensorflow version is 1.12.

Your help would be highly appreciated.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:8

github_iconTop GitHub Comments

2reactions
YuDengcommented, May 13, 2021

Hi, the pre-compiled binary file only works if you install tensorflow 1.12 via pip install and use cuda 9.0. If you install tensorflow via conda with other version of cudatoolkit, you have to compile tf_mesh_renderer from source using bazel.

1reaction
rakaarcommented, May 23, 2021

@YuDeng Thank you for the response. I downgraded to the TensorFlow version=1.12 and the demo ran successfully.

Read more comments on GitHub >

github_iconTop Results From Across the Web

NotFoundError: When trying to import tensorflow in a high ...
I just got access to a hpc cluster through my university and i ran into this error when trying to import tensorflow to...
Read more >
Tensorflow op library problems after update - Google Groups
TF_GetCode(self.status.status)) tensorflow.python.framework.errors_impl.NotFoundError: /path/to/mylib.so: undefined symbol: _ZTIN10tensorflow8OpKernelE
Read more >
Undefined symbol: _ZN10tensorflow12OpDefBuilder4AttrESs
Hi I am getting following error while training the bot NotFoundError: ...
Read more >
[MSDN Redirect] tf-sentencepiece Error - Microsoft Q&A
I've been getting tf framework error due to tf-sentencepiece lib that I'm ... /_sentencepiece_processor_ops.so.1.14.0: undefined symbol: ...
Read more >
Undefined symbol error occured when I use TVMDSOOp
I tried to learn TVMDSOOp so I build TVM with set(USE_TF_TVMDSOOP ON) in ... had problem about undefined symbol: tensorflow.python.framework.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found