Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot execute read_pdf #26

Closed
rileyhun opened this issue May 16, 2017 · 2 comments
Closed

Cannot execute read_pdf #26

rileyhun opened this issue May 16, 2017 · 2 comments

Comments

@rileyhun
Copy link

Summary of your issue

Cannot read pdf's from directory. Was working before.

Environment

Python 2.7

Example code:

print read_pdf(r"C:\Users\riley\Desktop\Bank Statements\53591.pdf")

Output:

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)
WindowsError: [Error 2] The system cannot find the file specified
@chezou
Copy link
Owner

chezou commented May 16, 2017

Please fill whole template. The error says the file cannot be found, but only this info I can say nothing more.

@chezou chezou closed this as completed May 16, 2017
@Raghav1990
Copy link

even I'm facing the same issue.

Code used:
from tabula import read_pdf
df = read_pdf(path of pdf)

Error Msg:

Traceback (most recent call last):
File "D:\Users\user\Desktop\test2.py", line 21, in
df = read_pdf(path)
File "D:\Users\user\python2\lib\site-packages\tabula\wrapper.py", line 75, in read_pdf
output = subprocess.check_output(args)
File "D:\Users\user\python2\lib\subprocess.py", line 212, in check_output
process = Popen(stdout=PIPE, *popenargs, **kwargs)
File "D:\Users\user\python2\lib\subprocess.py", line 390, in init
errread, errwrite)
File "D:\Users\user\python2\lib\subprocess.py", line 640, in _execute_child
startupinfo)
WindowsError: [Error 2] The system cannot find the file specified

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants