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

Resolve python dependency patch in protobuf #14412

Closed
kyessenov opened this issue Dec 15, 2020 · 10 comments
Closed

Resolve python dependency patch in protobuf #14412

kyessenov opened this issue Dec 15, 2020 · 10 comments
Assignees
Labels
investigate Potential bug that needs verification stale stalebot believes this issue/PR has not been touched recently

Comments

@kyessenov
Copy link
Contributor

Complete the discussion in #14253 (comment).

The issue is conflicting python module definitions for google.protobuf and google.rpc under google coming from two repos, which requires patching in the module lookup code.

cc @htuch

@kyessenov kyessenov added the triage Issue requires triage label Dec 15, 2020
@busunkim96
Copy link

busunkim96 commented Dec 15, 2020

If the blocker is google.api.expr published to PyPI, it looks like that is doable. It would most likely be published to the existing googleapis-common-protos package.

@htuch
Copy link
Member

htuch commented Dec 16, 2020

I think we also consume annotations.proto from google.api.expr. Is there some way we can validate this with a mock pip build?

@busunkim96
Copy link

google/api/annotations.proto is already published in the package. (see github repo).

python3 -m pip install google-api-common-protos
busunkim@busunkim:~/github/python-aiplatform$ python3
Python 3.6.9 (default, Feb 24 2020, 21:10:07) 
[GCC 9.2.1 20190909] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from google.api import annotations_pb2

Happy to set up a branch on https://github.com/googleapis/python-api-common-protos with the google.api.expr protos if that is what is needed.

@alyssawilk alyssawilk added investigate Potential bug that needs verification and removed triage Issue requires triage labels Dec 16, 2020
@kyessenov
Copy link
Contributor Author

These are all dependencies:

@com_google_googleapis//google/api/expr/v1alpha1:checked_py_proto
@com_google_googleapis//google/api/expr/v1alpha1:syntax_py_proto
@com_google_googleapis//google/api/expr/v1alpha1:checked_py_proto_genproto
@com_google_googleapis//google/api/expr/v1alpha1:syntax_py_proto_genproto
@com_google_googleapis//google/rpc:status_py_proto
@com_google_googleapis//google/api:httpbody_py_proto
@com_google_googleapis//google/api:annotations_py_proto
@com_google_googleapis//google/api:http_py_proto
@com_google_googleapis//google/rpc:status_py_proto_genproto
@com_google_googleapis//google/api:httpbody_py_proto_genproto
@com_google_googleapis//google/api:annotations_py_proto_genproto
@com_google_googleapis//google/api:http_py_proto_genproto

If we can remap these to pre-generated committed versions, that would probably work!

@kyessenov
Copy link
Contributor Author

cc @TristonianJones: we'd like to have google api expr Python protos published, instead of bazel build in googleapis.

@busunkim96
Copy link

I created a branch on python-api-common-protos with the google/api/expr protos https://github.com/googleapis/python-api-common-protos/tree/add-api-expr. (PR: googleapis/python-api-common-protos#27)

Releasing will need to wait for next year since I need to check that releasing these protos in this package is OK.

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale stalebot believes this issue/PR has not been touched recently label Jan 22, 2021
@kyessenov
Copy link
Contributor Author

Not stale, but fell off my radar.

@htuch htuch removed the stale stalebot believes this issue/PR has not been touched recently label Jan 22, 2021
@github-actions
Copy link

This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale stalebot believes this issue/PR has not been touched recently label Feb 22, 2021
@github-actions
Copy link

github-actions bot commented Mar 2, 2021

This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted" or "no stalebot". Thank you for your contributions.

@github-actions github-actions bot closed this as completed Mar 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigate Potential bug that needs verification stale stalebot believes this issue/PR has not been touched recently
Projects
None yet
Development

No branches or pull requests

4 participants