Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-6984 Python 3.7 Support
  3. BEAM-6989

Dataflow runner currently does not support Python 3.7

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.12.0
    • Component/s: sdk-py-core
    • Labels:
      None

      Description

      Following tests fail due to the dataflow runner not supporting Python 3.7:

      • test_full_completion (apache_beam.runners.dataflow.template_runner_test.TemplatingDataflowRunnerTest)
      • test_worker_harness_override_takes_precedence_over_sdk_defaults (apache_beam.runners.dataflow.internal.apiclient_test.UtilTest)
      • test_worker_harness_image_tag_matches_released_sdk_version (apache_beam.runners.dataflow.internal.apiclient_test.UtilTest)
      • test_set_subnetwork (apache_beam.runners.dataflow.internal.apiclient_test.UtilTest)
      • test_set_network (apache_beam.runners.dataflow.internal.apiclient_test.UtilTest)
      • test_public_ip_configuration (apache_beam.runners.dataflow.internal.apiclient_test.UtilTest)
      • test_private_ip_configuration (apache_beam.runners.dataflow.internal.apiclient_test.UtilTest)
      • test_pipeline_url (apache_beam.runners.dataflow.internal.apiclient_test.UtilTest)
      • test_pinned_worker_harness_image_tag_used_in_dev_sdk (apache_beam.runners.dataflow.internal.apiclient_test.UtilTest)
      • test_harness_override_present_in_released_sdks (apache_beam.runners.dataflow.internal.apiclient_test.UtilTest)
      • test_harness_override_absent_in_unreleased_sdk (apache_beam.runners.dataflow.internal.apiclient_test.UtilTest)
      • test_flexrs_speed (apache_beam.runners.dataflow.internal.apiclient_test.UtilTest)
      • test_flexrs_cost (apache_beam.runners.dataflow.internal.apiclient_test.UtilTest)
      • test_flexrs_blank (apache_beam.runners.dataflow.internal.apiclient_test.UtilTest)
      • test_experiment_use_multiple_sdk_containers (apache_beam.runners.dataflow.internal.apiclient_test.UtilTest)
      • test_default_ip_configuration (apache_beam.runners.dataflow.internal.apiclient_test.UtilTest)

      Sample error message:

      ======================================================================
       ERROR: test_default_ip_configuration (apache_beam.runners.dataflow.internal.apiclient_test.UtilTest)
       ----------------------------------------------------------------------
       Traceback (most recent call last):
       File "/home/jenkins/jenkins-slave/workspace/beam_PreCommit_Python_Commit/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/apache_beam/runners/dataflow/internal/apiclient_test.py", line 224, in test_default_ip_configuration
       FAKE_PIPELINE_URL)
       File "/home/jenkins/jenkins-slave/workspace/beam_PreCommit_Python_Commit/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/apache_beam/runners/dataflow/internal/apiclient.py", line 163, in _init_
       _verify_interpreter_version_is_supported(options)
       File "/home/jenkins/jenkins-slave/workspace/beam_PreCommit_Python_Commit/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/apache_beam/runners/dataflow/internal/apiclient.py", line 974, in _verify_interpreter_version_is_supported
       'Dataflow runner currently supports Python versions '
       Exception: Dataflow runner currently supports Python versions 2.7, 3.5 and 3.6. To ignore this requirement and start a job using a different version of Python 3 interpreter, pass --experiment ignore_py3_minor_version pipeline option.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tvalentyn Valentyn Tymofieiev
                Reporter:
                RobbeSneyders Robbe
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h