Unknown error while running Interactive context for statistics gen

Please verify that type(example_gen.outputs['examples']) is tfx.types.channel.Channel.

I’ve faced a similar issue when practicing course2_week4_lab_3 on Colab notebook. I resolved this by re-install packages:

TensorFlow version: 2.8.2
TFX version: 1.8.0
Beam version: 2.38
Python version: 3.7.13