Visitar URL original
Pubsub: 'thread_name_prefix' error · Issue #6008 · googleapis/google-cloud-python · GitHub
Skip to content

Pubsub: 'thread_name_prefix' error #6008

Closed

Description

@kerighan

Hi !

I have installed and upgraded google cloud (Im' working on Python 2.7), but whenever I try to create a SubscriberClient object, I get the following error : TypeError: init() got an unexpected keyword argument 'thread_name_prefix'

This happens on my machine but also on Google Compute engines. This error comes from the fact that the concurrent.futures.ThreadPoolExecutor class does not have a "thread_name_prefix" argument.

Do you have a solution for my error ? Can you reproduce it ? Thank you very much for your help !

Activity

  1. tseaver commented on Sep 18, 2018

    @tseaver
    Contributor

    Can you please provide the complete traceback? Also, the output from pip freeze?

  2. changed the title [-]google Pubsub - thread_name_prefix error[/-] [+]Pubsub: 'thread_name_prefix' error[/+] on Sep 18, 2018
  3. tseaver commented on Sep 26, 2018

    @tseaver
    Contributor

    The release notes for google-cloud-pubsub 0.29.3 note (in the "Dependencies" section):

    Upgrading google-api-core dependency to latest revision (0.1.2) since we rely on the latest version of the concurrent.futures backport to provide the thread_name_prefix argument for thread pool executor (#4521, #4559).

    Please try in a fresh virtual environment, or else upgrade the dependencies in your current environment.

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

Metadata

Metadata

Assignees

Labels

api: pubsubIssues related to the Pub/Sub API.packagingtype: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions