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

Conflict between libraries tensorflow-metadata and protobuf #1115

Closed
jsancs opened this issue Mar 27, 2023 · 3 comments
Closed

Conflict between libraries tensorflow-metadata and protobuf #1115

jsancs opened this issue Mar 27, 2023 · 3 comments

Comments

@jsancs
Copy link

jsancs commented Mar 27, 2023

Running the transformer tutorial raises an error installing the dependecies in the first execution cell

This cell
image

Gives this error
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. tensorflow-metadata 1.12.0 requires protobuf<4,>=3.13, but you have protobuf 4.22.1 which is incompatible.

@jsancs jsancs changed the title Conflict between libraries tesorflow-metadata and protobuf Conflict between libraries tensorflow-metadata and protobuf Mar 27, 2023
@broken
Copy link
Member

broken commented Mar 28, 2023

TensorFlow recently upgraded the protobuf version they use, and TF Text by default uses the same to maintain compatibility. tensorflow-metadata needs a release with the updated dependency. See tensorflow/metadata#37

@jsancs
Copy link
Author

jsancs commented Mar 28, 2023

So what is the solution then? Just wait until the next release of tensorflow metedata?

@broken
Copy link
Member

broken commented Mar 28, 2023

If you pin the protobuf to a lower version it will work. Before installing tensorflow_datasets, add the line:

!pip install protobuf~=3.20.3

Thanks for pointing this out. I'll update the colab.

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

2 participants