【发布时间】:2017-05-16 15:31:07
【问题描述】:
我无法执行 tabula-py 的 read_pdf 函数。
它似乎正在产生以下错误消息:
WindowsError: [Error 2] The system cannot find the file specified
带回溯:
Traceback (most recent call last):
File "C:/Users/riley/PycharmProjects/Payroll/PayrollParsePDF.py", line 126, in <module>
print read_pdf(r"C:\Users\riley\Desktop\Bank Statements\53591.pdf")
File "C:\Python27\lib\site-packages\tabula\wrapper.py", line 54, in read_pdf_table
output = subprocess.check_output(args)
File "C:\Python27\lib\subprocess.py", line 212, in check_output
process = Popen(stdout=PIPE, *popenargs, **kwargs)
File "C:\Python27\lib\subprocess.py", line 390, in __init__
errread, errwrite)
File "C:\Python27\lib\subprocess.py", line 640, in _execute_child
startupinfo)
关于为什么会这样的任何见解?之前还不错。
【问题讨论】:
-
该文件应该在您的 Windows 桌面上,对吧?告诉我,您已进入桌面并确认该文件夹存在,并且当您打开该文件夹时,您可以看到该文件,并且您可以双击打开它。
-
是的,文件在那里,目录是正确的