I am trying to use pdfkit library, one folder with permissions to write, and have also trying in root, who is in this case C:\, for example,
I have even created an empty out.pdf file, and in another attempt, add also the complete path, but still same error.
pdfkit.from_string('Hello!','out.pdf')but dont know how to use it, because no matter what I do, I am always get:
Error:INFO: Could not find files for the given pattern(s).
Traceback (most recent call last):
File "C:\Users\fabio\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pdfkit\configuration.py", line 21, in __init__
with open(self.wkhtmltopdf) as f:
FileNotFoundError: [Errno 2] No such file or directory: b''
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\fabio\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pdfkit\api.py", line 70, in from_string
configuration=configuration, cover_first=cover_first)
File "C:\Users\fabio\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pdfkit\pdfkit.py", line 42, in __init__
self.configuration = (Configuration() if configuration is None
File "C:\Users\fabio\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pdfkit\configuration.py", line 27, in __init__
'https://github.com/JazzCore/python-pdfkit/wiki/Installing-wkhtmltopdf' % self.wkhtmltopdf)
OSError: No wkhtmltopdf executable found: "b''"
If this file exists please check that this process can read it. Otherwise please install wkhtmltopdf - https://github.com/JazzCore/python-pdf
kit/wiki/Installing-wkhtmltopdf
I have even created an empty out.pdf file, and in another attempt, add also the complete path, but still same error.