简体   繁体   中英

Exception in tkinter callback: failed with exit code 3221225781

Somehow I have fixed the previous error with error code 127 by adding poppler to my PATH environment variables, however now I am greeted by this new error. Does anyone have any clue what this could mean and how I can fix it. I am trying to run a tool which I have created on a MAC to read PDF's to text using textract. It works perfectly fine on MacOS However it seems to have issues running on windows. Any help would be much appreciated.

Thanks in advance:)

 Exception in Tkinter callback Traceback (most recent call last): File "tkinter\__init__.py", line 1883, in __call__ File "\\Mac\Home\PycharmProjects\WickeyEinkaufAutomation\EinkaufRGWindows.py", line 40, in InkoopRekeningen text = textract.process(str(importfolder) + str(i)) File "site-packages\textract\parsers\__init__.py", line 77, in process File "site-packages\textract\parsers\utils.py", line 46, in process File "site-packages\textract\parsers\pdf_parser.py", line 28, in extract File "site-packages\textract\parsers\pdf_parser.py", line 20, in extract File "site-packages\textract\parsers\pdf_parser.py", line 43, in extract_pdftotext File "site-packages\textract\parsers\utils.py", line 100, in run textract.exceptions.ShellError: The command `pdftotext //Mac/Home/Desktop/WET/Rekeningen/Lekkerkerker_ - 20803471.pdf -` failed with exit code 3221225781 ------------- stdout ------------- b''------------- stderr ------------- b''

Paths on MacOS and on windows use different slashes, thus it needs changes for a MacOS program to run on Windows too. Mac uses / slashes, and Windows -.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM