Using Django 1.4 / Python 2.7 / reportlab (open source version) to create pdf.
So far, everything has worked great. Previously, PDF generation (as in the requested HTTP requested / uploaded generated pdf file) was on Django 1.3 and was not open to the public. Improved and made a free feature on many pages and are now starting to experience problems.
I get "random" problems (since in some cases I see exceptions in the logs), but I could never reproduce the problems myself (which works most of the time).
I get the following type of error that always happens in pairs
Exception Value: ParaParser instance has no attribute '_seq'
Exception Location: /home/tss/lib/python2.7/reportlab-2.5-py2.7-linux-i686.egg/reportlab/platypus/paraparser.py in _complete_parse, line 1061
and then
Exception Value: 'NoneType' object has no attribute 'close'
Exception Location: /home/tss/lib/python2.7/reportlab-2.5-py2.7-linux-i686.egg/reportlab/lib/xmllib.py in close, line 521
Given that it is difficult for me to reproduce this and I'm not sure that the problem is on my side or reportlab - I am open to suggestions on how to fix this problem (maybe a synchronization problem, like in many cases, generating consistency or just a normal error or ...) ???
source
share