Skip to content

Instantly share code, notes, and snippets.

@todrobbins
Last active August 29, 2015 14:02
Show Gist options
  • Save todrobbins/2c3baedb5715d1e347ea to your computer and use it in GitHub Desktop.
Save todrobbins/2c3baedb5715d1e347ea to your computer and use it in GitHub Desktop.
➜ pdf-diff git:(master) ✗ python3 pdf-diff.py --changes < changes.json > test.png
Traceback (most recent call last):
File "pdf-diff.py", line 225, in <module>
render_changes(json.load(sys.stdin), sys.stdout.buffer)
File "pdf-diff.py", line 142, in render_changes
pages[change["pdf"]["index"]][change["page"]["number"]] = pdftopng(change["pdf"]["file"], change["page"]["number"])
File "pdf-diff.py", line 218, in pdftopng
pngbytes = subprocess.check_output(["/usr/bin/pdftoppm", "-f", str(pagenumber), "-l", str(pagenumber), "-scale-to", str(width), "-png", pdffile])
File "/usr/local/Cellar/python3/3.4.1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/subprocess.py", line 607, in check_output
with Popen(*popenargs, stdout=PIPE, **kwargs) as process:
File "/usr/local/Cellar/python3/3.4.1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/subprocess.py", line 858, in __init__
restore_signals, start_new_session)
File "/usr/local/Cellar/python3/3.4.1/Frameworks/Python.framework/Versions/3.4/lib/python3.4/subprocess.py", line 1456, in _execute_child
raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/pdftoppm'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment