Skip to content
This repository was archived by the owner on Sep 3, 2022. It is now read-only.

AttributeError: module 'google.auth' has no attribute 'credentials' #2174

@Kryptonite12

Description

@Kryptonite12

My code is breaking at,
client = speech.SpeechClient()

Error:
Traceback (most recent call last):

File "C:\Users\a.spyder-py3\audio_to_speech.py", line 57, in
client = speech.SpeechClient()

File "C:\Users\a\anaconda3\lib\site-packages\google\cloud\speech_v1\services\speech\client.py", line 250, in init
self._transport = Transport(

File "C:\Users\a\anaconda3\lib\site-packages\google\cloud\speech_v1\services\speech\transports\grpc.py", line 158, in init
self._grpc_channel = type(self).create_channel(

File "C:\Users\a\anaconda3\lib\site-packages\google\cloud\speech_v1\services\speech\transports\grpc.py", line 215, in create_channel
return grpc_helpers.create_channel(

File "C:\Users\a\anaconda3\lib\site-packages\google\api_core\grpc_helpers.py", line 275, in create_channel
composite_credentials = _create_composite_credentials(

File "C:\Users\a\anaconda3\lib\site-packages\google\api_core\grpc_helpers.py", line 215, in _create_composite_credentials
credentials = google.auth.credentials.with_scopes_if_required(credentials, scopes)

AttributeError: module 'google.auth' has no attribute 'credentials'

I am using Python 3.8.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions