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/01/22 17:14:05 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=17270285#comment-17270285 ]
Beam JIRA Bot commented on BEAM-11318:
--------------------------------------
This issue is P2 but has been unassigned without any comment for 60 days so it has been labeled "stale-P2". If this issue is still affecting you, we care! Please comment and remove the label. Otherwise, in 14 days the issue will be moved to P3.
Please see https://beam.apache.org/contribute/jira-priorities/ for a detailed explanation of what these priorities mean.
> 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: P2
> Labels: stale-P2
>
> 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)