Unable to read pubsub topic using Apache Beam with python and directrunner

343 views
Skip to first unread message

Thiru Senthilkumar

unread,
Feb 9, 2021, 12:43:11 PM2/9/21
to Google Cloud Pub/Sub Discussions
I am in the need of preparing an POC for an urgent requirement.
I would like to read message from pubsub topic and simply print in console.

but the code what i am using is throughs an error.

AttributeError: 'SubscriberGrpcTransport' object has no attribute 'channel'

can you help on this.

But the same code if i try from colab notebook the error is different.


TypeError: create_subscription() takes from 1 to 2 positional arguments but 3 were given

Kir Titievsky

unread,
Feb 9, 2021, 1:33:21 PM2/9/21
to Thiru Senthilkumar, Google Cloud Pub/Sub Discussions
Please post code

--
You received this message because you are subscribed to the Google Groups "Google Cloud Pub/Sub Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cloud-pubsub-dis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cloud-pubsub-discuss/c26983e1-21b2-4532-ab8e-9129ad87e190n%40googlegroups.com.


--
Kir Titievsky | Product Manager | Google Cloud Pub/Sub 
Reply all
Reply to author
Forward
0 new messages