GithubHelp home page GithubHelp logo

translate_v3_batch_translate_text_with_glossary_and_model_test: test_batch_translate_text_with_glossary_and_model failed about python-translate HOT 5 CLOSED

googleapis avatar googleapis commented on July 2, 2024
translate_v3_batch_translate_text_with_glossary_and_model_test: test_batch_translate_text_with_glossary_and_model failed

from python-translate.

Comments (5)

munkhuushmgl avatar munkhuushmgl commented on July 2, 2024

This will be fixed on next release.

from python-translate.

flaky-bot avatar flaky-bot commented on July 2, 2024

commit: 273983a
buildURL: Build Status, Sponge
status: failed

Test output
args = (parent: "projects/python-docs-samples-tests/locations/us-central1"
source_language_code: "en"
target_language_codes: ...   glossary: "projects/python-docs-samples-tests/locations/us-central1/glossaries/DO_NOT_DELETE_TEST_GLOSSARY"
  }
}
,)
kwargs = {'metadata': [('x-goog-request-params', 'parent=projects/python-docs-samples-tests/locations/us-central1'), ('x-goog-api-client', 'gl-python/3.8.8 grpc/1.38.0 gax/1.30.0 gapic/3.2.0')]}
@six.wraps(callable_)
def error_remapped_callable(*args, **kwargs):
    try:
      return callable_(*args, **kwargs)

.nox/py-3-8/lib/python3.8/site-packages/google/api_core/grpc_helpers.py:67:


self = <grpc._channel._UnaryUnaryMultiCallable object at 0x7f8574076a90>
request = parent: "projects/python-docs-samples-tests/locations/us-central1"
source_language_code: "en"
target_language_codes: "...
glossary: "projects/python-docs-samples-tests/locations/us-central1/glossaries/DO_NOT_DELETE_TEST_GLOSSARY"
}
}

timeout = None
metadata = [('x-goog-request-params', 'parent=projects/python-docs-samples-tests/locations/us-central1'), ('x-goog-api-client', 'gl-python/3.8.8 grpc/1.38.0 gax/1.30.0 gapic/3.2.0')]
credentials = None, wait_for_ready = None, compression = None

def __call__(self,
             request,
             timeout=None,
             metadata=None,
             credentials=None,
             wait_for_ready=None,
             compression=None):
    state, call, = self._blocking(request, timeout, metadata, credentials,
                                  wait_for_ready, compression)
  return _end_unary_response_blocking(state, call, False, None)

.nox/py-3-8/lib/python3.8/site-packages/grpc/_channel.py:946:


state = <grpc._channel._RPCState object at 0x7f8574083040>
call = <grpc._cython.cygrpc.SegregatedCall object at 0x7f8574081680>
with_call = False, deadline = None

def _end_unary_response_blocking(state, call, with_call, deadline):
    if state.code is grpc.StatusCode.OK:
        if with_call:
            rendezvous = _MultiThreadedRendezvous(state, call, None, deadline)
            return state.response, rendezvous
        else:
            return state.response
    else:
      raise _InactiveRpcError(state)

E grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
E status = StatusCode.FAILED_PRECONDITION
E details = "The model is deprecated and no longer servable, please try to use other models.; Model name: 'projects/1012616486416/locations/us-central1/models/TRL3128559826197068699'."
E debug_error_string = "{"created":"@1623929074.965843221","description":"Error received from peer ipv4:74.125.195.95:443","file":"src/core/lib/surface/call.cc","file_line":1066,"grpc_message":"The model is deprecated and no longer servable, please try to use other models.; Model name: 'projects/1012616486416/locations/us-central1/models/TRL3128559826197068699'.","grpc_status":9}"
E >

.nox/py-3-8/lib/python3.8/site-packages/grpc/_channel.py:849: _InactiveRpcError

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

capsys = <_pytest.capture.CaptureFixture object at 0x7f8575985610>
bucket = <Bucket: test-bucket-for-glossary-978de1e2-cf5e-11eb-bbd5-42010a8a0007>

def test_batch_translate_text_with_glossary_and_model(capsys, bucket):
  translate_v3_batch_translate_text_with_glossary_and_model.batch_translate_text_with_glossary_and_model(
        "gs://cloud-samples-data/translation/text_with_custom_model_and_glossary.txt",
        "gs://{}/translation/BATCH_TRANSLATION_GLOS_MODEL_OUTPUT/".format(bucket.name),
        PROJECT_ID,
        MODEL_ID,
        GLOSSARY_ID,
    )

translate_v3_batch_translate_text_with_glossary_and_model_test.py:41:


translate_v3_batch_translate_text_with_glossary_and_model.py:57: in batch_translate_text_with_glossary_and_model
operation = client.batch_translate_text(
../../google/cloud/translate_v3/services/translation_service/client.py:823: in batch_translate_text
response = rpc(request, retry=retry, timeout=timeout, metadata=metadata,)
.nox/py-3-8/lib/python3.8/site-packages/google/api_core/gapic_v1/method.py:145: in call
return wrapped_func(*args, **kwargs)
.nox/py-3-8/lib/python3.8/site-packages/google/api_core/grpc_helpers.py:69: in error_remapped_callable
six.raise_from(exceptions.from_grpc_error(exc), exc)


value = None
from_value = <_InactiveRpcError of RPC that terminated with:
status = StatusCode.FAILED_PRECONDITION
details = "The model is depr...models.; Model name: 'projects/1012616486416/locations/us-central1/models/TRL3128559826197068699'.","grpc_status":9}"

???
E google.api_core.exceptions.FailedPrecondition: 400 The model is deprecated and no longer servable, please try to use other models.; Model name: 'projects/1012616486416/locations/us-central1/models/TRL3128559826197068699'.

:3: FailedPrecondition

from python-translate.

flaky-bot avatar flaky-bot commented on July 2, 2024

commit: 7ef5f04
buildURL: Build Status, Sponge
status: failed

Test output
args = (parent: "projects/python-docs-samples-tests/locations/us-central1"
source_language_code: "en"
target_language_codes: ...   glossary: "projects/python-docs-samples-tests/locations/us-central1/glossaries/DO_NOT_DELETE_TEST_GLOSSARY"
  }
}
,)
kwargs = {'metadata': [('x-goog-request-params', 'parent=projects/python-docs-samples-tests/locations/us-central1'), ('x-goog-api-client', 'gl-python/3.6.13 grpc/1.38.0 gax/1.30.0 gapic/3.2.0')]}
@six.wraps(callable_)
def error_remapped_callable(*args, **kwargs):
    try:
      return callable_(*args, **kwargs)

.nox/py-3-6/lib/python3.6/site-packages/google/api_core/grpc_helpers.py:67:


self = <grpc._channel._UnaryUnaryMultiCallable object at 0x7fad9e79d198>
request = parent: "projects/python-docs-samples-tests/locations/us-central1"
source_language_code: "en"
target_language_codes: "...
glossary: "projects/python-docs-samples-tests/locations/us-central1/glossaries/DO_NOT_DELETE_TEST_GLOSSARY"
}
}

timeout = None
metadata = [('x-goog-request-params', 'parent=projects/python-docs-samples-tests/locations/us-central1'), ('x-goog-api-client', 'gl-python/3.6.13 grpc/1.38.0 gax/1.30.0 gapic/3.2.0')]
credentials = None, wait_for_ready = None, compression = None

def __call__(self,
             request,
             timeout=None,
             metadata=None,
             credentials=None,
             wait_for_ready=None,
             compression=None):
    state, call, = self._blocking(request, timeout, metadata, credentials,
                                  wait_for_ready, compression)
  return _end_unary_response_blocking(state, call, False, None)

.nox/py-3-6/lib/python3.6/site-packages/grpc/_channel.py:946:


state = <grpc._channel._RPCState object at 0x7fad9e79d4a8>
call = <grpc._cython.cygrpc.SegregatedCall object at 0x7fad9e7963c8>
with_call = False, deadline = None

def _end_unary_response_blocking(state, call, with_call, deadline):
    if state.code is grpc.StatusCode.OK:
        if with_call:
            rendezvous = _MultiThreadedRendezvous(state, call, None, deadline)
            return state.response, rendezvous
        else:
            return state.response
    else:
      raise _InactiveRpcError(state)

E grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
E status = StatusCode.FAILED_PRECONDITION
E details = "The model is deprecated and no longer servable, please try to use other models.; Model name: 'projects/1012616486416/locations/us-central1/models/TRL3128559826197068699'."
E debug_error_string = "{"created":"@1624093766.041845408","description":"Error received from peer ipv4:142.250.99.95:443","file":"src/core/lib/surface/call.cc","file_line":1066,"grpc_message":"The model is deprecated and no longer servable, please try to use other models.; Model name: 'projects/1012616486416/locations/us-central1/models/TRL3128559826197068699'.","grpc_status":9}"
E >

.nox/py-3-6/lib/python3.6/site-packages/grpc/_channel.py:849: _InactiveRpcError

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

capsys = <_pytest.capture.CaptureFixture object at 0x7fad9efe9828>
bucket = <Bucket: test-bucket-for-glossary-0af5c200-d0de-11eb-8225-42010a8a00b8>

def test_batch_translate_text_with_glossary_and_model(capsys, bucket):
    translate_v3_batch_translate_text_with_glossary_and_model.batch_translate_text_with_glossary_and_model(
        "gs://cloud-samples-data/translation/text_with_custom_model_and_glossary.txt",
        "gs://{}/translation/BATCH_TRANSLATION_GLOS_MODEL_OUTPUT/".format(bucket.name),
        PROJECT_ID,
        MODEL_ID,
      GLOSSARY_ID,
    )

translate_v3_batch_translate_text_with_glossary_and_model_test.py:46:


translate_v3_batch_translate_text_with_glossary_and_model.py:65: in batch_translate_text_with_glossary_and_model
"glossaries": glossaries,
../../google/cloud/translate_v3/services/translation_service/client.py:823: in batch_translate_text
response = rpc(request, retry=retry, timeout=timeout, metadata=metadata,)
.nox/py-3-6/lib/python3.6/site-packages/google/api_core/gapic_v1/method.py:145: in call
return wrapped_func(*args, **kwargs)
.nox/py-3-6/lib/python3.6/site-packages/google/api_core/grpc_helpers.py:69: in error_remapped_callable
six.raise_from(exceptions.from_grpc_error(exc), exc)


value = None
from_value = <_InactiveRpcError of RPC that terminated with:
status = StatusCode.FAILED_PRECONDITION
details = "The model is depr...models.; Model name: 'projects/1012616486416/locations/us-central1/models/TRL3128559826197068699'.","grpc_status":9}"

???
E google.api_core.exceptions.FailedPrecondition: 400 The model is deprecated and no longer servable, please try to use other models.; Model name: 'projects/1012616486416/locations/us-central1/models/TRL3128559826197068699'.

:3: FailedPrecondition

from python-translate.

flaky-bot avatar flaky-bot commented on July 2, 2024

commit: 4916991
buildURL: Build Status, Sponge
status: failed

Test output
args = (parent: "projects/python-docs-samples-tests/locations/us-central1"
source_language_code: "en"
target_language_codes: ...   glossary: "projects/python-docs-samples-tests/locations/us-central1/glossaries/DO_NOT_DELETE_TEST_GLOSSARY"
  }
}
,)
kwargs = {'metadata': [('x-goog-request-params', 'parent=projects/python-docs-samples-tests/locations/us-central1'), ('x-goog-api-client', 'gl-python/3.6.13 grpc/1.38.0 gax/1.30.0 gapic/3.2.0')]}
@six.wraps(callable_)
def error_remapped_callable(*args, **kwargs):
    try:
      return callable_(*args, **kwargs)

.nox/py-3-6/lib/python3.6/site-packages/google/api_core/grpc_helpers.py:67:


self = <grpc._channel._UnaryUnaryMultiCallable object at 0x7f1ea056a128>
request = parent: "projects/python-docs-samples-tests/locations/us-central1"
source_language_code: "en"
target_language_codes: "...
glossary: "projects/python-docs-samples-tests/locations/us-central1/glossaries/DO_NOT_DELETE_TEST_GLOSSARY"
}
}

