Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

wkhtmltopdf - Command not found #34

Open
GaramNick opened this issue Aug 31, 2018 · 1 comment
Open

wkhtmltopdf - Command not found #34

GaramNick opened this issue Aug 31, 2018 · 1 comment

Comments

@GaramNick
Copy link

Added this to a Heroku (heroku-16) Django app.
Files are installed in app/bin:
~/bin $ find -maxdepth 1 -type f -ls -exec file -b {} \; 15619982 38816 -rwx------ 1 u46936 dyno 39745960 Jan 20 2016 ./wkhtmltopdf ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.18, stripped 15619983 38740 -rwx------ 1 u46936 dyno 39666344 Jan 20 2016 ./wkhtmltoimage ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.18, stripped

When using Pdfkit.to_pdf the following error is returned:

OSError('No wkhtmltopdf executable found: "If this file exists please check that this process can read it. Otherwise please install wkhtmltopdf - https://github.com/JazzCore/python-pdfkit/wiki/Installing-wkhtmltopdf'

When running wkhtmltopdf -V:

bash: wkhtml: command not found

Should I set the path variable? If so, how?

@leoalvs
Copy link

leoalvs commented Mar 12, 2020

I'm having the same problem.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants