-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
google.gax.errors.GaxError #4885
Comments
Hello, you did not mention the version number of speech that you are using. However, we are trying to get rid of the gax library and you may be able to fix this error using the latest version. Please try upgrading by using |
I am using 0.3 version for speech .
I ran upgrade , but still same error
Waiting for operation to complete...Traceback (most recent call last): File
"transcribe_async.py", line 100, in <module> transcribe_gcs(args.path) File
"transcribe_async.py", line 81, in transcribe_gcs response =
operation.result(timeout=90) #90 File
"/usr/local/lib/python2.7/dist-packages/google/gax/__init__.py", line 596,
in result raise GaxError(self._operation.error.message)
google.gax.errors.GaxError
…On Thu, Feb 15, 2018 at 6:27 PM, chemelnucfin ***@***.***> wrote:
Hello, you did not mention the version number of speech that you are
using. However, we are trying to get rid of the gax library and you may be
able to fix this error using the latest version.
Please try upgrading by using pip install -- upgrade. Please let us know
if you encounter any more questions.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4885 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AhvSPhCxmSLr3miD9kX-OK0qPqsGXOGEks5tVD7AgaJpZM4SGtKj>
.
|
Even if I use sample file i get same error
python transcribe_async.py resources/audio.rawWaiting for operation to
complete...Traceback (most recent call last): File "transcribe_async.py",
line 102, in <module> transcribe_file(args.path) File
"transcribe_async.py", line 52, in transcribe_file response =
operation.result(timeout=90) File
"/usr/local/lib/python2.7/dist-packages/google/gax/__init__.py", line 596,
in result raise GaxError(self._operation.error.message)
google.gax.errors.GaxError
On Fri, Feb 16, 2018 at 7:32 PM, Abhishek Jain <[email protected]>
wrote:
… I am using 0.3 version for speech .
I ran upgrade , but still same error
Waiting for operation to complete...Traceback (most recent call last):
File "transcribe_async.py", line 100, in <module>
transcribe_gcs(args.path) File "transcribe_async.py", line 81, in
transcribe_gcs response = operation.result(timeout=90) #90 File
"/usr/local/lib/python2.7/dist-packages/google/gax/__init__.py", line
596, in result raise GaxError(self._operation.error.message)google.gax.
errors.GaxError
On Thu, Feb 15, 2018 at 6:27 PM, chemelnucfin ***@***.***>
wrote:
> Hello, you did not mention the version number of speech that you are
> using. However, we are trying to get rid of the gax library and you may be
> able to fix this error using the latest version.
>
> Please try upgrading by using pip install -- upgrade. Please let us know
> if you encounter any more questions.
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#4885 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AhvSPhCxmSLr3miD9kX-OK0qPqsGXOGEks5tVD7AgaJpZM4SGtKj>
> .
>
|
@abhibeta we've completely removed gax from the latest version of the speech client, so it's very unusual that you're still getting that error with an update version. Can you give us the output of |
apic-google-cloud-error-reporting-v1beta1==0.15.3
gapic-google-cloud-logging-v2==0.91.3google==2.0.1google-api-core==0.1.4
google-api-python-client==1.6.5google-auth==1.4.1google-cloud==0.32.0
google-cloud-bigquery==0.28.0google-cloud-bigquery-datatransfer==0.1.0
google-cloud-bigtable==0.28.1google-cloud-container==0.1.0
google-cloud-core==0.28.0google-cloud-datastore==1.4.0
google-cloud-dns==0.28.0google-cloud-error-reporting==0.28.0
google-cloud-firestore==0.28.0google-cloud-language==1.0.0
google-cloud-logging==1.4.0google-cloud-monitoring==0.28.0
google-cloud-pubsub==0.30.1google-cloud-resource-manager==0.28.0
google-cloud-runtimeconfig==0.28.0google-cloud-spanner==0.29.0
google-cloud-speech==0.30.0google-cloud-storage==1.6.0
google-cloud-trace==0.17.0google-cloud-translate==1.3.0
google-cloud-videointelligence==1.0.0google-cloud-vision==0.29.0
google-gax==0.15.16google-resumable-media==0.3.1
googleapis-common-protos==1.5.3grpc-google-iam-v1==0.11.4grpcio==1.9.1
httplib2==0.10.3idna==2.6oauth2client==3.0.0ply==3.8
proto-google-cloud-datastore-v1==0.90.4
proto-google-cloud-error-reporting-v1beta1==0.15.3
proto-google-cloud-logging-v2==0.91.3protobuf==3.5.1psutil==5.4.3
pyasn1==0.4.2pyasn1-modules==0.2.1pytz==2018.3requests==2.18.4rsa==3.4.2
six==1.11.0uritemplate==3.0.0urllib3==1.22
…On Fri, Feb 16, 2018 at 8:49 PM, Jon Wayne Parrott ***@***.*** > wrote:
@abhibeta <https://github.com/abhibeta> we've completely removed gax from
the latest version of the speech client, so it's very unusual that you're
still getting that error with an update version. Can you give us the output
of pip freeze?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4885 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AhvSPnL5Q_sBPh7Q7WcbV_Ng2TL3ejizks5tVbGdgaJpZM4SGtKj>
.
|
I see. Can you run @lukesneeringer more fuel for that "remove the umbrella package" fire. |
Got upgraded to 0.32 version from 0.30.
but getting different error from same line
```
python transcribe_async.py gs://
staging.deeplearning-193422.appspot.com/test1.mp3
Waiting for operation to complete...
Traceback (most recent call last):
File "transcribe_async.py",
line 100, in <module> transcribe_gcs(args.path)
File "transcribe_async.py",
line 81, in transcribe_gcs response = operation.result(timeout=90) #90
File"/home/geek_abhishek/python-docs-samples/speech/cloud-client/env/lib/python3.5/site-packages/google/api_core/future/polling.py",
line 111, in result raise
self._exceptiongoogle.api_core.exceptions.GoogleAPICallError:
None Unexpected state: Long-running operation had neither response nor
error set.
```
```
(env)
geek_abhishek@deeplearning-193422:~/python-docs-samples/speech/cloud-client$
python transcribe_async.py resources/audio.rawWaiting for operation to
complete...Traceback (most recent call last): File "transcribe_async.py",
line 102, in <module> transcribe_file(args.path) File
"transcribe_async.py", line 52, in transcribe_file response =
operation.result(timeout=90) File
"/home/geek_abhishek/python-docs-samples/speech/cloud-client/env/lib/python3.5/site-packages/google/api_core/future/polling.py",
line 111, in result raise
self._exceptiongoogle.api_core.exceptions.GoogleAPICallError:
None Unexpected state: Long-running operation had neither response nor
error set.
```
…On Fri, Feb 16, 2018 at 8:54 PM, Jon Wayne Parrott ***@***.*** > wrote:
I see. Can you run pip install --upgrade google-cloud-speech and try
again?
@lukesneeringer <https://github.com/lukesneeringer> more fuel for that
"remove the umbrella package" fire.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4885 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AhvSPlxxUm7lzCCC_wmUmGm4me2uc1Tdks5tVbLcgaJpZM4SGtKj>
.
|
Is sample code working for you
running python transcribe_async.py resources/audio.raw from gcloud.
On Fri, Feb 16, 2018 at 9:01 PM, Abhishek Jain <[email protected]>
wrote:
… Got upgraded to 0.32 version from 0.30.
but getting different error from same line
python transcribe_async.py gs://staging.deeplearning-
193422.appspot.com/test1.mp3Waiting for operation to complete...Traceback
(most recent call last): File "transcribe_async.py", line 100, in <module>
transcribe_gcs(args.path) File "transcribe_async.py", line 81, in
transcribe_gcs response = operation.result(timeout=90) #90 File
"/home/geek_abhishek/python-docs-samples/speech/cloud-
client/env/lib/python3.5/site-packages/google/api_core/future/polling.py",
line 111, in result raise self._exceptiongoogle.api_core.exceptions.GoogleAPICallError:
None Unexpected state: Long-running operation had neither response nor
error set.(env) ***@***.***:~/python-docs-samples/speech/cloud-client$
python transcribe_async.py resources/audio.rawWaiting for operation to
complete...Traceback (most recent call last): File "transcribe_async.py",
line 102, in <module> transcribe_file(args.path) File
"transcribe_async.py", line 52, in transcribe_file response =
operation.result(timeout=90) File "/home/geek_abhishek/python-
docs-samples/speech/cloud-client/env/lib/python3.5/site-
packages/google/api_core/future/polling.py", line 111, in result raise
self._exceptiongoogle.api_core.exceptions.GoogleAPICallError: None
Unexpected state: Long-running operation had neither response nor error set.
On Fri, Feb 16, 2018 at 8:54 PM, Jon Wayne Parrott <
***@***.***> wrote:
> I see. Can you run pip install --upgrade google-cloud-speech and try
> again?
>
> @lukesneeringer <https://github.com/lukesneeringer> more fuel for that
> "remove the umbrella package" fire.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#4885 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AhvSPlxxUm7lzCCC_wmUmGm4me2uc1Tdks5tVbLcgaJpZM4SGtKj>
> .
>
|
@chemelnucfin can you investigate? |
@abhibeta I am running on python2.7 and I'm able to run on the local file I will try gs in a moment. However, it seems inconsistent with what you are seeing. I'm wondering if it's some package collision. |
@abhibeta I do see the error in gs. Looking into it. |
@abhibeta I think it might have to do with the encoding of the file. Using audio.raw on gs, the encoding was set to enums.RecognitionConfig.AudioEncoding.FLAC, but the local file used LINEAR16. When I changed the code to the following, it worked on gs.
|
Thanks @chemelnucfin
Seems some where some code got edited , I copied and replaced
transcribe_async.py
I am getting output for both local and gs in python 2.7 and 3.5 for sample
files
I* will try my files now and update you *
python 2.7
python transcribe_async.py gs://cloud-samples-tests/speech/vr.flacWaiting
for operation to complete...Transcript: it's okay so what am I doing here
why am I here at GDC talking about VR video it's because I believe my
favorite games I love games I believe in games my favorite games are the
ones that are all about the stories I love narrative game design I love
narrative based games and I think that when it comes to telling stories in
VR bring together capturing the world with narrative based games and
narrative base game design is going to unlock some of the killer apps and
killer stories of the mediumConfidence: 0.94491559267Transcript: so I'm
really here looking for people who are interested in telling us or two
stories that are planning projects around telling those types of stories
and I would love to talk to you so if this sounds like your project if
you're looking at blending VR video and interactivity to tell a story I
want to talk to you I want to help you so if this sounds like you please
get in touch please come find me I'll be here all week I have pink hair I
work for Google and I would love to talk with you further about VR video
interactivity in storytellingConfidence: 0.943127572536
python 3.5
python transcribe_async.py gs://cloud-samples-tests/speech/vr.flacWaiting
for operation to complete...Transcript: it's okay so what am I doing here
why am I here at GDC talking about VR video it's because I believe my
favorite games I love games I believe in games my favorite games are the
ones that are all about the stories I love narrative game design I love
narrative based games and I think that when it comes to telling stories in
VR bring together capturing the world with narrative based games and
narrative based game design is going to unlock some of the killer apps and
killer stories of the mediumConfidence: 0.9730620384216309Transcript: so
I'm really here looking for people who are interested in telling us or two
stories that are planning projects around telling those types of stories
and I would love to talk to you so if this sounds like your project if
you're looking at blending VR video and interactivity to tell a story I
want to talk to you I want to help you so if this sounds like you please
get in touch please come find me I'll be here all week I have been care I
work for Google and I would love to talk with you further about VR video
interactivity and storytellingConfidence: 0.965194821357727
…On Fri, Feb 16, 2018 at 11:33 PM, chemelnucfin ***@***.***> wrote:
@abhibeta <https://github.com/abhibeta> I do see the error in gs. Looking
into it.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4885 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AhvSPiFHiWfvC0ynYVLtCKxqxUZ7Dotiks5tVdfzgaJpZM4SGtKj>
.
|
Thanks.
Recommend 2 edits
1. in requirement.txt change google-cloud-speech==0.30.0 to 0.32.0
2. Is there any way to handle encoding error better , error thrown was
quite generic.
Now I am going go try with my own file
…On Fri, Feb 16, 2018 at 11:51 PM, chemelnucfin ***@***.***> wrote:
@abhibeta <https://github.com/abhibeta> I think it might have to do with
the encoding of the file. Using audio.raw on gs, the encoding was set to
enums.RecognitionConfig.AudioEncoding.FLAC, but the local file used
LINEAR16. When I changed the code to the following, it worked on gs.
config = types.RecognitionConfig(
encoding=enums.RecognitionConfig.AudioEncoding.LINEAR16,
sample_rate_hertz=16000,
language_code='en-US')
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4885 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AhvSPrDdwQlmQNwnDz2koMasbtQCH096ks5tVdxIgaJpZM4SGtKj>
.
|
@abhibeta Are you able to get the transcription working for your file? |
Yes I am , thanks a lot.
Wondering if we have a way out to transcript a 2 channel file like a audio
from call center .
Splitting in 2 channels breaks the conversation .
…On Fri, Feb 23, 2018 at 8:58 PM chemelnucfin ***@***.***> wrote:
@abhibeta <https://github.com/abhibeta> Are you able to get the
transcription working for your file?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4885 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AhvSPvvSfF7IN0LIL3TykbrneseGE8s_ks5tXu4qgaJpZM4SGtKj>
.
|
@abhibeta I have opened some issues which relates to the problems that you are having now. I will now close this original issue which is now resolved. Please do let me know if you have some other concerns. |
Thanks. Working as expected.
Loop me in thread where you open new issues.
…On Sun, Feb 25, 2018 at 11:50 PM chemelnucfin ***@***.***> wrote:
Closed #4885
<#4885>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4885 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AhvSPnOfAacjR4d7gRm7nWjq5rSXEG47ks5tYbmLgaJpZM4SGtKj>
.
|
Thank you for reporting an issue to google-cloud-python!
If you are reporting an issue or requesting a feature, please search the
existing open and closed issues to see if there is already work being done.
If you can provide us with as much of the following information as possible it
will help us identify the cause of your issue more quickly.
1.Speech-Recognization
2. Ubunto 16.04
3. Python 2.7
4. Python 2.7
5. Waiting for operation to complete...
Traceback (most recent call last):
File "transcribe_async.py", line 100, in
transcribe_gcs(args.path)
File "transcribe_async.py", line 81, in transcribe_gcs
response = operation.result(timeout=None) #90
File "/usr/local/lib/python2.7/dist-packages/google/gax/init.py", line 596, in result
raise GaxError(self._operation.error.message)
google.gax.errors.GaxError
6. use https://storage.googleapis.com/staging.deeplearning-193422.appspot.com/test1.mp3 in transcribe_async.py
7. Run from google cloud shell python transcribe_async.py gs://staging.deeplearning-193422.appspot.com/test1.mp3
Using GitHub flavored markdown can help make your request clearer.
See: https://guides.github.com/features/mastering-markdown/
The text was updated successfully, but these errors were encountered: