Can't create pdf using python PDFKIT Error : " No wkhtmltopdf executable found:"
Question: I tried installing pdfkit Python API in my windows 8 machine. I'm getting
issues related to path.

    
    
    Traceback (most recent call last):
      File "C:\Python27\pdfcre", line 13, in <module>
        pdfkit.from_url('http://google.com', 'out.pdf')
      File "C:\Python27\lib\site-packages\pdfkit\api.py", line 22, in from_url
        configuration=configuration)
      File "C:\Python27\lib\site-packages\pdfkit\pdfkit.py", line 38, in __init__
        self.configuration = (Configuration() if configuration is None
      File "C:\Python27\lib\site-packages\pdfkit\configuration.py", line 27, in __init__
        'https://github.com/JazzCore/python-pdfkit/wiki/Installing-wkhtmltopdf' % self.wkhtmltopdf)
    IOError: 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
    

Is anybody installed Python PDFKIt in windows machine? How to resolve this
error.

My sample code :

    
    
    import pdfkit
    import os
    config = pdfkit.configuration(wkhtmltopdf='C:\\Python27\\wkhtmltopdf\bin\\wkhtmltopdf.exe')
    pdfkit.from_url('http://google.com', 'out.pdf')
    


Answer: I am learning python today, and I met the same problem, lately I set the
windows enviroment variables and everything is OK.  
I add the install path of wkhtml to the path, for
example:"D:\developAssistTools\wkhtmltopdf\bin;" is my install path of wkhtml,
and I add it to the path, everything is OK.

    
    
    import pdfkit
    pdfkit.from_url("http://google.com", "out.pdf")
    

finally, I find a out.pdf.

