Error while working withcv2 library

i am getting the following error while printing the shape of the image

AttributeError Traceback (most recent call last)
in ()
----> 1 print(img.shape)

AttributeError: ‘NoneType’ object has no attribute ‘shape’