python subprocess running unoconv throwing CalledProcessError exit code 8 -
python subprocess running unoconv throwing CalledProcessError exit code 8 -
i trying run unoconv convert set of documents in folder so:
import subprocess try: subprocess.check_call(['unoconv', "/home/foo/ve/pdf/pdf/pdf_media/" + <filename parameter>) except subprocess.calledprocesserror e: print "conversion error: ", e
now, run above code within django view - , runs expects time i.e converts document pdf, but, sometimes, above code throws me next exception:
command '['unoconv', u'/home/foo/ve/pdf/pdf/pdf_media/wgyozm7.doc']' returned non-zero exit status -8
however, when go folder, see conversion has happened , pdf generated expected.
i fail understand exit code means (i searched docs of unoconv couldnt find exit code 8).
it looks me subprocess has negative exit-code. not application code, caused os terminating program. negative number signal-number process received. on mac, -8 stands sigfpe.
python subprocess
Comments
Post a Comment