Command '['settings.PDF_TO_TEXT', '-layout', 'absolute_file_path', '-']' returned non-zero exit status 1.pdf_to_text_output.decode('utf-8') text = pdf_to_text_output.decode('ISO-8859-
我有一个脚本正在执行5个不同的shell命令,我使用subprocess.check_call()来执行它们。问题是,我似乎无法找到正确捕获和分析返回代码的方法。根据docs The CalledProcessError object will have the return code in the returncode attribute.如果我说print(rc) subprocess.Called
Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 540, in check_callCalledProcessError: Command '['./runtex", texfname])
return static_file(actn+".pdf&q