Code Monkey home page Code Monkey logo

Comments (8)

sushreebarsa avatar sushreebarsa commented on June 2, 2024

@lazarust Could you consider explicitly upgrading protobuf. You can find compatible versions on the official protobuf website here. Kindly refer to this issue as well for more information.
Thank you!

from tensorflow.

lazarust avatar lazarust commented on June 2, 2024

Thanks for the response @sushreebarsa. I tried upgrading protobuf by running pip install -U protobuf and still get the same deprecation warning with protobuf 5.26.1.

Is there something else I should do/could try?

It also looks like tensorflow requires a version of protobuf that's < 5.0.0. Is 5.0 + support something that could be updated?

from tensorflow.

sushreebarsa avatar sushreebarsa commented on June 2, 2024

@lazarust The error you're encountering is related to a deprecation warning in protobuf and its incompatibility with TensorFlow in your current environment. Kindly ensure you're upgrading protobuf and TensorFlow within the same virtual environment you're using for your project. This avoids conflicts with other projects that might have different dependency requirements. Another workaround could be downgrading protobuf to a version below 5.0.0 which is not ideal.
TensorFlow is yet to fully support protobuf versions above 5.0.

Thank you!

from tensorflow.

lazarust avatar lazarust commented on June 2, 2024

@sushreebarsa I've verified that I'm using tensorflow 2.16.1 and protobuf 4.25.3 (this is the newest protobuf supported by tensorflow from what I can tell). I'm still running into the DeprecationWarnings.

If it's not an easy fix since tensorflow doesn't support protobuf 5.0+, we can ignore those warnings for now. Unless you have a better idea?

from tensorflow.

sushreebarsa avatar sushreebarsa commented on June 2, 2024

Hi, @lazarust ! Ignoring the warnings might seem like a quick solution. If downgrading protobuf or upgrading TensorFlow is not feasible, you can suppress the warnings.

import warnings
warnings.filterwarnings("ignore", message=".*DeprecationWarning.*")


Please find the doc here which has the supported protobuf versions mentioned in it. Kindly stay updated with TF releases.

Thank you!

from tensorflow.

lazarust avatar lazarust commented on June 2, 2024

@sushreebarsa We've decided to just suppress the warnings for now until TensorFlow supports the new version of protobuf. Should I close this issue?

from tensorflow.

sushreebarsa avatar sushreebarsa commented on June 2, 2024

@lazarust Sure, you could move this issue to close status for now and stay updated for new releases. Thank you!

from tensorflow.

google-ml-butler avatar google-ml-butler commented on June 2, 2024

Are you satisfied with the resolution of your issue?
Yes
No

from tensorflow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.