Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-1251 Python 3 Support
  3. BEAM-5618

Several tests fail on Python 3 with: unsupported operand type(s) for +: 'int' and 'EmptySideInput'

    XMLWordPrintableJSON

    Details

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

      Description

      ERROR: test_do_with_side_input_as_arg (apache_beam.transforms.ptransform_test.PTransformTest)
      ----------------------------------------------------------------------
      Traceback (most recent call last):
      File "/usr/local/google/home/valentyn/projects/beam/clean_head/beam/sdks/python/apache_beam/runners/common.py", line 677, in process
      self.do_fn_invoker.invoke_process(windowed_value)
      File "/usr/local/google/home/valentyn/projects/beam/clean_head/beam/sdks/python/apache_beam/runners/common.py", line 529, in invoke_process
      windowed_value, additional_args, additional_kwargs, output_processor)
      File "/usr/local/google/home/valentyn/projects/beam/clean_head/beam/sdks/python/apache_beam/runners/common.py", line 598, in _invoke_per_window
      windowed_value, self.process_method(*args_for_process))
      File "/usr/local/google/home/valentyn/projects/beam/clean_head/beam/sdks/python/apache_beam/transforms/ptransform_test.py", line 135, in <lambda>
      lambda x, addon: [x + addon], pvalue.AsSingleton(side))
      TypeError: unsupported operand type(s) for +: 'int' and 'EmptySideInput'

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tvalentyn Valentyn Tymofieiev
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: