When I tried to install the Google Core API package, it always gets errors for every different version of this package. The app is run in Python 3, and I got the following logs:
The user requested google-api-core==1.21.0
google-cloud-core 1.4.3 depends on google-api-core<2.0.0dev and >=1.19.0
google-api-core[grpc,grpcgcp] 1.29.0 depends on google-api-core 1.29.0
ERROR: Cannot install -r requirements.txt (line 52) and google-api-core[grpc,grpcgcp]==1.14.0 because these package versions have conflicting dependencies.
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies
The command '/bin/sh -c pip3 install -r requirements.txt' returned a non-zero code: 1
ERROR
ERROR: build step 0 "gcr.io/cloud-builders/docker" failed: step exited with non-zero status: 1
We want to install this package on the Google Cloud Platform. Could somebody please help me with the conflicting dependency issue?
We tried the following packages but none of them work.
#google-api-core==1.29.0
#google-api-core[grpc,grpcgcp]==1.14.0
#google-api-core==1.23.0
# google-api-core==1.19.0
# google-api-python-client==1.9.3
# google-auth==1.30.0
# google-auth-httplib2==0.0.4
# google-auth-oauthlib==0.4.1
# google-cloud==0.34.0
# google-cloud-bigquery==1.25.0
# google-cloud-bigquery-storage==2.0.1
# google-cloud-bigtable==1.2.1
# google-cloud-core #==1.4.3
# google-cloud-datastore==1.12.0
# google-cloud-language==2.0.0
# google-cloud-logging==1.15.0
# google-cloud-pubsub==2.1.0
# google-cloud-resource-manager==0.30.2
# google-cloud-scheduler==2.2.0
# google-cloud-secret-manager==2.0.0
# google-cloud-spanner==1.19.1
# google-cloud-storage==1.29.0
# google-cloud==0.34.0
# google-auth==1.22.1
#grpc-google-iam-v1==0.12.3
#grpcio==1.29.0
# google-resumable-media
All the other related packages versions are as follow, and they are working:
google-api-core==1.21.0
google-api-python-client==1.6.7
google-auth==1.30.0
google-auth-httplib2==0.0.4
google-auth-oauthlib==0.4.1
google-cloud
google-cloud-bigquery
google-cloud-bigquery-storage==2.0.1
google-cloud-bigtable==1.2.1
google-cloud-core==1.4.3
google-cloud-datastore==1.12.0
google-cloud-language==2.0.0
google-cloud-logging==1.15.0
google-cloud-pubsub==1.7.0
google-cloud-resource-manager==0.30.2
google-cloud-scheduler==2.0.0
google-cloud-secret-manager==2.0.0
google-cloud-spanner==1.19.1
google-cloud-storage==1.29.0
google-cloud-translate==3.0.1
google-cloud-videointelligence==1.16.0
google-cloud-vision==2.0.0
google-crc32c==1.0.0
google-pasta==0.2.0
googleapis-common-protos==1.52.0
Thanks for your time and support!
Try using the below requirements.txt file. I have used the same, and it is working fine for me.

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With