Hi everyone,
I’m encountering an issue while trying to generate a PDF file in Frappe using pdfkit on macOS (M4 chip).
Here’s the traceback:
OSError: No wkhtmltopdf executable found: "b''"
If this file exists please check that this process can read it or you can pass path to it manually in method call, check README. Otherwise please install wkhtmltopdf - https://github.com/JazzCore/python-pdfkit/wiki/Installing-wkhtmltopdf
It seems wkhtmltopdf is missing or not properly linked.
However, when I try installing it with Homebrew, I get this error:
Error: Cask 'wkhtmltopdf' has been disabled because it is discontinued upstream! It was disabled on 2024-12-16.
So far, I’ve tried:
- Installing via
brew install wkhtmltopdf(fails due to deprecation) - Checking
/opt/homebrew/bin/wkhtmltopdf(not found) - Reinstalling
pdfkit
It seems wkhtmltopdf support for Apple Silicon / macOS M4 is broken or unavailable through Homebrew.
Has anyone found a working solution or alternative for PDF generation in Frappe on macOS M4 (Apple Silicon)?