I am getting exactly the same error but also on the older version.
Haarcascade classifier
I was getting both of these errors. Downgrading the openCV version worked for me.
With current new version of python and opencv , thats the only option left to correct these errors.
Hey bro, can u please tell which version of OpenCV worked for u finally.
I am facing the same problem
hey @Naman-Taneja-2420178691408660 ,
Try using opencv version 3.4.2 with python 3.6 or 3.7.2 , it will work perfectly fine.