(I know this is sort of more a Dataflow question, but there's no Dataflow discussion group and there seem to be plenty Dataflow questions here...)
but it errors out and it's very unclear why. Any suggestions? Thanks for any help!
INFO:apache_beam.runners.direct.direct_runner:Running pipeline with DirectRunner.
request: projects/em-dev-dh/subscriptions/taxirides-realtime
subscription None
return_immediately True
max_messages 10
ERROR:apache_beam.runners.direct.executor:Exception at bundle <apache_beam.runners.direct.bundle_factory._Bundle object at 0x7fac3218c4c8>, due to an exception.
Traceback (most recent call last):
File "/Users/denis/redacted/env/lib/python3.6/site-packages/apache_beam/runners/direct/transform_evaluator.py", line 694, in _read_from_pubsub
self._sub_name, max_messages=10, return_immediately=True)
File "/Users/denis/redacted/env/lib/python3.6/site-packages/google/cloud/pubsub_v1/_gapic.py", line 40, in <lambda>
fx = lambda self, *a, **kw: wrapped_fx(self.api, *a, **kw) # noqa
File "/Users/denis/redacted/env/lib/python3.6/site-packages/google/pubsub_v1/services/subscriber/client.py", line 1111, in pull
"If the `request` argument is set, then none of "
ValueError: If the `request` argument is set, then none of the individual field arguments should be set.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/denis/redacted/env/lib/python3.6/site-packages/apache_beam/runners/direct/executor.py", line 382, in call
finish_state)
File "/Users/denis/redacted/env/lib/python3.6/site-packages/apache_beam/runners/direct/executor.py", line 423, in attempt_call
result = evaluator.finish_bundle()
File "/Users/denis/redacted/env/lib/python3.6/site-packages/apache_beam/runners/direct/transform_evaluator.py", line 706, in finish_bundle
data = self._read_from_pubsub(self.source.timestamp_attribute)
File "/Users/denis/redacted/env/lib/python3.6/site-packages/apache_beam/runners/direct/transform_evaluator.py", line 700, in _read_from_pubsub
sub_client.api.transport.channel.close()
AttributeError: 'SubscriberGrpcTransport' object has no attribute 'channel'
request: projects/em-dev-dh/subscriptions/taxirides-realtime
subscription None
return_immediately True
max_messages 10
ERROR:apache_beam.runners.direct.executor:Exception at bundle <apache_beam.runners.direct.bundle_factory._Bundle object at 0x7fac3218c4c8>, due to an exception.
Traceback (most recent call last):
File "/Users/denis/redacted/env/lib/python3.6/site-packages/apache_beam/runners/direct/transform_evaluator.py", line 694, in _read_from_pubsub
self._sub_name, max_messages=10, return_immediately=True)
File "/Users/denis/redacted/env/lib/python3.6/site-packages/google/cloud/pubsub_v1/_gapic.py", line 40, in <lambda>
fx = lambda self, *a, **kw: wrapped_fx(self.api, *a, **kw) # noqa
File "/Users/denis/redacted/env/lib/python3.6/site-packages/google/pubsub_v1/services/subscriber/client.py", line 1111, in pull
"If the `request` argument is set, then none of "
ValueError: If the `request` argument is set, then none of the individual field arguments should be set.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/denis/redacted/env/lib/python3.6/site-packages/apache_beam/runners/direct/executor.py", line 382, in call
finish_state)
File "/Users/denis/redacted/env/lib/python3.6/site-packages/apache_beam/runners/direct/executor.py", line 423, in attempt_call
result = evaluator.finish_bundle()
File "/Users/denis/redacted/env/lib/python3.6/site-packages/apache_beam/runners/direct/transform_evaluator.py", line 706, in finish_bundle
data = self._read_from_pubsub(self.source.timestamp_attribute)
File "/Users/denis/redacted/env/lib/python3.6/site-packages/apache_beam/runners/direct/transform_evaluator.py", line 700, in _read_from_pubsub
sub_client.api.transport.channel.close()
AttributeError: 'SubscriberGrpcTransport' object has no attribute 'channel'
request: projects/em-dev-dh/subscriptions/taxirides-realtime
subscription None
return_immediately True
max_messages 10
ERROR:apache_beam.runners.direct.executor:Exception at bundle <apache_beam.runners.direct.bundle_factory._Bundle object at 0x7fac3218c4c8>, due to an exception.
Traceback (most recent call last):
File "/Users/denis/redacted/env/lib/python3.6/site-packages/apache_beam/runners/direct/transform_evaluator.py", line 694, in _read_from_pubsub
self._sub_name, max_messages=10, return_immediately=True)
File "/Users/denis/redacted/env/lib/python3.6/site-packages/google/cloud/pubsub_v1/_gapic.py", line 40, in <lambda>
fx = lambda self, *a, **kw: wrapped_fx(self.api, *a, **kw) # noqa
File "/Users/denis/redacted/env/lib/python3.6/site-packages/google/pubsub_v1/services/subscriber/client.py", line 1111, in pull
"If the `request` argument is set, then none of "
ValueError: If the `request` argument is set, then none of the individual field arguments should be set.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/denis/redacted/env/lib/python3.6/site-packages/apache_beam/runners/direct/executor.py", line 382, in call
finish_state)
File "/Users/denis/redacted/env/lib/python3.6/site-packages/apache_beam/runners/direct/executor.py", line 423, in attempt_call
result = evaluator.finish_bundle()
File "/Users/denis/redacted/env/lib/python3.6/site-packages/apache_beam/runners/direct/transform_evaluator.py", line 706, in finish_bundle
data = self._read_from_pubsub(self.source.timestamp_attribute)
File "/Users/denis/redacted/env/lib/python3.6/site-packages/apache_beam/runners/direct/transform_evaluator.py", line 700, in _read_from_pubsub
sub_client.api.transport.channel.close()
AttributeError: 'SubscriberGrpcTransport' object has no attribute 'channel'
request: projects/em-dev-dh/subscriptions/taxirides-realtime
subscription None
return_immediately True
max_messages 10
ERROR:apache_beam.runners.direct.executor:Exception at bundle <apache_beam.runners.direct.bundle_factory._Bundle object at 0x7fac3218c4c8>, due to an exception.
Traceback (most recent call last):
File "/Users/denis/redacted/env/lib/python3.6/site-packages/apache_beam/runners/direct/transform_evaluator.py", line 694, in _read_from_pubsub
self._sub_name, max_messages=10, return_immediately=True)
File "/Users/denis/redacted/env/lib/python3.6/site-packages/google/cloud/pubsub_v1/_gapic.py", line 40, in <lambda>
fx = lambda self, *a, **kw: wrapped_fx(self.api, *a, **kw) # noqa
File "/Users/denis/redacted/env/lib/python3.6/site-packages/google/pubsub_v1/services/subscriber/client.py", line 1111, in pull
"If the `request` argument is set, then none of "
ValueError: If the `request` argument is set, then none of the individual field arguments should be set.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/denis/redacted/env/lib/python3.6/site-packages/apache_beam/runners/direct/executor.py", line 382, in call
finish_state)
File "/Users/denis/redacted/env/lib/python3.6/site-packages/apache_beam/runners/direct/executor.py", line 423, in attempt_call
result = evaluator.finish_bundle()
File "/Users/denis/redacted/env/lib/python3.6/site-packages/apache_beam/runners/direct/transform_evaluator.py", line 706, in finish_bundle
data = self._read_from_pubsub(self.source.timestamp_attribute)
File "/Users/denis/redacted/env/lib/python3.6/site-packages/apache_beam/runners/direct/transform_evaluator.py", line 700, in _read_from_pubsub
sub_client.api.transport.channel.close()
AttributeError: 'SubscriberGrpcTransport' object has no attribute 'channel'
ERROR:apache_beam.runners.direct.executor:Giving up after 4 attempts.
WARNING:apache_beam.runners.direct.executor:A task failed with exception: 'SubscriberGrpcTransport' object has no attribute 'channel'
Traceback (most recent call last):
File "/Users/denis/redacted/env/lib/python3.6/site-packages/apache_beam/runners/direct/transform_evaluator.py", line 694, in _read_from_pubsub
self._sub_name, max_messages=10, return_immediately=True)
File "/Users/denis/redacted/env/lib/python3.6/site-packages/google/cloud/pubsub_v1/_gapic.py", line 40, in <lambda>
fx = lambda self, *a, **kw: wrapped_fx(self.api, *a, **kw) # noqa
File "/Users/denis/redacted/env/lib/python3.6/site-packages/google/pubsub_v1/services/subscriber/client.py", line 1111, in pull
"If the `request` argument is set, then none of "
ValueError: If the `request` argument is set, then none of the individual field arguments should be set.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "taxi.py", line 33, in <module>
run(pipeline_args)
File "taxi.py", line 23, in run
| "logit" >> beam.Map(logit)
File "/Users/denis/redacted/env/lib/python3.6/site-packages/apache_beam/pipeline.py", line 581, in __exit__
self.result.wait_until_finish()
File "/Users/denis/redacted/env/lib/python3.6/site-packages/apache_beam/runners/direct/direct_runner.py", line 590, in wait_until_finish
self._executor.await_completion()
File "/Users/denis/redacted/env/lib/python3.6/site-packages/apache_beam/runners/direct/executor.py", line 439, in await_completion
self._executor.await_completion()
File "/Users/denis/redacted/env/lib/python3.6/site-packages/apache_beam/runners/direct/executor.py", line 488, in await_completion
raise_(t, v, tb)
File "/Users/denis/redacted/env/lib/python3.6/site-packages/future/utils/__init__.py", line 441, in raise_
raise exc
File "/Users/denis/redacted/env/lib/python3.6/site-packages/apache_beam/runners/direct/executor.py", line 382, in call
finish_state)
File "/Users/denis/redacted/env/lib/python3.6/site-packages/apache_beam/runners/direct/executor.py", line 423, in attempt_call
result = evaluator.finish_bundle()
File "/Users/denis/redacted/env/lib/python3.6/site-packages/apache_beam/runners/direct/transform_evaluator.py", line 706, in finish_bundle
data = self._read_from_pubsub(self.source.timestamp_attribute)
File "/Users/denis/redacted/env/lib/python3.6/site-packages/apache_beam/runners/direct/transform_evaluator.py", line 700, in _read_from_pubsub
sub_client.api.transport.channel.close()
AttributeError: 'SubscriberGrpcTransport' object has no attribute 'channel'