Visitar URL original
BigQuery: Valid `google-resumable-media` versions conflict with Cloud Storage · Issue #9786 · googleapis/google-cloud-python · GitHub
Skip to content

BigQuery: Valid google-resumable-media versions conflict with Cloud Storage #9786

Closed

Description

@daniel-humu

It looks like #9572 introduced a dependency conflict for google-resumable-media between the latest google-cloud-storage and google-cloud-bigquery releases.

Environment details

  1. Python 3.7

Steps to reproduce

  1. pip install google-cloud-storage (latest release is 1.23.0)
    2.pip install google-cloud-bigquery (latest release is 1.21.0)
  2. Try to import both libraries in the same python

Issue

Today, google-cloud-storage 1.23.0 was released. It depends on google-resumable-media >= 0.5.0, < 0.6dev. The current google-cloud-bigquery version, depends on google-resumable-media >= 0.3.1, != 0.4.0, < 0.5.0dev

Therefore, the setup.py files for these two libraries will 2nd level dependency conflict when you attempt to pip install.

This can be fixed by releasing a new google-cloud-bigquery version. (to pick up the changes in #9572)

Activity

  1. added
    api: bigqueryIssues related to the BigQuery API.
    type: questionRequest for information or clarification. Not an issue.
    on Nov 13, 2019
  2. tseaver commented on Nov 13, 2019

    @tseaver
    Contributor

    @tswast Are we at a good spot to release a new version of google-cloud-bigquery?

  3. added
    priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    and removed
    type: questionRequest for information or clarification. Not an issue.
    on Nov 13, 2019
  4. tseaver commented on Nov 13, 2019

    @tseaver
    Contributor

    @daniel-humu Thanks for the report!

  5. icymai commented on Dec 2, 2019

    @icymai

    Hello Daniel! Thank you for providing the solution. I have a small question related to this error. What does it mean "google-resumable-media >= 0.3.1, != 0.4.0, < 0.5.0dev"? Why does this description mention 3 different versions?

  6. daniel-humu commented on Dec 2, 2019

    @daniel-humu
    Author

    @icymai Are you asking how version specifiers work? The dependency google-resumable-media >= 0.3.1, != 0.4.0, < 0.5.0dev means that the package depended on versions greater than or equal to 0.3.1, less than 0.5.0dev and excluding the 0.4.0 version.

    You can read more documentation on version specification on the Python website.

  7. icymai commented on Dec 3, 2019

    @icymai

    Cool! I haven't read this doc before. Thank you :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

api: bigqueryIssues related to the BigQuery API.priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions