Textract: failed with exit code 127 // windows 10 // pdftotext(TExtract:失败,退出代码127//Windows 10//pdftotext)
本文介绍了TExtract:失败,退出代码127//Windows 10//pdftotext的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我试图运行我的(在使用pyinstaller部署之后)程序来读取和转换PDF文件并将其输入到Google工作表中时。我得到了下图中显示的错误。然而,我似乎想不出问题是什么:
Exception in Tkinter callback
Traceback (most recent call last):
File "C:Users rpfinanceAppDataLocalProgramsPythonPython38-32libsite-packages extractparsersutils.py", line 82, in run
pipe = subprocess.Popen(
File "C:Users rpfinanceAppDataLocalProgramsPythonPython38-32libsubprocess.py", line 854, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:Users rpfinanceAppDataLocalProgramsPythonPython38-32libsubprocess.py", line 1307, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:Users rpfinanceAppDataLocalProgramsPythonPython38-32lib kinter\__init__.py", line 1883, in __call__
return self.func(*args)
File "EinkaufRGWindows.py", line 40, in InkoopRekeningen
text = textract.process(str(importfolder) + str(i))
File "C:Users rpfinanceAppDataLocalProgramsPythonPython38-32libsite-packages extractparsers\__init__.py", line 77, in process
return parser.process(filename, encoding, **kwargs)
File "C:Users rpfinanceAppDataLocalProgramsPythonPython38-32libsite-packages extractparsersutils.py", line 46, in process
byte_string = self.extract(filename, **kwargs)
File "C:Users rpfinanceAppDataLocalProgramsPythonPython38-32libsite-packages extractparserspdf_parser.py", line 28, in extract
raise ex
File "C:Users rpfinanceAppDataLocalProgramsPythonPython38-32libsite-packages extractparserspdf_parser.py", line 20, in extract
return self.extract_pdftotext(filename, **kwargs)
File "C:Users rpfinanceAppDataLocalProgramsPythonPython38-32libsite-packages extractparserspdf_parser.py", line 43, in extract_pdftotext
stdout, _ = self.run(args)
File "C:Users rpfinanceAppDataLocalProgramsPythonPython38-32libsite-packages extractparsersutils.py", line 90, in run
raise exceptions.ShellError(
textract.exceptions.ShellError: The command `pdftotext //Mac/Home/Desktop/Wickey Einkauf Test/Rekeningen/Lekkerkerker_ - 20803471.pdf -` failed with exit code 127
------------- stdout -------------
------------- stderr -------------
推荐答案
您需要使用pip安装pdftotext。 若要安装它,您需要安装Microsoft Visual C++14或更高版本。
这篇关于TExtract:失败,退出代码127//Windows 10//pdftotext的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
沃梦达教程
本文标题为:TExtract:失败,退出代码127//Windows 10//pdftotext
基础教程推荐
猜你喜欢
- 哪些 Python 包提供独立的事件系统? 2022-01-01
- 使 Python 脚本在 Windows 上运行而不指定“.py";延期 2022-01-01
- 使用 Google App Engine (Python) 将文件上传到 Google Cloud Storage 2022-01-01
- 症状类型错误:无法确定关系的真值 2022-01-01
- Python 的 List 是如何实现的? 2022-01-01
- 如何在 Python 中检测文件是否为二进制(非文本)文 2022-01-01
- 合并具有多索引的两个数据帧 2022-01-01
- 如何在Python中绘制多元函数? 2022-01-01
- 将 YAML 文件转换为 python dict 2022-01-01
- 使用Python匹配Stata加权xtil命令的确定方法? 2022-01-01