Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-9445

Preoptimize causes error with environment setup

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: P2
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: sdk-py-core
    • Labels:
      None

      Description

      Setting --experiments=pre_optimize=all causes an error with StatisticsGen in the TFX taxi example pipeline [1]:

      File "[redacted]/apache_beam/runners/portability/fn_api_runner_transforms.py", line 250, in executable_stage_transform
      environment=components.environments[self.environment],
      TypeError: None has type NoneType, but expected one of: bytes, unicode [while running 'Run[StatisticsGen]']

      cc Ankur Goenka

      [1] https://github.com/tensorflow/tfx/blob/ff314a6803675548c89a016a5110a91e5bf98024/tfx/examples/chicago_taxi_pipeline/taxi_pipeline_portable_beam.py#L155

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                angoenka Ankur Goenka
                Reporter:
                ibzib Kyle Weaver
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: