Try to get convexity defects but getting an error

That is problem. I cannot troubleshooting PyCharm. You can download Python IDE 3.10.x.