반응형
반응형

google.api_core.exceptions.OutOfRange: 400 Exceeded maximum allowed stream duration of 305 seconds.

"최대 허용 스트림 길이 인 65 초를 초과했습니다."
더 많은 시간 동안 "DEADLINE_SECS"를 수정하려고했지만 작동하지 않았습니다.

 

5 분마다 예외를 포착하는 것은 최적이 아니지만 작동합니다.

 

o think about and already seen in your mom about this is more like a summarizing and reflecting you know back and and the ones were doing studi study the first part was a mobile diary and now a lot of the things we're going to talk about during this interview you have already started to think about and already seen in your mom about this is more like a summarizing and reflecting you know back and and the ones were doing studiTraceback (most recent call last): like how was it for the sweetest person consume that you know and
  File "C:\__STT\env\lib\site-packages\google\api_core\grpc_helpers.py", line 97, in next
    return six.next(self._wrapped)
  File "C:\__STT\env\lib\site-packages\grpc\_channel.py", line 416, in __next__
    return self._next()
  File "C:\__STT\env\lib\site-packages\grpc\_channel.py", line 803, in _next
    raise self
grpc._channel._MultiThreadedRendezvous: <_MultiThreadedRendezvous of RPC that terminated with:
        status = StatusCode.OUT_OF_RANGE
        details = "Exceeded maximum allowed stream duration of 305 seconds."
        debug_error_string = "{"created":"@1605234860.496000000","description":"Error received from peer ipv4:216.58.197.234:443","file":"src/core/lib/surface/call.cc","file_line":1062,"grpc_message":"Exceeded maximum allowed stream duration of 305 seconds.","grpc_status":11}"
>

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "test.py", line 189, in <module>
    main()
  File "test.py", line 185, in main
    listen_print_loop(responses)
  File "test.py", line 124, in listen_print_loop
    for response in responses:
  File "C:\__STT\env\lib\site-packages\google\api_core\grpc_helpers.py", line 100, in next
    six.raise_from(exceptions.from_grpc_error(exc), exc)
  File "<string>", line 3, in raise_from
google.api_core.exceptions.OutOfRange: 400 Exceeded maximum allowed stream duration of 305 seconds.

(env) C:\__STT>
반응형
반응형

ImportError: cannot import name 'enums' from 'google.cloud.speech'  

 

위 에러나서 테스트 안되었는데, 수정되었다고함. enums, types 사용안하면 됨 

 

 

github.com/googleapis/python-speech/blob/master/UPGRADING.md#enums-and-types

 

googleapis/python-speech

Contribute to googleapis/python-speech development by creating an account on GitHub.

github.com

(env) C:\__STT>python test.py
Traceback (most recent call last):
  File "test.py", line 35, in <module>
    from google.cloud.speech import enums
ImportError: cannot import name 'enums' from 'google.cloud.speech'

 

 

반응형
반응형

python을 cmd 명령프롬프트에서 사용 할 수 있도록 환경변수 설정하기. 

 

1.Window + R 키 선택.

2.아래 창 뜨면 sysdm.cpl 입력 후 확인

3.시스템 창이 뜨면 상단 탭중에 "고급" 선택. "환경변수" 버튼 클릭

4."환경변수" 창에서 시스템 변수 "Path"를 선택 후 "편집" 클릭.

 

5. 해당 파이썬 폴더와 script 폴더를 경로 추가 후 CMD 창에서 테스트 해보면 됩니다. 

반응형
반응형
반응형
반응형

https://www.pycon.kr/2020/

 

파이콘 한국 2020

파이콘 한국 2020: 9월 26-27일

www.pycon.kr

파이콘 한국 2020온라인 컨퍼런스 9/26(토) - 9/27(일)

반응형
반응형
반응형

+ Recent posts