You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Beam JIRA Bot (Jira)" <ji...@apache.org> on 2021/02/05 17:15:04 UTC

[jira] [Commented] (BEAM-11318) AttributeError: 'SubscriberClient' object has no attribute 'transport' error while reading from input subscription with ReadFromPubSub

    [ https://issues.apache.org/jira/browse/BEAM-11318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17279825#comment-17279825 ] 

Beam JIRA Bot commented on BEAM-11318:
--------------------------------------

This issue was marked "stale-P2" and has not received a public comment in 14 days. It is now automatically moved to P3. If you are still affected by it, you can comment and move it back to P2.

> AttributeError: 'SubscriberClient' object has no attribute 'transport' error while reading from input subscription with ReadFromPubSub
> --------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: BEAM-11318
>                 URL: https://issues.apache.org/jira/browse/BEAM-11318
>             Project: Beam
>          Issue Type: Bug
>          Components: beam-model
>    Affects Versions: 2.25.0
>         Environment: MacOs 10.15.7 and Ubuntu 18, 20
>            Reporter: Selin Gungor
>            Priority: P3
>
> When I read from the input-subcroption with beam.io.ReadFromPubSub. The error below is thrown.
> {quote} AttributeError: 'SubscriberClient' object has no attribute 'transport'
> {quote}
>  
> 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()}}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)