python 3.8.0 AttributeError: module 'cgi' has no attribute 'escape'
See original GitHub issue pisaStatus = pisa.CreatePDF(html, dest=file) File "/Users/disonds/PycharmProjects/PythonHomework/venv/lib/python3.8/site-packages/xhtml2pdf/document.py", line 136, in pisaDocument doc.build(context.story) File "/Users/disonds/PycharmProjects/PythonHomework/venv/lib/python3.8/site-packages/reportlab/platypus/doctemplate.py", line 1056, in build self.handle_flowable(flowables) File "/Users/disonds/PycharmProjects/PythonHomework/venv/lib/python3.8/site-packages/reportlab/platypus/doctemplate.py", line 915, in handle_flowable self.afterFlowable(f) File "/Users/disonds/PycharmProjects/PythonHomework/venv/lib/python3.8/site-packages/xhtml2pdf/xhtml2pdf_reportlab.py", line 122, in afterFlowable cgi.escape(copy.deepcopy(flowable.text), 1), AttributeError: module 'cgi' has no attribute 'escape'
update pip please
Issue Analytics
- State:
- Created 4 years ago
- Reactions:7
- Comments:6
Top GitHub Comments
Hi, Version 2.2.4 was released.
Hi guys, probably I will make a new release next sunday, thanks for your colaborations