-
Notifications
You must be signed in to change notification settings - Fork 335
-
Notifications
You must be signed in to change notification settings - Fork 335
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
import fails: "undefined symbol: _ZN10tensorflow12OpDefBuilder4AttrESs" #192
Comments
This looks like a conda issue. If you don't create the conda environment with tensorflow in the beginning it works fine.
Do you know what is different about installing it at creation vs using pip after? |
This is a month old and doesn't appear like a tf text issue, so I'm closing. |
Sorry I could not reply earlier then lost sight of your answer. pip install tensorflow
pip install tensorflow-text but this does not : conda install tensorflow
pip install tensorflow-text Could it be an issue with the conda recipe for tensorflow ? |
Same issue here using conda installed tensorflow 2.0.0 and tensorflow-text==2.0.0 |
This doesn't look like a legit reason to close a ticket. |
same issue- NotFoundError: /opt/conda/lib/python3.6/site-packages/tensorflow_text/python/metrics/_text_similarity_metric_ops.so: undefined symbol: _ZN10tensorflow8OpKernel11TraceStringEPNS_15OpKernelContextEb |
Same issue in Kaggle notebook. This issue is needed and not resolved. Poor task management. |
@zzj0402 install tensorflow 2.0 in kaggle notebook,then this problem will be removed |
If that can help, I work in TensorFlow Java and and just tried to load directly the
So it looks like there might be an incompatibility between TF 2.2.0 and TF-Text 2.2.0 |
I solved it by toggle GPU on in Kaggle environment settings. |
Similar issue in Mac OSX with tensorflow and tensorflow_text installed with pip inside conda env.
|
I have this same problem. tensorflow gets imported without problems, importing tensorflow-text results in op's error message. tensorflow is built from sources (1.15.3), tensorflow-text is stock binary (1.15.1, tried also 1.15.0rc0). tensorflow is built without GPU support and tensorflow-gpu is not installed. Could there still be a compatibility issue? Interestingly, people seem to have exact same issue with TF 2 as well, but here I am using version 1.15. Any help or ideas would be greatly appreciated. |
I saw the same error on Colab. The solution was that the tensorflow-text version needs to match the tf version. Since Colab was using tensorflow==2.2.0, I was successfully able to install and import tensorflow-text after: |
Solved: |
Thank you! I worked for me. |
Changing tensorflow version just gives me a different error... In my case I believe the issue is due to new releases being built on OSX 10.15, info here |
Nobody monitors closed issues, so I doubt anybody on the team has noticed any of these replies. If anybody on this thread is having a problem, please create a new issue with the error, tf version, tf text version, os, and if you are using an environment like conda or pyenv. |
I got this error on Google Colab. After hours of struggle, I am 99% this is some sort of a VM memory or path issue. It looks like you are using a library of one version (if you run To fix this, completely disconnect and delete the runtime. If you don't do this, I think some stuff in the memory persists forever, even if you close Colab. Then, when you switch to GPU, you will get a GPU environment with tensorflow version 2.9 installed and no tensorflow-text installed. Separately run pip install with versions specified:
This works. If you try to run tensorflow v 2.10 with tensorflow-text v 2.9, you get this error too. This is why I believe it's some sort of pip installation memory issue? Makes sense that tensorflow don't want to solve this, as it is likely just the Google Colab VM problem. |
this worked for me |
I encountered this bug which is most probably a duplicate of #30 that has been closed.
Is it related to #160 (comment) ?
System information
Describe the current behavior
Error on importing tensorflow-text making it impossible to be imported.
Describe the expected behavior
Library can be effortlessly imported and used.
Code to reproduce the issue
Provide a reproducible test case that is the bare minimum necessary to generate the problem.
I created a new minimal environment using
then, when trying to import tensorflow_text the following error appears
The text was updated successfully, but these errors were encountered: