Error in Python script after upgrade Python version from 3.6 to 3.10.5

@Prathibabala

Please open the error message or details from locals panel to see the exact error

for 3.9+ specifying the library location is mandate

cheers