How to resolve: CalledProcessError: Command ‘[‘latex’]’ returned non-zero exit status 1

  python
import subprocess

subprocess.check_call(["latex"])

CalledProcessError Traceback (most recent call last)
in
1 import subprocess
2
—-> 3 subprocess.check_call(["latex"])

/usr/lib/python3.8/subprocess.py in check_call(*popenargs, **kwargs)
362 if cmd is None:
363 cmd = popenargs[0]
–> 364 raise CalledProcessError(retcode, cmd)
365 return 0
366

CalledProcessError: Command ‘[‘latex’]’ returned non-zero exit status 1.

Source: Python Questions

LEAVE A COMMENT