-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
undefined symbol: _ZN10tensorflow12OpDefBuilder4AttrESs #293
Comments
tf_sentencepiece is built with the official tensorflow pypi package. The latest version is 1.12.0. Seems that the tensorflow you are using now is not the official pypi release. How did you install tensorflow? |
@taku910 I have installed tensorflow using below command |
I've made some more research into this and it seems you need to install the specific build (arch, GCC-ver etc) for sentencepiece to work. I don't understand why this isn't a core TF op if it's so universally used??? Also, are saved_model that depend on sentence_piece code even portable? |
I got the same problem. My TF version is 1.13.1, installed by |
I have solved this problem with the aid of Docker, simply using an official tensorflow runtime as a parent image. Explicitly, within the Dockerfile, write |
@ramreddyyasa Did you find a solution? I am stuck with the same problem. |
I have the same problem. tensorflow-gpu, sentencepiece and tf-sentencepiece installed from pip. Python 3.7. I tried with both tensorflow-gpu==1.13.1 and tensorflow-gpu==1.14.0. |
I was able to make it work by setting |
i have the same proplem , should be tesorflow environmental factors |
I solved the problem and changed the python version to 3.6.9. |
Just updated tf_sentencepiece. You can install it via pip install tf_sentencepiece. https://github.com/google/sentencepiece/releases/tag/v0.1.83 |
@taku910 , I just got the latest tf_sentencepiece and the the above problem still exists. i'm running py 3.6.9 and tf 1.14 on linux |
how did you exactly solve this issue? are you using tf 1.14? |
@mhajiaghayi I solved the problem by this flow
|
Had the same problem today and solved it by:
Setting python=3.6.9 was the most important thing. Changing versions of the libraries did not help, as some others reported already. Ubuntu 16.04, Anaconda 5 |
那是conda 的问题,我换成pip 安装 tensorflow 就没问题. |
me too。。 |
哇谢谢老哥,解决了! |
Thanks so much! |
thanks , conda 误我 |
Hi ,
When I am trying to import "tf_sentencepiece" . I am getting following error:
NotFoundError Traceback (most recent call last)
in
import tf_sentencepiece as tfs
~/.conda/envs/tf_gpu/lib/python3.6/site-packages/tf_sentencepiece/init.py in
from future import print_function
from tf_sentencepiece.sentencepiece_processor_ops import *
~/.conda/envs/tf_gpu/lib/python3.6/site-packages/tf_sentencepiece/sentencepiece_processor_ops.py in
_gen_sentencepiece_processor_op = tf.load_op_library(so_file)
~/.conda/envs/tf_gpu/lib/python3.6/site-packages/tensorflow/python/framework/load_library.py in load_op_library(library_filename)
RuntimeError: when unable to load the library or get the python wrappers.
"""
lib_handle = py_tf.TF_LoadLibrary(library_filename)
op_list_str = py_tf.TF_GetOpList(lib_handle)
NotFoundError: /home/user/.conda/envs/tf_gpu/lib/python3.6/site-packages/tf_sentencepiece/_sentencepiece_processor_ops.so.1.12.0: undefined symbol: _ZN10tensorflow12OpDefBuilder4AttrESs
Help me out in resolving this issue.
Thanks in advance.
The text was updated successfully, but these errors were encountered: