Skip to content

Python subprocess issue #3

@gmagnai

Description

@gmagnai

Hello.

Im using this project in my web site.
But i had a problem about python sub process.

Here is a my process log.

*_Traceback (most recent call last):
File "tests/PdfProcessorTest.py", line 35, in testScannedPdf
pdfProcessor = PDFProcessor('tests/sample-scanned.pdf', self.outdir)
File "PdfProcessor.py", line 20, in init
self.process()
File "PdfProcessor.py", line 37, in process
self.separatePdfPages()
File "PdfProcessor.py", line 71, in separatePdfPages
pdfTkProcessStatus = pdfTkSeparate.extractPages()
File "pdftools/PdfTkSeparate.py", line 18, in extractPages
cmdOutput = subprocess.call([self.cmd, self.infilepath, 'burst', 'output', os.path.join(self.outdir, "%d.pdf")])
File "/usr/lib/python2.7/subprocess.py", line 522, in call
return Popen(_popenargs, *_kwargs).wait()
File "/usr/lib/python2.7/subprocess.py", line 710, in init
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1335, in execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
*

I guess problem might be here at:
cmdOutput = subprocess.call([self.cmd, self.infilepath, 'burst', 'output', os.path.join(self.outdir, "%d.pdf")])

in PdfSeperate.py

Please help me asap..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions