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

Conflicting google-api-core dependency with google-cloud-pubsub #934

Closed
pietermarsman opened this issue Jun 3, 2020 · 2 comments
Closed
Assignees
Labels
priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@pietermarsman
Copy link

Since the changes in #931 (15 hours ago) the google-api-python-client has conflicting dependencies with google-cloud-pubsub. This package requires google-api-core >= 1.17.0 and google-cloud-pubsub requires google-api-core < 1.17.0.

Related issues: googleapis/python-pubsub#93

Environment details

I am using

  • ubuntu
  • Python 3.8.2
  • pip 20.0.2 from /home/pieter/.local/share/virtualenvs/py37-2dXseUfS/lib/python3.8/site-packages/pip (python 3.8)

Steps to reproduce

$ pip install google-api-python-client google-cloud-pubsub
Collecting google-api-python-client
  Using cached google_api_python_client-1.9.1-py3-none-any.whl (59 kB)
Collecting google-cloud-pubsub
  Using cached google_cloud_pubsub-1.5.0-py2.py3-none-any.whl (137 kB)
Requirement already satisfied: six<2dev,>=1.6.1 in /home/pieter/.local/share/virtualenvs/py37-2dXseUfS/lib/python3.8/site-packages (from google-api-python-client) (1.14.0)
Requirement already satisfied: google-auth-httplib2>=0.0.3 in /home/pieter/.local/share/virtualenvs/py37-2dXseUfS/lib/python3.8/site-packages (from google-api-python-client) (0.0.3)
Requirement already satisfied: uritemplate<4dev,>=3.0.0 in /home/pieter/.local/share/virtualenvs/py37-2dXseUfS/lib/python3.8/site-packages (from google-api-python-client) (3.0.1)
Requirement already satisfied: google-api-core<2dev,>=1.17.0 in /home/pieter/.local/share/virtualenvs/py37-2dXseUfS/lib/python3.8/site-packages (from google-api-python-client) (1.17.0)
Requirement already satisfied: google-auth>=1.16.0 in /home/pieter/.local/share/virtualenvs/py37-2dXseUfS/lib/python3.8/site-packages (from google-api-python-client) (1.16.0)
Requirement already satisfied: httplib2<1dev,>=0.9.2 in /home/pieter/.local/share/virtualenvs/py37-2dXseUfS/lib/python3.8/site-packages (from google-api-python-client) (0.18.1)
Requirement already satisfied: grpc-google-iam-v1<0.13dev,>=0.12.3 in /home/pieter/.local/share/virtualenvs/py37-2dXseUfS/lib/python3.8/site-packages (from google-cloud-pubsub) (0.12.3)
Requirement already satisfied: setuptools>=34.0.0 in /home/pieter/.local/share/virtualenvs/py37-2dXseUfS/lib/python3.8/site-packages (from google-api-core<2dev,>=1.17.0->google-api-python-client) (44.0.0)
Requirement already satisfied: protobuf>=3.4.0 in /home/pieter/.local/share/virtualenvs/py37-2dXseUfS/lib/python3.8/site-packages (from google-api-core<2dev,>=1.17.0->google-api-python-client) (3.12.2)
Requirement already satisfied: pytz in /home/pieter/.local/share/virtualenvs/py37-2dXseUfS/lib/python3.8/site-packages (from google-api-core<2dev,>=1.17.0->google-api-python-client) (2020.1)
Requirement already satisfied: requests<3.0.0dev,>=2.18.0 in /home/pieter/.local/share/virtualenvs/py37-2dXseUfS/lib/python3.8/site-packages (from google-api-core<2dev,>=1.17.0->google-api-python-client) (2.22.0)
Requirement already satisfied: googleapis-common-protos<2.0dev,>=1.6.0 in /home/pieter/.local/share/virtualenvs/py37-2dXseUfS/lib/python3.8/site-packages (from google-api-core<2dev,>=1.17.0->google-api-python-client) (1.51.0)
Requirement already satisfied: pyasn1-modules>=0.2.1 in /home/pieter/.local/share/virtualenvs/py37-2dXseUfS/lib/python3.8/site-packages (from google-auth>=1.16.0->google-api-python-client) (0.2.8)
Requirement already satisfied: cachetools<5.0,>=2.0.0 in /home/pieter/.local/share/virtualenvs/py37-2dXseUfS/lib/python3.8/site-packages (from google-auth>=1.16.0->google-api-python-client) (4.1.0)
Requirement already satisfied: rsa<4.1,>=3.1.4 in /home/pieter/.local/share/virtualenvs/py37-2dXseUfS/lib/python3.8/site-packages (from google-auth>=1.16.0->google-api-python-client) (4.0)
Requirement already satisfied: grpcio<2.0.0dev,>=1.0.0 in /home/pieter/.local/share/virtualenvs/py37-2dXseUfS/lib/python3.8/site-packages (from grpc-google-iam-v1<0.13dev,>=0.12.3->google-cloud-pubsub) (1.29.0)
Requirement already satisfied: pyasn1<0.5.0,>=0.4.6 in /home/pieter/.local/share/virtualenvs/py37-2dXseUfS/lib/python3.8/site-packages (from pyasn1-modules>=0.2.1->google-auth>=1.16.0->google-api-python-client) (0.4.8)
ERROR: google-cloud-pubsub 1.5.0 has requirement google-api-core[grpc]<1.17.0,>=1.14.0, but you'll have google-api-core 1.17.0 which is incompatible.
Installing collected packages: google-api-python-client, google-cloud-pubsub
Successfully installed google-api-python-client-1.9.1 google-cloud-pubsub-1.5.0
@busunkim96
Copy link
Contributor

Hi @pietermarsman, thanks for the report!

Sorry about that! For now, please use the 1.8.4 release of google-api-python-client. We are working on getting the pin widened on Pub/Sub. See googleapis/python-pubsub#103

pip install google-api-python-client==1.8.4 google-cloud-pubsub

@busunkim96 busunkim96 added api: clouddebugger Issues related to the Cloud Debugger API. priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. and removed api: clouddebugger Issues related to the Cloud Debugger API. labels Jun 3, 2020
@busunkim96
Copy link
Contributor

This is now resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

2 participants