pdftotext can't find any of the files to convert when called within a python script

Posted by hatorade on Stack Overflow See other posts from Stack Overflow or by hatorade
Published on 2010-04-18T01:56:11Z Indexed on 2010/04/18 2:03 UTC
Read the original article Hit count: 362

Filed under:
|

i have a python script which keeps crashing on:

subprocess.call(["pdftotext", pdf_filename])

the error being:

OSError: [Errno 2] No such file or directory

the absolute path to the filename (which i am storing in a log file as i debug) is fine; on the command line, if i type pdftotext <pdf_filename_goes_here> it works for any of the alledgedly bad file names. but when called using subprocess in python i keep getting that error.

what is going on???

© Stack Overflow or respective owner

Related posts about python

Related posts about pdftotext