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

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -