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
Error while importing Tensorflow-text: undefined symbol #963
Comments
Do you have an example colab? When I try this using one of the guides (and editing it to use What I think may be happening is that you are importing tensorflow before pip installing tensorflow_text. That loads TF libs in colab that are incompatible with tf text 2.9.x. The default TF of Colab is 2.8.2 at the moment, which would explain why TF Text 2.8.x (and 2.10 beta) work because they are built to work with TF 2.8.x, so Colab does not need to pip install a new version of TF. If you disconnect the runtime, connect again, and pip install tensorflow_text with the first code block, do you receive the same error? |
I got the same problem today when importing tensorflow_models on colab.
It was alright yesterday. |
Do you have an example colab? What version of tensorflow_text are you installing? Are you importing tensorflow before pip installing tensorflow_text? |
https://colab.research.google.com/drive/1z5Z_pTMydh778t51BXY9S_AroaVz1GjY#scrollTo=J_AHTSj8SUGI : ) Here you go. |
Have the same problem too! Only stopped working today. I'm using it with keras-nlp, and it breaks keras-nlp import. |
I've encountered several sudden version issues on colab with tf/keras in the past 2 month... I was using codes from the older tutorial then after May 23rd the code broke. I rewrote it with the up-to-date version but cannot get the model to perform the same anymore... |
My example looks like it is failing now too. There doesn't seem to be a problem outside of colab. Let me find somebody that can help out with this. |
Trying to install 2.8.x versions results in an error from tfm too.
|
Colab is now aware of the issue and is looking into it. |
The issue with tensorflow_text 2.9.0 on colab has been resolved. @jessechancy This fix includes its error with keras_nlp. @sungengyi While there should no longer be a problem with tensorflow_text, they are still looking into tensorflow_models. Do you know if this worked before? The fact that it fails with TF 2.8.x and there haven't been changes there in awhile makes us think this has just flown under the radar for some time. |
@broken Yes, I can confirm tfm can be imported and run before Monday Jun11th. I think it broke roughly the same time as tf text.
This is the new error I got. I guess colab has its environment updated on May 23rd and Jun11th. Then the versions don't match anymore and cause my first issue and this one. |
The problem with tensorflow_models is now fixed in colab too. @sungengyi I confirmed with your example above. cheers! |
I just encountered this issue after running
Is the solution that was identified for colab something I can manually run? Edit: Falling back to the |
I think this may be because you are using conda. Can you try it with the system install or pyenv? See #644 for more info on this. |
I am having issue:
|
I got the same error, somebody found the solution? cannot import name 'deserialize_keras_object' from partially initialized module 'keras.saving.legacy.serialization' (most likely due to a circular import) (/home/mosorio/Developments/dsProject/jupyter/venv/lib/python3.10/site-packages/keras/saving/legacy/serialization.py) |
@moisesosorio This looks like a Keras issue. You should open an issue in with Keras and ask them. |
Tensorflow-text: 2.9.0
Tensorflow: 2.9.1
Python: 3.7.13
Happen only with 2.9.0
2.10.0b2 and 2.8.2rc1 seems to be working.
In Google Collab.
Similar to closed #325 two years ago.
The text was updated successfully, but these errors were encountered: