[reportlab-users] Errors after update to reportlab 3.0

4 views
Skip to first unread message

T. Kort

unread,
Apr 4, 2014, 5:03:00 PM4/4/14
to reportl...@lists2.reportlab.com
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
_______________________________________________
reportlab-users mailing list
reportl...@lists2.reportlab.com
http://two.pairlist.net/mailman/listinfo/reportlab-users

T. Kort

unread,
Apr 5, 2014, 8:21:42 AM4/5/14
to reportl...@lists2.reportlab.com
On 04/04/2014 11:03 PM, T. Kort wrote:
> I have a larger script that fails with 3.0.
> ...

Sorry, I feel ashamed. It was just a missing link target. Because I was
messing a little with my git branches I was convinced that the code had
run with reportlab 2.7.

Sorry again. Even some of my code from 2005 works just perfect with 3.0.
It is very nice to have now reportlab working with Python 3.4. Thank you
very much!

Best regards from the beautiful Dresden in Germany, Thelonius Kort

Andy Robinson

unread,
Apr 7, 2014, 2:10:56 AM4/7/14
to reportlab-users
Thelonius, I'm sorry not to respond sooner. Your email arrived on the
last working day of the tax year which is a rather crazy time for us.
I'm glad to hear it is resolved.

All of our work and all our external customers were on Python 2.x and
you are the first user we know about on Python 3.4, so
congratulations! If you find anything interesting please let us know.

- Andy
--
Andy Robinson
Managing Director
ReportLab Europe Ltd.
Thornton House, Thornton Road, Wimbledon, London SW19 4NG, UK
Tel +44-20-8405-6420

Robin Becker

unread,
Apr 7, 2014, 4:49:59 AM4/7/14
to reportlab-users
On 05/04/2014 13:21, T. Kort wrote:
> On 04/04/2014 11:03 PM, T. Kort wrote:
>> I have a larger script that fails with 3.0.
> > ...
>
> Sorry, I feel ashamed. It was just a missing link target. Because I was messing
> a little with my git branches I was convinced that the code had run with
> reportlab 2.7.
>
> Sorry again. Even some of my code from 2005 works just perfect with 3.0. It is
> very nice to have now reportlab working with Python 3.4. Thank you very much!
>
> Best regards from the beautiful Dresden in Germany, Thelonius Kort
......
There have been some bug fixes in ReportLab since the initial 3.0 release. You
can get details at

https://bitbucket.org/rptlab/reportlab

probably a new pypi packege will be released when we have completed testing.
--
Robin Becker
Reply all
Reply to author
Forward
0 new messages