Skip to content

google cloud pubsub container do not expects keyword argument "channel" for publisher and subscriber client #161

Closed

Description

@Mohsin-Ul-Islam

Whenever I create an instance of PubsubContainer from google.cloud module, it raises an exception "Unexpected keyword argument 'channel' for PublisherClient.init".

Activity

  1. Mohsin-Ul-Islam commented on Dec 13, 2021

    @Mohsin-Ul-Islam
    ContributorAuthor

    This issue came when I used google cloud pubsub client library version 2.5.0 via poetry. While the requirements in this project contain version 1.7.0.

    Here is the release where channel keyword argument was passed to underlying pubsub clients https://googleapis.dev/python/pubsub/0.43.0/_modules/google/cloud/pubsub_v1/subscriber/client.html
    But this is outdated and the implementation has been changed.

    Instead now client_options and credentials are passed to the underlying pubsub clients. Here is the version reference I used
    https://googleapis.dev/python/pubsub/2.5.0/_modules/google/cloud/pubsub_v1/publisher/client.html

    In order to bump google-cloud-pubsub from 1.7.0 to latest I get the following error while running
    pip-compile --verbose --upgrade-package google-cloud-pubsub==2.5.0

    Could not find a version that matches docker[ssh]<4.3.0,>=5 (from -r requirements.in (line 7))
    Tried: 2.0.0, 2.0.0, 2.0.1, 2.0.1, 2.0.2, 2.0.2, 2.1.0, 2.1.0, 2.2.0, 2.2.0, 2.2.1, 2.2.1, 2.3.0, 2.3.0, 2.4.0, 2.4.0, 2.4.1, 2.4.1, 2.4.2, 2.4.2, 2.5.0, 2.5.0, 2.5.1, 2.5.1, 2.6.0, 2.6.0, 2.6.1, 2.6.1, 2.7.0, 2.7.0, 3.0.0, 3.0.0, 3.0.1, 3.0.1, 3.1.0, 3.1.0, 3.1.1, 3.1.1, 3.1.2, 3.1.2, 3.1.3, 3.1.3, 3.1.4, 3.1.4, 3.2.0, 3.2.0, 3.2.1, 3.2.1, 3.3.0, 3.3.0, 3.4.0, 3.4.0, 3.4.1, 3.4.1, 3.5.0, 3.5.0, 3.5.1, 3.5.1, 3.6.0, 3.6.0, 3.7.0, 3.7.0, 3.7.1, 3.7.1, 3.7.2, 3.7.2, 3.7.3, 3.7.3, 4.0.0, 4.0.0, 4.0.1, 4.0.1, 4.0.2, 4.0.2, 4.1.0, 4.1.0, 4.2.0, 4.2.0, 4.2.1, 4.2.1, 4.2.2, 4.2.2, 4.3.0, 4.3.0, 4.3.1, 4.3.1, 4.4.0, 4.4.0, 4.4.1, 4.4.1, 4.4.2, 4.4.2, 4.4.3, 4.4.3, 4.4.4, 4.4.4, 5.0.0, 5.0.0, 5.0.1, 5.0.1, 5.0.2, 5.0.2, 5.0.3, 5.0.3
    There are incompatible versions in the resolved dependencies:
    docker<4.3.0 (from -r requirements.in (line 7))
    docker (from testcontainers===dev->-r requirements.in (line 1))
    docker[ssh]>=5 (from docker-compose==1.29.2->testcontainers===dev->-r requirements.in (line 1))

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions