Haarcascade files

when I load the given files ‘frontalEyes35x16.xml’ and ‘Nose18x15.xml’ error occurs.
I saw one solution previously given was to add cv2.data.haarcascades + ‘file_name.xml’ in cv2.CascadeClassifier()
but doing that throws another error.
if I replace the same files with the haarcascade file that was worked on in tutorial the code works fine and the image is shown