2 types of error while loading given haar cascade xml files

when I load the given files ‘frontalEyes35x16.xml’ and ‘Nose18x15.xml’ the following 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

please suggest how do i fix this error

I am also getting the same errors. Were u able to solve it?? Please tell me how to do it if u did

follow these steps and i will get you out of this:
step 1: uninstall the current version of opencv in your laptop
step 2: install the following version of opencv using command
pip install opencv-python==4.0.0.21
and you are good to go ahead

Yes i realized later that the problem could be solved using older versions of opencv.

Thanks anyway.

pip install opencv-python==4.0.0.21
it is not working
ERROR: Could not find a version that satisfies the requirement opencv-python==4.0.0.21 (from versions: 3.4.8.29, 3.4.9.31, 3.4.9.33, 3.4.10.35, 3.4.10.37, 3.4.11.39, 3.4.11.41, 3.4.11.43, 4.1.2.30, 4.2.0.32, 4.2.0.34, 4.3.0.36, 4.3.0.38, 4.4.0.40, 4.4.0.42, 4.4.0.44)
ERROR: No matching distribution found for opencv-python==4.0.0.21