timeout = None
metadata = [('x-goog-request-params', 'parent=projects/python-docs-samples-tests/locations/us-central1'), ('x-goog-api-client', 'gl-python/3.6.13 grpc/1.38.0 gax/1.30.0 gapic/3.2.0')]
credentials = None, wait_for_ready = None, compression = None

def __call__(self,
             request,
             timeout=None,
             metadata=None,
             credentials=None,
             wait_for_ready=None,
             compression=None):
    state, call, = self._blocking(request, timeout, metadata, credentials,
                                  wait_for_ready, compression)
  return _end_unary_response_blocking(state, call, False, None)

.nox/py-3-6/lib/python3.6/site-packages/grpc/_channel.py:946:


state = <grpc._channel._RPCState object at 0x7f1ea056a438>
call = <grpc._cython.cygrpc.SegregatedCall object at 0x7f1ea05670c8>
with_call = False, deadline = None

def _end_unary_response_blocking(state, call, with_call, deadline):
    if state.code is grpc.StatusCode.OK:
        if with_call:
            rendezvous = _MultiThreadedRendezvous(state, call, None, deadline)
            return state.response, rendezvous
        else:
            return state.response
    else:
      raise _InactiveRpcError(state)

E grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
E status = StatusCode.FAILED_PRECONDITION
E details = "The model is deprecated and no longer servable, please try to use other models.; Model name: 'projects/1012616486416/locations/us-central1/models/TRL3128559826197068699'."
E debug_error_string = "{"created":"@1624180464.408265844","description":"Error received from peer ipv4:74.125.195.95:443","file":"src/core/lib/surface/call.cc","file_line":1066,"grpc_message":"The model is deprecated and no longer servable, please try to use other models.; Model name: 'projects/1012616486416/locations/us-central1/models/TRL3128559826197068699'.","grpc_status":9}"
E >

.nox/py-3-6/lib/python3.6/site-packages/grpc/_channel.py:849: _InactiveRpcError

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

capsys = <_pytest.capture.CaptureFixture object at 0x7f1ea0d9c048>
bucket = <Bucket: test-bucket-for-glossary-e73e8106-d1a7-11eb-9992-42010a8a00ad>

def test_batch_translate_text_with_glossary_and_model(capsys, bucket):
    translate_v3_batch_translate_text_with_glossary_and_model.batch_translate_text_with_glossary_and_model(
        "gs://cloud-samples-data/translation/text_with_custom_model_and_glossary.txt",
        "gs://{}/translation/BATCH_TRANSLATION_GLOS_MODEL_OUTPUT/".format(bucket.name),
        PROJECT_ID,
        MODEL_ID,
      GLOSSARY_ID,
    )

translate_v3_batch_translate_text_with_glossary_and_model_test.py:46:


translate_v3_batch_translate_text_with_glossary_and_model.py:65: in batch_translate_text_with_glossary_and_model
"glossaries": glossaries,
../../google/cloud/translate_v3/services/translation_service/client.py:823: in batch_translate_text
response = rpc(request, retry=retry, timeout=timeout, metadata=metadata,)
.nox/py-3-6/lib/python3.6/site-packages/google/api_core/gapic_v1/method.py:145: in call
return wrapped_func(*args, **kwargs)
.nox/py-3-6/lib/python3.6/site-packages/google/api_core/grpc_helpers.py:69: in error_remapped_callable
six.raise_from(exceptions.from_grpc_error(exc), exc)


value = None
from_value = <_InactiveRpcError of RPC that terminated with:
status = StatusCode.FAILED_PRECONDITION
details = "The model is depr...models.; Model name: 'projects/1012616486416/locations/us-central1/models/TRL3128559826197068699'.","grpc_status":9}"

???
E google.api_core.exceptions.FailedPrecondition: 400 The model is deprecated and no longer servable, please try to use other models.; Model name: 'projects/1012616486416/locations/us-central1/models/TRL3128559826197068699'.

:3: FailedPrecondition

from python-translate.

munkhuushmgl avatar munkhuushmgl commented on July 2, 2024

Fixed by #178

from python-translate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.