GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Client.from_service_account_json raises a TypeError · Issue #1771 · googleapis/google-cloud-python

Client.from_service_account_json raises a TypeError #1771

New issue
Copy link
New issue
Copy link
Closed
Closed
Client.from_service_account_json raises a TypeError#1771
Copy link
Assignees
dhermes
Labels
auth

Description

@Morreski
Morreski
opened on May 3, 2016
Issue body actions

When executing:

client = Client.from_service_account_json('./key.json')

A TypeError is raised from oauth2client because the method create_scoped from oauth2client.service_account.ServiceAccountCredentials is called with scopes=None although this parameter expects an iterable.

Maybe the SCOPE variable in connection.py (line 69) should be an empty set instead of a None object ? I don't know what would be the side effects of such a change.

Activity

  1. dhermes
    added
    auth
    on May 3, 2016
  2. dhermes commented on May 3, 2016

    @dhermes
    dhermes
    on May 3, 2016
    Contributor
    More actions

    @Morreski Can you provide a snippet of gcloud-python that uses a null value for scopes?

  3. Morreski commented on May 3, 2016

    @Morreski
    Morreski
    on May 3, 2016
    Author
    More actions

    Well NVM this ticket this was a fail, just spotted i had an error in my imports, that made me instantiate the base client class instead of pubsub client class...

    Reacted by Julien Collard
  4. dhermes commented on May 3, 2016

    @dhermes
    dhermes
    on May 3, 2016
    Contributor
    More actions

    Good deal! Thanks for taking the time to report it!

  5. dhermes
    closed this as completedon May 3, 2016
  6. JustinBeckwith
    assigned
    dhermes
    on Feb 1, 2021
  7. parthea
    added a commit that references this issue on Oct 21, 2023

    KMS import comments [(#1771)](GoogleCloudPlatform/python-docs-samples…

    e6ee01e
  8. parthea
    added a commit that references this issue on Mar 6, 2026

    feature: add query location for bigquery magic (#1771)

    31ca8f6
  9. chalmerlowe
    added a commit that references this issue on Mar 26, 2026

    chore: skip hmac tests until b/493225655 is fixed (#1771)

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

Metadata

Metadata

Assignees

  • @dhermes
    dhermes

Labels

auth

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.