damccorm opened a new issue, #20564:
URL: https://github.com/apache/beam/issues/20564

   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()`
   
   Imported from Jira 
[BEAM-11318](https://issues.apache.org/jira/browse/BEAM-11318). Original Jira 
may contain additional context.
   Reported by: celine.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to