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

wkhtmltopdf - Command not found #34

Description

@GaramNick

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions