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

AttributeError: 'SubscriberClient' object has no attribute 'transport' error while reading from input subscription with ReadFromPubSub

Details

    • Bug
    • Status: Triage Needed
    • P3
    • Resolution: Unresolved
    • 2.25.0
    • None
    • beam-model
    • None
    • MacOs 10.15.7 and Ubuntu 18, 20

    Description

      When I read from the input-subcroption with beam.io.ReadFromPubSub. The error below is thrown.

       AttributeError: 'SubscriberClient' object has no attribute 'transport'

       

      Code

      pipeline_options = PipelineOptions()
      pipeline_options.view_as(StandardOptions).streaming = True

      pipeline = beam.Pipeline(options=pipeline_options)
      messages = (pipeline | beam.io.ReadFromPubSub(subscription=input_subscription).with_output_types(bytes))

      def printattr(element):
      {{ print(element.attributes)}}

      lines = messages | 'printattr' >> beam.Map(printattr)

      result = pipeline.run()
      result.wait_until_finish()

      Attachments

        Activity

          People

            Unassigned Unassigned
            celine Selin Gungor
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: