2017-01-13 3 views
0

몇 달 전에 나는 다른 링크를 변환하려고 오늘 아침 wkhtmltopdf 실행 파일을 찾을 수 있지만, 나는 평 프롬프트에서이 오류를 가지고 :파이썬 pdfkit, 나는 PDF 파일에 URL을 변환하는 작은 스크립트를 만들었다

File "<stdin>", line 1, in <module> 
File "C:\Python27\lib\site-packages\pdfkit\api.py", line 24, in from_url 
configuration=configuration, cover_first=cover_first) 
File "C:\Python27\lib\site-packages\pdfkit\pdfkit.py", line 42, 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 

나는 봤지만 많은 해결책을 찾지 못했습니다. 누구든지 나를 도울 수 있습니까?

답변

0

해결책을 찾았는데 그 이유는 모르겠지만 python은 "C : \ Program Files \ wkhtmltopdf \ bin"을 "C : \ Program Files \ wkhtmltopdin"로 바꾸기 때문에 "\ b" 방금 "\ b"를 "/ b"로 대체하고 해결했습니다.

관련 문제