Skip to content

Getting AttributeError in Streaming API client #719

@chan71

Description

@chan71

In which file did you encounter the issue?

https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/speech/grpc/transcribe_streaming.py

Did you change the file? If so, how?

No changes to file.

Describe the issue

Getting an error when the file is run after setting the environment variable GOOGLE_APPLICATION_CREDENTIALS. I'm using Python 2.7.11 on Windows 8.1.

Stack trace:

C:\test>python transcribe_streaming.py
Traceback (most recent call last):
  File "transcribe_streaming.py", line 238, in <module>
    main()
  File "transcribe_streaming.py", line 214, in main
    make_channel('speech.googleapis.com', 443)) as service:
  File "transcribe_streaming.py", line 52, in make_channel
    creds = credentials.get_credentials().create_scoped([SPEECH_SCOPE])
AttributeError: 'Credentials' object has no attribute 'create_scoped'

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions