Nitin Bansal
05/05/2023, 11:30 AMTypeError: Argument 'input_stream' has incorrect type (expected pyflink.fn_execution.stream_fast.LengthPrefixInputStream, got BeamInputStream)
It comes when when I add a streaming source to the environment.
Any work around the error?Dian Fu
05/06/2023, 2:00 AMNitin Bansal
05/06/2023, 3:22 AMNitin Bansal
05/06/2023, 3:29 AMTraceback (most recent call last):
File "/opt/homebrew/lib/python3.10/site-packages/apache_beam/runners/worker/sdk_worker.py", line 287, in _execute
response = task()
File "/opt/homebrew/lib/python3.10/site-packages/apache_beam/runners/worker/sdk_worker.py", line 360, in <lambda>
lambda: self.create_worker().do_instruction(request), request)
File "/opt/homebrew/lib/python3.10/site-packages/apache_beam/runners/worker/sdk_worker.py", line 596, in do_instruction
return getattr(self, request_type)(
File "/opt/homebrew/lib/python3.10/site-packages/apache_beam/runners/worker/sdk_worker.py", line 634, in process_bundle
bundle_processor.process_bundle(instruction_id))
File "/opt/homebrew/lib/python3.10/site-packages/apache_beam/runners/worker/bundle_processor.py", line 1003, in process_bundle
input_op_by_transform_id[element.transform_id].process_encoded(
File "/opt/homebrew/lib/python3.10/site-packages/apache_beam/runners/worker/bundle_processor.py", line 225, in process_encoded
decoded_value = self.windowed_coder_impl.decode_from_stream(
File "/opt/homebrew/lib/python3.10/site-packages/apache_beam/coders/coder_impl.py", line 1520, in decode_from_stream
value = self._value_coder.decode_from_stream(in_stream, nested)
File "/opt/homebrew/lib/python3.10/site-packages/pyflink/fn_execution/beam/beam_coder_impl_slow.py", line 34, in decode_from_stream
return self._value_coder.decode_from_stream(in_stream, nested)
File "/opt/homebrew/lib/python3.10/site-packages/pyflink/fn_execution/beam/beam_coder_impl_slow.py", line 58, in decode_from_stream
return self._value_coder.decode_from_stream(data_input_stream)
TypeError: Argument 'input_stream' has incorrect type (expected pyflink.fn_execution.stream_fast.LengthPrefixInputStream, got BeamInputStream)Nitin Bansal
05/06/2023, 3:29 AMNitin Bansal
05/06/2023, 3:41 AMNitin Bansal
05/06/2023, 3:53 AMValueError: apache_beam.runners.worker.operations.Operation size changed, may indicate binary incompatibility. Expected 136 from C header, got 32 from PyObject
This is coming while importing from pyflink.fn_execution.beam import beam_operations_fast
ModuleNotFoundError: No module named 'apache_beam.coders.stream'
while from pyflink.fn_execution.beam import beam_stream_fast
ImportError: cannot import name 'window_aggregate_fast' from 'pyflink.fn_execution.beam'Dian Fu
05/09/2023, 1:51 AMpython3.7/site-packages/apache_beam/coders/coder_impl.cpython-37m-darwin.so ?Tilman Krokotsch
05/24/2023, 6:27 PM--no-cache-dir when installing with pip.