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

gcloud==0.18.3 and google-cloud-datastore==1.2.0 run into dependency conflicts #3807

Closed
Gwildor opened this issue Aug 14, 2017 · 2 comments
Closed
Assignees
Labels
packaging status: will not fix Invalid (untrue/unsound/erroneous), inconsistent with product, not on roadmap.

Comments

@Gwildor
Copy link

Gwildor commented Aug 14, 2017

Hello,

I'm working on a large project with a lot of history that's using some Google Cloud services. We use pip-compile for generating our requirements file. I installed google-cloud-datastore==1.2.0, which worked fine, but after adding it in my requirements file and running pip-compile, I'm running in a quagmire of dependency conflicts. I've looked at #3579, but that didn't enlighten me much.

This is the error that pip-compile generates:

$ pip-compile --verbose --output-file requirements.txt requirements.in | grep ' requires .* google-gax'
  gcloud==0.18.3            requires gax-google-logging-v2<0.9dev,>=0.8.0, gax-google-pubsub-v1<0.9dev,>=0.8.0, google-gax<0.13dev,>=0.12.3, googleapis-common-protos, grpc-google-logging-v2<0.9dev,>=0.8.0, grpc-google-pubsub-v1<0.9dev,>=0.8.0, grpcio>=1.0rc1, httplib2>=0.9.1, oauth2client>=2.0.1, protobuf!=3.0.0.b2.post1,>=3.0.0b2, six
  google-cloud-datastore==1.2.0 requires gapic-google-cloud-datastore-v1<0.16dev,>=0.15.0, google-cloud-core<0.27dev,>=0.26.0, google-gax<0.16dev,>=0.15.7
Could not find a version that matches google-gax<0.13dev,<0.16dev,>=0.12.3,>=0.15.7

As you can see, the problem is trying to determine the correct version of google-gax, which gcloud requires to be <0.13dev,>=0.12.3, while google-cloud-datastore requires to be <0.16dev,>=0.15.7. Obviously, this results in an error.

I'm not sure what the steps forward are here. I'm surprised that pip allowed installing and using google-cloud-datastore at all. I'm assuming that in itself broke the usage of gcloud, but that is used in a lot of different places in the code that I can't test now to verify that it broke.

@dhermes
Copy link
Contributor

dhermes commented Aug 14, 2017

@Gwildor gcloud==0.18.3 has been deprecated since about September 2016 (when google-cloud==0.19.0 came out)

@dhermes dhermes added packaging status: will not fix Invalid (untrue/unsound/erroneous), inconsistent with product, not on roadmap. labels Aug 14, 2017
@dhermes
Copy link
Contributor

dhermes commented Aug 14, 2017

Closing because it doesn't seem there is much to do here. gcloud and google-cloud aren't meant to be used together.

I'm happy to re-open if I'm mistaken.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
packaging status: will not fix Invalid (untrue/unsound/erroneous), inconsistent with product, not on roadmap.
Projects
None yet
Development

No branches or pull requests

2 participants