python - xhtml2pdf gae no module named -
i'm trying deploy app on gae. on local app works, on gae when try run, return:
no module named xhtml2pdf
thats code:
import webapp2 xhtml2pdf import pisa weasyprint import html import urllib import urllib2 import stringio
the requeriments.txt:
pillow html2pdf xhtml2pdf pypdf webapp2 webob paste
thanks!
you need copy xhtml2pdf , other dependent files project.
1) copy xhtml2pdf, html5lib, reportlab folder pdf folder.
2) copy six.py file pdf folder.
for more detail check blog http://array151.blogspot.in/2016/05/how-to-get-xhtml2pdf-working-on-google.html
Comments
Post a Comment