You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How shall I rectify this error?
getting this error on running the given line of code : blob_name=video_to_audio(video_path, "audio.wav", channels, bit_rate, sample_rate)
Tho my credentials are working fine on other projects.
~/.local/lib/python3.8/site-packages/google/cloud/client/init.py in init(self, credentials, _http, client_options)
167 raise ValueError(_GOOGLE_AUTH_CREDENTIALS_HELP)
168
--> 169 scopes = client_options.scopes or self.SCOPE
170
171 # if no http is provided, credentials must exist
AttributeError: 'ClientOptions' object has no attribute 'scopes'
The text was updated successfully, but these errors were encountered:
How shall I rectify this error?
getting this error on running the given line of code : blob_name=video_to_audio(video_path, "audio.wav", channels, bit_rate, sample_rate)
Tho my credentials are working fine on other projects.
AttributeError Traceback (most recent call last)
in
----> 1 blob_name=video_to_audio(video_path, "audio.wav", channels, bit_rate, sample_rate)
2 print(blob_name)
in video_to_audio(video_filepath, audio_filename, video_channels, video_bit_rate, video_sample_rate)
5 blob_name = f"{audio_filename}" #audios/
6 print(blob_name)
----> 7 upload_blob(BUCKET_NAME, audio_filename, blob_name)
8 return blob_name
in upload_blob(bucket_name, source_file_name, destination_blob_name)
5 # destination_blob_name = "storage-object-name"
6
----> 7 storage_client = storage.Client()
8 bucket = storage_client.bucket(bucket_name)
9 blob = bucket.blob(destination_blob_name)
~/.local/lib/python3.8/site-packages/google/cloud/storage/client.py in init(self, project, credentials, _http, client_info, client_options)
159 project = ""
160
--> 161 super(Client, self).init(
162 project=project,
163 credentials=credentials,
~/.local/lib/python3.8/site-packages/google/cloud/client/init.py in init(self, project, credentials, client_options, _http)
319 def init(self, project=None, credentials=None, client_options=None, _http=None):
320 _ClientProjectMixin.init(self, project=project, credentials=credentials)
--> 321 Client.init(
322 self, credentials=credentials, client_options=client_options, _http=_http
323 )
~/.local/lib/python3.8/site-packages/google/cloud/client/init.py in init(self, credentials, _http, client_options)
167 raise ValueError(_GOOGLE_AUTH_CREDENTIALS_HELP)
168
--> 169 scopes = client_options.scopes or self.SCOPE
170
171 # if no http is provided, credentials must exist
AttributeError: 'ClientOptions' object has no attribute 'scopes'
The text was updated successfully, but these errors were encountered: