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

[Bug]: Python builds fail with google-api-core dep version cannot be satisfied #22204

Closed
Abacn opened this issue Jul 8, 2022 · 8 comments · Fixed by #22205
Closed

[Bug]: Python builds fail with google-api-core dep version cannot be satisfied #22204

Abacn opened this issue Jul 8, 2022 · 8 comments · Fixed by #22205

Comments

@Abacn
Copy link
Contributor

Abacn commented Jul 8, 2022

What happened?

Python jenkin jobs that requires install apache-beam[gcp] all fail.

Issue Priority

Priority: 0

Issue Component

Component: build-system

@Abacn
Copy link
Contributor Author

Abacn commented Jul 8, 2022

There is another dep error coming from atomicwrites, also fixing it in this issue

@Abacn Abacn changed the title [Bug]: Python builds fail with "Cannot pip install google-api-core[grpc,grpcgcp]" [Bug]: Python builds fail with google-api-core dep version cannot be satisfied Jul 8, 2022
@Abacn
Copy link
Contributor Author

Abacn commented Jul 11, 2022

Per #22218 this also affects released version installation. A workaround is to install google-cloud-bigquery-storage<2.14 prior to installing apache-beam. For docker file, e.g.

RUN pip install google-cloud-bigquery-storage==2.13.2
RUN pip install apache-beam[gcp]==2.40.0

@Abacn
Copy link
Contributor Author

Abacn commented Jul 12, 2022

Needs reopen because the rollout of google-cloud-pubsub 2.13.2 triggered the exactly same problem. Should consider #22208 as long term fix

@damccorm damccorm reopened this Jul 12, 2022
@robertwb
Copy link
Contributor

How severe is this? Do we need a point release? Or will this be solved by upstream updates (that are hopefully in progress)?

@Abacn
Copy link
Contributor Author

Abacn commented Jul 12, 2022

How severe is this? Do we need a point release? Or will this be solved by upstream updates (that are hopefully in progress)?

It affects all released versions. Per #22218 (comment) "currently causing fairly severe issues".

imo this should be resolved upstream. We can only provide workaround for installation (manually install some sub-latest deps before pypi install apache-beam). The dep requirements itself does not have problems, but due to upstream client lib bumping api-core major version in there patch release we unfortunately hit a pypi resolving issue/bug

@robertwb
Copy link
Contributor

So, pretty much anyone who does pip install apache-beam[gcp] will encounter a failure?

@Abacn
Copy link
Contributor Author

Abacn commented Jul 12, 2022

So, pretty much anyone who does pip install apache-beam[gcp] will encounter a failure?

Yes, if their environment does not have compatible google-cloud-* client packages already installed.
THen pypi will try to install these deps and go endless backtracking

@tvalentyn
Copy link
Contributor

Let's use #22218 for further tracking which now has more discussion and workarounds.

@tvalentyn tvalentyn closed this as not planned Won't fix, can't repro, duplicate, stale Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants