Skip to content

Update the protobuf dependency? #37

Open

Description

@NeilGirdhar

Could the protobuf dependency be incremented by two major versions please?

Activity

  1. chhabrakadabra commented on Sep 30, 2022

    @chhabrakadabra

    To make a case for this ticket, many libraries are now requiring protobuf>4. Meaning that tensorflow-metadata is blocking codebases from upgrading all these other libraries.

  2. added a commit that references this issue on Sep 30, 2022
  3. added a commit that references this issue on Oct 5, 2022
  4. mattb-zip commented on Mar 31, 2023

    @mattb-zip

    it looks like this is holding us back from upgrading to tensorflow 2.12.0 and using protobuf 4 for any use case that requires tensorflow-metadata, or tensorflow-datasets which requires tensorflow-metadata

  5. coreyhu commented on Apr 4, 2023

    @coreyhu

    any word on this?

  6. elgalu commented on Oct 4, 2023

    @elgalu

    any updates?

  7. NeilGirdhar commented on Nov 3, 2023

    @NeilGirdhar
    Author

    @rtg0795 Would you mind taking a look at this?

  8. masonkirchner commented on Nov 27, 2023

    @masonkirchner

    Any updates on this?

    EDIT: If you could publish any changes that loosen the Protobuf dependency as tensorflow-metadata==1.14.1 that would be appreciated. A 1.15.0 release with the loosened Protobuf dependency would be worthless without re-releasing all the Tensorflow libraries that depend on tensorflow-metadata because they're all scoped to tensorflow-metadata<1.15.0.

  9. rtg0795 commented on Jan 2, 2024

    @rtg0795

    @NeilGirdhar Hi. I see that 'protobuf>=3.20.3,<4.21' has been used for 1.14.0. Can you please explain or provide more details on why this is not sufficient?

  10. NeilGirdhar commented on Jan 3, 2024

    @NeilGirdhar
    Author

    @rtg0795 I'll let others comment more on this, but if I remember, this was preventing upgrades to Python 3.12. See also: #37 (comment) and #37 (comment)

  11. NeilGirdhar commented on Feb 11, 2024

    @NeilGirdhar
    Author

    @rtg0795 What are your thoughts? It's been almost two years since this was requested.

  12. jeffpicard commented on Mar 13, 2024

    @jeffpicard

    @rtg0795 protobuf>=3.20.3,<4.21 is not sufficient because 4.21 is the first released 4.x version.

    This is blocking us as well.

  13. NeilGirdhar commented on Mar 15, 2024

    @NeilGirdhar
    Author

    Thank you for fixing this on master! For everyone watching this, we just need to wait for the next release or use the master version.

    Also, just noting that Protobuf 5 is now out 😄

  14. rclough commented on Aug 16, 2024

    @rclough

    Is this fixed on master? The boundary is still <4.21, which does not include any valid protobuf 4 versions. This is impacting my organization as well. We have packages that depend on protobuf >4, and the current boundary does not provide that.

    Note: This is for Py39/310, the newer protobuf versions are supported for py311, but note even TFX supports 311 yet/we will probably need 39/310 support for a while anyways

  15. dbalabka commented on Nov 28, 2024

    @dbalabka

    As the previous commenter mentioned, the most simplistic way to fix the dependency issue is to jump to Python 3.11 to allow tensorflow-metadata package work with the latest version of Protobuff:

    metadata/setup.py

    Lines 132 to 133 in f440b43

    'protobuf>=4.25.2,<6.0.0dev;python_version>="3.11"',
    'protobuf>=3.20.3,<4.21;python_version<"3.11"',

    It worked for me. Thanks to @rclough

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions