Skip to content

KeyError: 'Could not find client id and client secret. Tried params, keyring, environment.' #44

@GefenPuravida

Description

@GefenPuravida

After successfully passing step 3 in the authentication, and error pops up:

---------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last)
<ipython-input-19-ae6b50a418be> in <module>
     13     json.dump(credentials, open('credentials.json', 'w'))
     14 
---> 15 ga.authenticate(*credentials)

~\Anaconda3\lib\site-packages\googleanalytics\auth\__init__.py in authenticate(client_id, client_secret, client_email, private_key, access_token, refresh_token, account, webproperty, profile, identity, prefix, suffix, interactive, save)
     70         access_token=access_token,
     71         refresh_token=refresh_token,
---> 72         identity=identity,
     73         )
     74 

~\Anaconda3\lib\site-packages\googleanalytics\auth\credentials.py in find(cls, interactive, valid, complete, **params)
     96         elif valid and credentials.invalid:
     97             raise KeyError("Could not find client id and client secret. Tried {attempted}.".format(
---> 98                 attempted=attempted))
     99         else:
    100             return credentials

KeyError: 'Could not find client id and client secret. Tried params, keyring, environment.'

Also in colab, similar block (thought it might be related):

An error occured No recommended backend was available. Install a recommended 3rd party backend package; or, install the keyrings.alt package if you want to use the non-recommended backends. See https://pypi.org/project/keyring for details.

Blessings to you all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions