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

Can not use ray with google-cloud-bigquery with poetry due to grpcio version incompatibility #28668

Closed
anurag-sequoia opened this issue Sep 21, 2022 · 2 comments
Assignees
Labels
bug Something that is supposed to be working; but isn't

Comments

@anurag-sequoia
Copy link

anurag-sequoia commented Sep 21, 2022

What happened + What you expected to happen

Tried installing ray using poetry in a virtual environment that already has google-cloud-bigquery.

Poetry dependency resolver fails because ray depends on grpcio <=1.43.0

Using version ^2.0.0 for ray

Updating dependencies
Resolving dependencies... (9.5s)

Because no versions of ray match >2.0.0,<3.0.0
 and ray (2.0.0) depends on grpcio (>=1.42.0,<=1.43.0), ray (>=2.0.0,<3.0.0) requires grpcio (>=1.42.0,<=1.43.0).
And because google-cloud-bigquery (3.3.2) depends on grpcio (>=1.47.0,<2.0dev)
 and no versions of google-cloud-bigquery match >3.3.2,<4.0.0, ray (>=2.0.0,<3.0.0) is incompatible with google-cloud-bigquery (>=3.3.2,<4.0.0).
So, because training depends on both google-cloud-bigquery (^3.3.2) and ray (^2.0.0), version solving failed.

Mac m1 requires newer grpcio dependencies - googleapis/python-bigquery#1262

Ideally, ray should have worked with newer grpcio dependencies as well.

Versions / Dependencies

ray == 2.0.0
google-cloud-bigquery == 3.3.2
macos 11.6.6
python 3.10.6

Reproduction script

# Get a new poetry environment on python 3.10 first

poetry add google-cloud-bigquery "ray[air, tune]"

Issue Severity

High: It blocks me from completing my task.

@anurag-sequoia anurag-sequoia added bug Something that is supposed to be working; but isn't triage Needs triage (eg: priority, bug/not-bug, and owning component) labels Sep 21, 2022
@rickyyx
Copy link
Contributor

rickyyx commented Sep 21, 2022

Hey @anurag-sequoia , thanks for reporting it. We do have a PR that's addressing the grpcio dependencies: #28623

I believe that should resolve this for you?

@cadedaniel cadedaniel self-assigned this Sep 21, 2022
@rickyyx rickyyx removed the triage Needs triage (eg: priority, bug/not-bug, and owning component) label Sep 21, 2022
@anurag-sequoia
Copy link
Author

Yes, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something that is supposed to be working; but isn't
Projects
None yet
Development

No branches or pull requests

4 participants