最近很多小伙伴都在问textract在退出代码127时失败:Windows10上的pdftotext和退出代码-1这两个问题,那么本篇文章就来给大家详细解答一下,同时本文还将给你拓展AdDuplex:
最近很多小伙伴都在问textract在退出代码127时失败:Windows 10上的pdftotext和退出代码-1这两个问题,那么本篇文章就来给大家详细解答一下,同时本文还将给你拓展AdDuplex:Windows 10 21H1 和 Windows 11 首次进入快速增、Linux/Wine:windows 应用程序启动 windows 控制台命令并在 windows 上等待时在 linux 上不等待:如何修复?、Microsoft Edge 93 在 Windows 11 和 Windows 10 上获得设计、Microsoft 暂时禁用某些 Windows 11 PC 的 Windows 更新估等相关知识,下面开始了哦!
本文目录一览:- textract在退出代码127时失败:Windows 10上的pdftotext(退出代码-1)
- AdDuplex:Windows 10 21H1 和 Windows 11 首次进入快速增
- Linux/Wine:windows 应用程序启动 windows 控制台命令并在 windows 上等待时在 linux 上不等待:如何修复?
- Microsoft Edge 93 在 Windows 11 和 Windows 10 上获得设计
- Microsoft 暂时禁用某些 Windows 11 PC 的 Windows 更新估
textract在退出代码127时失败:Windows 10上的pdftotext(退出代码-1)
如何解决textract在退出代码127时失败:Windows 10上的pdftotext?
我正在尝试在Windows 10计算机上运行python程序,并试图使用该程序读取和转换PDF文件。但是,每次运行程序时,都会出现以下错误。我还没有找到如何解决这个问题。有没有人可以帮助我:)
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Users\trpfinance\AppData\Local\Programs\Python\python38-32\lib\site-packages\textract\parsers\utils.py",line 82,in run
pipe = subprocess.Popen(
File "C:\Users\trpfinance\AppData\Local\Programs\Python\python38-32\lib\subprocess.py",line 854,in __init__
self._execute_child(args,executable,preexec_fn,close_fds,File "C:\Users\trpfinance\AppData\Local\Programs\Python\python38-32\lib\subprocess.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\trpfinance\AppData\Local\Programs\Python\python38-32\lib\tkinter\__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\trpfinance\AppData\Local\Programs\Python\python38-32\lib\site-packages\textract\parsers\__init__.py",line 77,in process
return parser.process(filename,encoding,**kwargs)
File "C:\Users\trpfinance\AppData\Local\Programs\Python\python38-32\lib\site-packages\textract\parsers\utils.py",line 46,in process
byte_string = self.extract(filename,**kwargs)
File "C:\Users\trpfinance\AppData\Local\Programs\Python\python38-32\lib\site-packages\textract\parsers\pdf_parser.py",line 28,in extract
raise ex
File "C:\Users\trpfinance\AppData\Local\Programs\Python\python38-32\lib\site-packages\textract\parsers\pdf_parser.py",line 20,in extract
return self.extract_pdftotext(filename,line 43,in extract_pdftotext
stdout,_ = self.run(args)
File "C:\Users\trpfinance\AppData\Local\Programs\Python\python38-32\lib\site-packages\textract\parsers\utils.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 -------------