Course 3 week 1 lab 2

Error in Week1:Lab2

from tfx.components import ImportExampleGen
from tfx.components import ExampleValidator
from tfx.components import SchemaGen

this error arises when i run import tfx components cell:

AttributeError: module ‘apache_beam’ has no attribute ‘metrics’

Hi Sarah! Are you still encountering this error? I can’t seem to replicate it. The import works fine on my end. Remember to restart the runtime after installing TFX.

1 Like

I had this same error in the C3_W4_Lab_1_TFMA notebook. Restarting the runtime after installing TFX resolved this error for me.

Thanks, Chris!