-
Notifications
You must be signed in to change notification settings - Fork 6.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
./transcribe_model_selection.py --> TypeError: __init__() got an unexpected keyword argument 'file' #1654
Comments
Hi, Which version of the library are you currently using?
|
Name: google-cloud-speech |
upgraded to 0.36 and still same issue. Name: google-cloud-speech |
Huh, interesting. Have you tried using a virtual environment to reinstall? I'm guessing you used Is your Python version the one that comes installed on Mac? (Trying to repeat the steps) |
Updated that sample with the new library: #1702 How about using the v1 library. |
upgraded protobuf and now I am seeing an solvable error. Thanks for the help |
👍 |
In which file did you encounter the issue?
https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/speech/cloud-client/transcribe_model_selection.py
Did you change the file? If so, how?
No
Describe the issue
same script has worked in the past without any changes. My other personal script has started failing on importing beta speech api with the same error.
File "./transcribe_model_selection.py", line 100, in
transcribe_model_selection_gcs(args.path, args.model)
File "./transcribe_model_selection.py", line 62, in transcribe_model_selection_gcs
from google.cloud import speech_v1p1beta1 as speech
File "/Library/Python/2.7/site-packages/google/cloud/speech_v1p1beta1/init.py", line 17, in
from google.cloud.speech_v1p1beta1 import types
File "/Library/Python/2.7/site-packages/google/cloud/speech_v1p1beta1/types.py", line 21, in
from google.cloud.speech_v1p1beta1.proto import cloud_speech_pb2
File "/Library/Python/2.7/site-packages/google/cloud/speech_v1p1beta1/proto/cloud_speech_pb2.py", line 286, in
options=None, file=DESCRIPTOR),
TypeError: init() got an unexpected keyword argument 'file'
The text was updated successfully, but these errors were encountered: