Can any any one tell me why this error in sen2cor processor

which version of sen2cor are you using?
For setting the variables in SNAP correctly, you can follow these steps: Specify system variable PYTHON_BIN for Sen2Cor

I am using SNAP 6 version