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

Update protobuf version #111

Open
paolodelia99 opened this issue Feb 25, 2025 · 0 comments
Open

Update protobuf version #111

paolodelia99 opened this issue Feb 25, 2025 · 0 comments

Comments

@paolodelia99
Copy link

Hello,

I noticed that when installing tff on Google Colab, I encounter the following error when trying to import it:

TypeError: Descriptors cannot be created directly.  
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.  
If you cannot immediately regenerate your protos, some other possible workarounds are:  
 1. Downgrade the protobuf package to 3.20.x or lower.  
 2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).  

To work around this, I have to manually install protobuf>=3.20.3 and restart the session, which disrupts the workflow.

Would it be possible to update the protobuf dependency in the package to avoid this issue? This would improve the out-of-the-box experience, especially for users running the library in cloud-based environments like Colab.

Thanks!

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

1 participant