New to Google App Engine. Building entirely using Google Cloud Shell - mainly learning the platform before doing serious development. Completed all possible future requirements, except for showing graphs on webpage and downloading PDF. This question is about downloading PDF
I create a new folder PDF
Under appengine_config.py I add:
vendor.add('pdf')
I run command:
pip install -t pdf/ xhtml2pdf
I get an error message:
ipython 5.10.0 has requirement prompt-toolkit<2.0.0,>=1.0.4, but you'll have prompt-toolkit 2.0.10 which is incompatible.
I create a Class PDFHandler.py with code starting as:
from io import StringIO
from xhtml2pdf import pisa
I write rest of the code and run Application using python3 main.py, I get error as:
ModuleNotFoundError: No module named 'xhtml2pdf'
What is it that I am missing? Is there a better way to have ability to download custom PDF?