-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Description
In which file did you encounter the issue?
speech/cloud-client/quickstart.py
Did you change the file? If so, how?
No, straight from cloning the project
Describe the issue
Python 2.7.6
Followed the Readme instructions (https://github.com/GoogleCloudPlatform/python-docs-samples/tree/master/speech/cloud-client) to clone the python samples and and installed dependencies.
The only requirements.txt that was ran was from speech/cloud-client/requirements.txt
However, after setting up authentication by running export GOOGLE_APPLICATION_CREDENTIALS=, I ran the command python quickstart.py.
Following error was received:
$ python quickstart.py
Traceback (most recent call last):
File "quickstart.py", line 60, in
run_quickstart()
File "quickstart.py", line 32, in run_quickstart
client = speech.SpeechClient()
File "/home/ubuntu/workspace/speech_tests/env/local/lib/python2.7/site-packages/google/cloud/speech_v1/gapic/speech_client.py", line 112, in init
credentials=credentials,
File "/home/ubuntu/workspace/speech_tests/env/local/lib/python2.7/site-packages/google/cloud/speech_v1/gapic/transports/speech_grpc_transport.py", line 73, in init
self._operations_client = google.api_core.operations_v1.OperationsClient(channel)
File "/home/ubuntu/workspace/speech_tests/env/local/lib/python2.7/site-packages/google/api_core/operations_v1/operations_client.py", line 59, in init
self.operations_stub = operations_pb2.OperationsStub(channel)
AttributeError: 'module' object has no attribute 'OperationsStub'