LAB ERROR lab_utils

How do I solve this error?
It was working fine, even yesterday.
The error is
ImportError: cannot import name ‘compute_cost’ from ‘lab_utils_common’

1 Like

Which lab are you working on?

1 Like

Hello farhana,

You are working on local jupyter notebook.

This error can happen because you probably have all the files of the whole course 1 (week1, 2 & 3) in one place where it can confuse with multiple similar names. So whenever you want to run these notebooks, make separate folders week wise and then download all the required files to run it successfully.

Or check if you have imported all the required file in the notebook you are currently working especially the lab.utilis file

Regards
DP

1 Like