Cannot install new site using Bench

Cannot install new site using bench gui. It gives this error and continues with the installation but doesn’t install properly and the installation fails.

subprocess.CalledProcessError: Command ‘[‘bench’, ‘–site’, ‘newj’, ‘list-apps’]’ returned non-zero exit status 1.