A path could not be determined for the terminal name, or none of standard input, standard output, and standard error were a terminal.
Make sure that standard input is a terminal, not a redirected file or a pipe.