GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — What setup is required to get Translate system tests running? · Issue #2063 · googleapis/google-cloud-python

What setup is required to get Translate system tests running? #2063

New issue
Copy link
New issue
Copy link
Closed
Closed
What setup is required to get Translate system tests running?#2063
Copy link
Assignees
tseaver
Labels
api: translationIssues related to the Cloud Translation API API.testingtype: questionRequest for information or clarification. Not an issue.

Description

@tseaver
tseaver
opened on Aug 8, 2016
Issue body actions

I have the Translate API enabled, but see the following when running tox -e system-tests:

======================================================================
ERROR: test_detect_language (translate.TestTranslate)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/tseaver/projects/agendaless/Google/src/gcloud-python/system_tests/translate.py", line 55, in test_detect_language
    detections = Config.CLIENT.detect_language(values)
  File "/home/tseaver/projects/agendaless/Google/src/gcloud-python/.tox/system-tests/lib/python2.7/site-packages/gcloud/translate/client.py", line 121, in detect_language
    method='GET', path='/detect', query_params=query_params)
  File "/home/tseaver/projects/agendaless/Google/src/gcloud-python/.tox/system-tests/lib/python2.7/site-packages/gcloud/connection.py", line 347, in api_request
    error_info=method + ' ' + url)
BadRequest: 400 Bad Request (GET https://www.googleapis.com/language/translate/v2/detect?key=None&q=takoy&q=fa%C3%A7ade&q=s%27il+vous+plait)

======================================================================
ERROR: test_get_languages (translate.TestTranslate)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/tseaver/projects/agendaless/Google/src/gcloud-python/system_tests/translate.py", line 43, in test_get_languages
    result = Config.CLIENT.get_languages()
  File "/home/tseaver/projects/agendaless/Google/src/gcloud-python/.tox/system-tests/lib/python2.7/site-packages/gcloud/translate/client.py", line 79, in get_languages
    method='GET', path='/languages', query_params=query_params)
  File "/home/tseaver/projects/agendaless/Google/src/gcloud-python/.tox/system-tests/lib/python2.7/site-packages/gcloud/connection.py", line 347, in api_request
    error_info=method + ' ' + url)
BadRequest: 400 Bad Request (GET https://www.googleapis.com/language/translate/v2/languages?key=None&target=en)

======================================================================
ERROR: test_translate (translate.TestTranslate)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/tseaver/projects/agendaless/Google/src/gcloud-python/system_tests/translate.py", line 65, in test_translate
    target_language='de')
  File "/home/tseaver/projects/agendaless/Google/src/gcloud-python/.tox/system-tests/lib/python2.7/site-packages/gcloud/translate/client.py", line 212, in translate
    method='GET', path='', query_params=query_params)
  File "/home/tseaver/projects/agendaless/Google/src/gcloud-python/.tox/system-tests/lib/python2.7/site-packages/gcloud/connection.py", line 347, in api_request
    error_info=method + ' ' + url)
BadRequest: 400 Bad Request (GET https://www.googleapis.com/language/translate/v2?key=None&target=de&q=hvala+ti&q=dankon&q=Me+llamo+Jeff&q=My+name+is+Jeff)

----------------------------------------------------------------------

Activity

  1. tseaver
    added
    type: questionRequest for information or clarification. Not an issue.
    testing
    api: translationIssues related to the Cloud Translation API API.
    on Aug 8, 2016
  2. tseaver
    assigned
    dhermes
    on Aug 8, 2016
  3. dhermes commented on Aug 8, 2016

    @dhermes
    dhermes
    on Aug 8, 2016
    Contributor
    More actions

    key=None is the issue, there is a GCLOUD_TESTS_API_KEY env. var. set on Travis

  4. tseaver commented on Aug 8, 2016

    @tseaver
    tseaver
    on Aug 8, 2016
    ContributorAuthor
    More actions

    The usage docs should probably point to the API docs for setting up the key (why doesn't the API support service accounts again?)

  5. dhermes commented on Aug 9, 2016

    @dhermes
    dhermes
    on Aug 9, 2016
    Contributor
    More actions

    why doesn't the API support service accounts again?

    @jgeewax


    The usage docs should probably point to the API docs for setting up the key

    From usage doc

    screen shot 2016-08-09 at 10 10 19 am

    which links out to https://cloud.google.com/translate/v2/translating-text-with-rest#auth which doesn't seem to exist anymore. Maybe we could use https://support.google.com/cloud/answer/6158862

  6. dhermes
    assigned
    tseaver
    and unassigned
    dhermes
    on Sep 8, 2016
  7. dhermes commented on Sep 8, 2016

    @dhermes
    dhermes
    on Sep 8, 2016
    Contributor
    More actions

    @tseaver Is this to remain open?

  8. tseaver commented on Sep 8, 2016

    @tseaver
    tseaver
    on Sep 8, 2016
    ContributorAuthor
    More actions

    I think all of us are able to run the translate system tests, so we can close for my initial intention. The docs issue might stlll need to remain for our users, though.

  9. dhermes
    closed this as completedon Sep 8, 2016
  10. parthea
    added a commit that references this issue on Nov 24, 2025

    chore(main): release 1.18.3 (#2063)

    211fc0a
  11. parthea
    added a commit that references this issue on Apr 1, 2026

    feat: Add `__dataframe__` interchange support (#2063)

    76ac766
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @tseaver
    tseaver

Labels

api: translationIssues related to the Cloud Translation API API.testingtype: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.