[reportlab-users] Errors after update to reportlab 3.0
T. Kort
nospam at banza.net
Fri Apr 4 17:03:00 EDT 2014
Hello
I have a larger script that fails with 3.0. I hope one of you maybe
recognizes on a first glance the problem in the error mesage so I'll
just attach it here.
It is quiet a lot of code so it would take me some hours to reduce it to
a version that would be comsumable for you. I will of course do it if
neccessary but if one of you would save me the time that would be really
great.
Thanks in advance for any hint, T.
Traceback (most recent call last):
File "./pdf_document.py", line 212, in <module>
print(PdfWriter().write_pdf())
File "./pdf_document.py", line 188, in write_pdf
self.doc.multiBuild(self.story)
File "/home/thelonius/git/qtsummenbogen/pdf_doku_template.py", line
33, in multiBuild
BaseDocTemplate.multiBuild(self,flowables, canvasmaker=canvasmaker)
File
"/usr/lib/python3.4/site-packages/reportlab/platypus/doctemplate.py",
line 980, in multiBuild
self.canv.save()
File "/usr/lib/python3.4/site-packages/reportlab/pdfgen/canvas.py",
line 1209, in save
self._doc.SaveToFile(self._filename, self)
File "/usr/lib/python3.4/site-packages/reportlab/pdfbase/pdfdoc.py",
line 217, in SaveToFile
data = self.GetPDFData(canvas)
File "/usr/lib/python3.4/site-packages/reportlab/pdfbase/pdfdoc.py",
line 242, in GetPDFData
return self.format()
File "/usr/lib/python3.4/site-packages/reportlab/pdfbase/pdfdoc.py",
line 421, in format
IOf = IO.format(self)
File "/usr/lib/python3.4/site-packages/reportlab/pdfbase/pdfdoc.py",
line 864, in format
fcontent = format(self.content, document, toplevel=1) # yes this
is at top level
File "/usr/lib/python3.4/site-packages/reportlab/pdfbase/pdfdoc.py",
line 78, in format
f = element.format(document)
File "/usr/lib/python3.4/site-packages/reportlab/pdfbase/pdfdoc.py",
line 1595, in format
return D.format(document)
File "/usr/lib/python3.4/site-packages/reportlab/pdfbase/pdfdoc.py",
line 671, in format
L = [(format(PDFName(k),document)+b" "+format(dict[k],document))
for k in keys]
File "/usr/lib/python3.4/site-packages/reportlab/pdfbase/pdfdoc.py",
line 671, in <listcomp>
L = [(format(PDFName(k),document)+b" "+format(dict[k],document))
for k in keys]
File "/usr/lib/python3.4/site-packages/reportlab/pdfbase/pdfdoc.py",
line 78, in format
f = element.format(document)
File "/usr/lib/python3.4/site-packages/reportlab/pdfbase/pdfdoc.py",
line 1771, in format
if f is None: raise ValueError("format not resolved %s" % self.name)
ValueError: format not resolved f5
More information about the reportlab-users
mailing list