Storage: Dependency check on 'requests' raises dependency inconsistencies #7855
Labels
api: bigquery
Issues related to the BigQuery API.
api: storage
Issues related to the Cloud Storage API.
packaging
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.
When importing
google.cloud.storage
, apkg_resources.ContextualVersionConflict
is raised (causing anImportError
to be raised bygoogle-resumable-media-python
), asrequests
requiresurllib3<1.25
buturllib3
v1.25 is installed. This is due to apkg_resources.require('requests >= 2.18.0')
run-time check.The best solution would be to remove that check, and instead check for the required features of
requests
at import time.requests
: https://github.com/kennethreitz/requests/issues/5067google-resumable-media-python
: Dependency check on 'requests' raises dependency inconsistencies google-resumable-media-python#64Also affects
google-cloud-biquery
probably.Environment details
OS: Ubuntu 18.10.1 (irrelevant)
Python: 3.6.8 (irrelevant)
google-cloud-storage
: 1.15.0requests
: 2.21.0urllib3
: 1.25Steps to reproduce
sentry-sdk
is installed as it pulls the latest version ofurllib3
before the dependencies ofgoogle-cloud-storage
are analysed.Stack trace
The text was updated successfully, but these errors were encountered: