Restrict grpc version to <1.49.0 in PyFunc Server#290
Merged
Conversation
eric-lidong
pushed a commit
to eric-lidong/merlin
that referenced
this pull request
Nov 7, 2022
<!-- Thanks for sending a pull request! Here are some tips for you: 1. Run unit tests and ensure that they are passing 2. If your change introduces any API changes, make sure to update the e2e tests 3. Make sure documentation is updated for your PR! --> **What this PR does / why we need it**: <!-- Explain here the context and why you're making the change. What is the problem you're trying to solve. ---> Starting version 1.49.0, grpc uses protobuf version 4.X which is incompatible with most of our dependencies (grpc/grpc#30805) . This causes error while building Pyfunc model: ``` ImportError: cannot import name 'builder' from 'google.protobuf.internal' (/Users/aria/.local/share/virtualenvs/pyfunc-server-sOMOjTdZ/lib/python3.7/site-packages/google/protobuf/internal/__init__.py) ``` **Does this PR introduce a user-facing change?**: <!-- If no, just write "NONE" in the release-note block below. If yes, a release note is required. Enter your extended release note in the block below. If the PR requires additional action from users switching to the new release, include the string "action required". For more information about release notes, see kubernetes' guide here: http://git.k8s.io/community/contributors/guide/release-notes.md --> NONE **Checklist** - [N.A.] Added unit test, integration, and/or e2e tests - [x] Tested locally - [N.A.] Updated documentation - [N.A.] Update Swagger spec if the PR introduce API changes - [N.A.] Regenerated Golang and Python client if the PR introduce API changes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does / why we need it:
Starting version 1.49.0, grpc uses protobuf version 4.X which is incompatible with most of our dependencies (grpc/grpc#30805) . This causes error while building Pyfunc model:
Does this PR introduce a user-facing change?:
NONE
Checklist