Skip to content

Instantly share code, notes, and snippets.

@thequbit
Created May 29, 2015 14:21
Show Gist options
  • Save thequbit/6bcdf638e64559df2141 to your computer and use it in GitHub Desktop.
Save thequbit/6bcdf638e64559df2141 to your computer and use it in GitHub Desktop.
Indexing document with Elastic Search ...
Done indexing
Sanitizing PDF ...
Reading PDF ...
Splitting PDF into multiple pdf's for processing ...
Writing out 3 pages ...
Dispatching pdf workers ...
0: Getting page from queue ...
0: working on page 0
0: An error has occured:
0: ERROR: FailedToExecuteCommand `"gs" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pngalpha" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r200x200" "-sOutputFile=/tmp/magick-24643TeUgpvvGSP9G%d" "-f/tmp/magick-246433AsUo4R4VFvJ" "-f/tmp/magick-24643Df3i2L89szRL"' (-1) @ error/delegate.c/ExternalDelegateCommand/461
Traceback (most recent call last):
File "/home/thequbit/Envs/pdfindexer/local/lib/python2.7/site-packages/yapot/yapot.py", line 227, in _pdf_converter_worker
resolution=int(resolution),
File "/home/thequbit/Envs/pdfindexer/local/lib/python2.7/site-packages/wand/image.py", line 2050, in __init__
self.read(filename=filename, resolution=resolution)
File "/home/thequbit/Envs/pdfindexer/local/lib/python2.7/site-packages/wand/image.py", line 2107, in read
self.raise_exception()
File "/home/thequbit/Envs/pdfindexer/local/lib/python2.7/site-packages/wand/resource.py", line 222, in raise_exception
raise e
DelegateError: FailedToExecuteCommand `"gs" -q -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=2 "-sDEVICE=pngalpha" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r200x200" "-sOutputFile=/tmp/magick-24643TeUgpvvGSP9G%d" "-f/tmp/magick-246433AsUo4R4VFvJ" "-f/tmp/magick-24643Df3i2L89szRL"' (-1) @ error/delegate.c/ExternalDelegateCommand/461
0: Thread exiting.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment