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

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

Open
Kryptonite12 opened this issue Oct 8, 2020 · 0 comments
Open

Comments

@Kryptonite12
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant