yandex-cloud / cloudapi

Interface definitions of Yandex.Cloud API
MIT License
85 stars 34 forks source link

Проблема с yandex/cloud/validation.proto #17

Closed Banzaika closed 1 year ago

Banzaika commented 1 year ago

Я следовал документации на странице https://cloud.yandex.ru/docs/speechkit/stt/api/microphone-streaming и при запуске test.py получаю (я даже пробовал скопировать validation.proto из yandex/cloud в output/yandex/cloud): $ python test.py Traceback (most recent call last): File "/Users/macbook/code/speechkit/cloudapi/output/test.py", line 5, in import yandex.cloud.ai.stt.v3.stt_service_pb2_grpc as stt_service_pb2_grpc File "/Users/macbook/code/speechkit/cloudapi/output/yandex/cloud/ai/stt/v3/stt_service_pb2_grpc.py", line 6, in from yandex.cloud.ai.stt.v3 import stt_service_pb2 as yandex_dot_cloud_dot_ai_dot_stt_dot_v3_dot_sttservicepb2 File "/Users/macbook/code/speechkit/cloudapi/output/yandex/cloud/ai/stt/v3/stt_service_pb2.py", line 21, in DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n(yandex/cloud/ai/stt/v3/stt_service.proto\x12\x10speechkit.stt.v3\x1a yandex/cloud/ai/stt/v3/stt.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1dyandex/cloud/validation.proto\x1a yandex/cloud/api/operation.proto\x1a&yandex/cloud/operation/operation.proto\";\n\x15GetRecognitionRequest\x12\"\n\x0coperation_id\x18\x01 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04=502q\n\nRecognizer\x12\x63\n\x12RecognizeStreaming\x12\".speechkit.stt.v3.StreamingRequest\x1a#.speechkit.stt.v3.StreamingResponse\"\x00(\x01\x30\x01\x32\xb3\x02\n\x0f\x41syncRecognizer\x12\x9c\x01\n\rRecognizeFile\x12&.speechkit.stt.v3.RecognizeFileRequest\x1a!.yandex.cloud.operation.Operation\"@\xb2\xd2*\x17\x12\x15google.protobuf.Empty\x82\xd3\xe4\x93\x02\x1f\"\x1a/stt/v3/recognizeFileAsync:\x01*\x12\x80\x01\n\x0eGetRecognition\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^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: Couldn't build proto file into descriptor pool: Depends on file 'yandex/cloud/validation.proto', but it has not been loaded

nikolaymatrosov commented 1 year ago

Попробуйте добавить требуемый файл в команду компиляции proto-файлов.

Banzaika commented 1 year ago

Попробуйте добавить требуемый файл в команду компиляции прототипов файлов.

Спасибо большое, Николай, помогло!